|
-
Jul 7th, 2003, 09:12 AM
#1
Thread Starter
Fanatic Member
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.
-
Jul 7th, 2003, 10:10 AM
#2
Frenzied Member
-
Jul 7th, 2003, 10:20 AM
#3
Thread Starter
Fanatic Member
Universal Data Link.
Basically it a file with iethe a connection string or a connection to a DSN.
-
Jul 8th, 2003, 03:00 AM
#4
Thread Starter
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|