How To Create a System Data Source Name (DSN) in Windows 95, Windows 98, or Windows NT (300595)
The information in this article applies to:
- Microsoft Windows 98
- Microsoft Windows 95
- Microsoft Windows NT Server 4.0
This article was previously published under Q300595 SUMMARY
A Data Source Name (DSN) is the logical name that is used by Open Database Connectivity (ODBC) to refer to the drive and other information that is required to access data. The name is use by Internet Information Services for a connection to an ODBC data source, such as a Microsoft SQL Server database. To set this name, use the ODBC tool in Control Panel.
When you use an ODBC DSN entry to store the connection string values externally, you simplify the information that is needed in the connection string. This makes changes to the data source completely transparent to the code itself.
back to the top
To Create a System DSN- Click Start, point to Settings, click Control Panel, and then double-click 32-Bit ODBC.
- Click the System DSN tab.
- Click Add.
- Click the database driver that corresponds with the database type with which you are connecting, and then click OK.
- Type the data source name. Make sure to use a name that you will remember. You will need to use this name later.
- Click Select.
- Click the the correct database, and then click OK.
- Click OK in the next two dialog boxes.
back to the top
Troubleshooting
Make sure that you create a system DSN. ActiveX Data Objects (ADO) does not recognize user (or local) DSNs. Because they store settings in the registry, system DSNs offer slightly faster performance than file DSNs, which store connection parameters in a file on your hard disk.
back to the top
Modification Type: | Minor | Last Reviewed: | 12/20/2004 |
---|
Keywords: | kbhowto kbHOWTOmaster KB300595 kbAudITPro |
---|
|