Results 1 to 4 of 4

Thread: Using a UDL [RESOLVED]

  1. #1

    Thread Starter
    Fanatic Member Bombdrop's Avatar
    Join Date
    Apr 2001
    Location
    St Helens, England, UK
    Posts
    667

    Using a UDL [RESOLVED]

    HI pretty new to C# comming from a strong VB6 background and have decided to go C# rather than VB. No i have been playing around with DataAccess in C# and was trying to use a udl when using SQLCLient I could use a uDL when using OLeDb. So to cut to the chase can ione use a UDL in SQLClient as i do not like hardcoding connection strings in code.
    Last edited by Bombdrop; Jul 8th, 2003 at 03:01 AM.

  2. #2
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    Whats a UDL

  3. #3

    Thread Starter
    Fanatic Member Bombdrop's Avatar
    Join Date
    Apr 2001
    Location
    St Helens, England, UK
    Posts
    667
    Universal Data Link.

    Basically it a file with iethe a connection string or a connection to a DSN.

  4. #4

    Thread Starter
    Fanatic Member Bombdrop's Avatar
    Join Date
    Apr 2001
    Location
    St Helens, England, UK
    Posts
    667

    ussing a udl resolved

    Found this on the MSDN site. Bugger!!!

    Using UDL Files
    The OLE DB .NET Data Provider supports Universal Data Link (UDL) file names in its connection string. You can pass the connection string by using construction arguments to the OleDbConnection object, or you can set the connection string by using the object's ConnectionString property.

    Note The SQL Server .NET Data Provider does not support UDL files in its connection string. Therefore, this approach is available to you only if you are using the OLE DB .NET Data Provider.
    For the OLE DB provider, to reference a UDL file with the connection string, use "File Name=name.udl."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width