Administer ODBC Data Sources - Microsoft Support
Maybe your like
About ODBC data sources
A data source is a source of data combined with the connection information that is required to access that data. Examples of data sources are SQL Server, Oracle RDBMS, a spreadsheet, and a text file. Examples of connection information include server location, database name, logon ID, password, and various ODBC driver options that describe how to connect to the data source. This information can be obtained from the administrator of the database to which you want to connect.
In the ODBC architecture, an application such as Access connects to the ODBC Driver Manager, which in turn uses a specific ODBC driver (for example, Microsoft SQL ODBC driver) to connect to a data source. In Access, you use ODBC data sources to connect to data sources external to Access that do not have built-in drivers.
To connect to these data sources, you must do the following:
-
Install the appropriate ODBC driver on the computer that contains the data source.
-
Define a data source name (DSN) by using either the ODBC Data Source Administrator to store the connection information in the MicrosoftWindows registry or a DSN file, or a connect string in Visual Basic code to pass the connection information directly to the ODBC Driver Manager.
Machine data sources
Machine data sources store connection information in the Windows Registry on a specific computer. You can use machine data sources only on the computer they are defined on. There are two types of machine data sources — user and system. User data sources can be used only by the current user and are visible only to that user. System data sources can be used by all users on a computer and are visible to all users on the computer and system-wide services. A machine data source is especially useful when you want to provide added security, because only users who are logged on can view a machine data source and it cannot be copied by a remote user to another computer.
File data sources
File data sources (also called DSN files) store connection information in a text file, not the Windows registry, and are generally more flexible to use than machine data sources. For example, you can copy a file data source to any computer that has the correct ODBC driver so that your application can rely on consistent and accurate connection information to all the computers it uses. Or you can place the file data source on a single server, share it between many computers on the network, and easily maintain the connection information in one location.
A file data source can also be unshareable. An unshareable file data source is contained on a single computer and points to a machine data source. You can use unshareable file data sources to access existing machine data sources from file data sources.
Connect strings
In a module, you can define a formatted connect string that specifies connection information. A connect string passes the connection information directly to the ODBC Driver Manager, and it helps simplify your application by removing the requirement that a system administrator or user first create a DSN before you use the database.
For more information about the ODBC interface, see the ODBC Programmer's Reference section of MSDN.
Top of Page
Tag » How To Connect To Database Using Odbc.net
-
Connect To An ODBC Data Source (SQL Server Import And Export ...
-
How To Connect To A Database Using ODBC - LiveCode Lessons
-
Connect To Any Database From .NET Core Using DataDirect ODBC ...
-
Connecting Microsoft Access To SQL Server Via ODBC Driver - Devart
-
Connect To Microsoft SQL Server From Windows With ODBC
-
1.1. Connecting To An ODBC Data Source - O'Reilly
-
6.7.2.1 Using Connector/ODBC With ODBC.NET And C# (C Sharp)
-
6.7.2.2 Using Connector/ODBC With ODBC.NET And Visual Basic
-
C# ADO.NET ODBC Tutorial - Easysoft
-
How To Create An ODBC Connection To A SQL Database
-
ODBC .NET Data Provider - IBM
-
ADO Database Connection - W3Schools
-
How To Setup ODBC Database Connection - Ozeki SMS Server
-
Connecting From Your Application - ODBC Clients