| An Introduction to ODBC. |
|
|
|
| Written by Administrator | |
| Sunday, 17 February 2008 | |
|
ODBC stands for Open DataBase Connectivity. It is a client side cross platform data communication standard developed by Microsoft and is used predominantly on the Windows platform, although I am aware of implementations for some Unix platforms as well. I will concentrate on the Windows systems here as this is by far the most common. From the point of view of the system user/administrator, ODBC has three aspects: The ODBC driver Typically for a client/server RDBMS the details would include the server or domain it is hosted on, network protocol and the username and password to connect. If file based the details would include a path to the file either as a drive mapping or a UNC name and username/password. If you run the ODBC Administrator, you will find that there are three types of data source, each with their own tab: Entries in the User DSN tab are specific to your user profile. If you are on a network with roaming profiles enabled they will follow you around as you login to various computers. However, the full driver must be installed on each workstation for it to work. Entries in the System DSN tab are available to anybody who logs into that computer (provided that access rights permit). Entries in the File DSN tab can be shared and easily copied between systems giving an easy way to duplicate a connection, provided that the full drivers have been installed on each computer. Entries of different types can have the same name (although you can't have two of the same type with the same name). However, connection from an application to a data source it is done by name rather than name and type. If there are multiple connections with the same name, the User data source takes priority, then the System source, with the File coming last. Connection from within a program either has details stored in a ConnectString with your application code (such as MS Access), which will typically take the form of "DSN=MyDSN;UID=Alf;PWD=passw0rd;" or you will be requested for a username, data source and password when trying to connect. The above example will connect to the data source called MyDSN as user Alf with password passw0rd. Usernames and passwords can of course be omitted if the data source has them stored in its preferences, or you wish to override the stored names. Common ODBC client applications. Software Development using ODBC. If you are developing a server side application that could be used as a data provider, you would need to write drivers that conform to the ODBC standard, available from the Microsoft Data web site shown above. |
| < Prev | Next > |
|---|
| Home |
| PC World |
| Search |
| Content Category |
| Contact Us |
| IT News |
| IT Sites |
| IT World |
| IT Magazines |








