Article ID: 218600 - Last Review: July 13, 2004 - Revision: 4.2 How To Use Data Links to Create a Connection String at Run TimeThis article was previously published under Q218600 SUMMARY This article demonstrates how to programmatically use Data
Links feature of the Microsoft Data Access Components in order to generate a
connection string at run-time. MORE INFORMATION In version 2.0 of the Microsoft Data Access Components,
Data Links were introduced. Data Link files are similar to ODBC DSN files, but
allow you to select an OLE DB provider to connect to your database. With the
OLE DB Provider for ODBC drivers, you can also connect to an ODBC data
source. Double-clicking on a Data Link file displays a set of property pages that allow you to build a connection string to connect to your database. You can use this same functionality in your Visual Basic applications by following the steps listed below:
REFERENCES For additional information,
click the following article numbers to view the articles in the Microsoft
Knowledge Base: 189680
(http://support.microsoft.com/kb/189680/EN-US/
)
How To Use Data Link Files with ADO 2.0
244659
(http://support.microsoft.com/kb/244659/EN-US/
)
How To Create a Data Link File with Windows 2000
309485
(http://support.microsoft.com/kb/309485/EN-US/
)
How To Build a Connection String Programmatically in ADO.NET by Using Visual Basic .NET
APPLIES TO
| Article Translations
|
Back to the top
