Article ID: 308075 - Last Review: December 28, 2005 - Revision: 3.1 How to use Data Link files with the OleDbConnection object in Visual Basic .NETThis article was previously published under Q308075 On This PageSUMMARY This article demonstrates how to use an OLE DB Universal
Data Link (.udl) file to specify the connection string that an ADO.NET OleDbConnection object uses to establish a database connection. OLE DB Universal Data Link (.udl) files provide a convenient way to create and verify an ActiveX Data Objects (ADO) connection string that is used to connect to an OLE DB data source. The connection string information is persisted in a specific format to a file with the .udl extension. You can reference a .udl file in the ConnectionString property of an ADO.NET OleDbConnection object to specify the connection string that the object should use to connect to a database. Use the File Name parameter of the connection string to specify the name of the .udl file that contains the connection string information. Steps to build the sampleFollow these steps to create a Visual Basic .NET Console Application that uses a .udl file to specify the connection string information for an ADO.NET OleDbConnection object:
REFERENCES
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
244659
(http://support.microsoft.com/kb/244659/
)
How to create a Data Link file with Windows 2000
| Article Translations
|
Back to the top
