Article ID: 287668 - Last Review: March 26, 2007 - Revision: 6.1 How to use SQLConfigDataSource to create an Access system DSNThis article was previously published under Q287668 Advanced: Requires expert coding, interoperability, and multiuser
skills. This article applies to a Microsoft Access database (.mdb or accdb) and to a Microsoft Access project (.adp). For a Microsoft Access 2000 version of this article, see 231156 (http://support.microsoft.com/kb/231156/EN-US/ ) . SUMMARY You cannot create a system DSN by using the RegisterDatabase method. To create a system DSN, use the ODBC API call for SQLConfigDataSource. Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. MORE INFORMATION The following example uses the API call for SQLConfigDataSource to create a system DSN. The example creates a data source for the
sample database Northwind.mdb when the database is located at C:\Northwind.mdb.
| Article Translations
|

Back to the top
