Applies To | |||
Product(s): | MicroStation/J and MicroStation Geographics | ||
Version(s): | All | ||
Environment: | N/A | ||
Area: | N/A | ||
Subarea: | N/A | ||
Original Author: | Bentley Technical Support Group | ||
This TechNote discusses ODBC (Open Database Connectivity) and methods of connecting to a database.
MicroStation and MicroStation GeoGraphics use ODBC drivers to communicate with some of the supported databases. A listing of supported databases can be found in the following articles.
1. Verify the ODBC drivers
ODBC drivers are located in the Windows Control Panel. Double-click the ODBC icon to display the ODBC data source name dialog (see figure below). For versions 3.5 and above, there will be a Drivers tab. Locate the driver for the database you are using and find the version number listed in the next column.
2. If necessary, install the correct version of ODBC driver for the database that you have chosen.
These drivers are available as a free download from the Microsoft web site.
Note: You may be required to register with Microsoft before downloading files or support articles from their web site. |
The Microsoft ODBC 3.51 32 bit Desktop Driver Pack is available on the Microsoft web site at: http://www.microsoft.com/msdownload/uda/mdac_typ.asp
Important Note: Beginning with MicroStation SE version 05.07.01.14 and higher, version 3.51 of the ODBC drivers must be installed.
ODBC drivers may be obtained from the Microsoft Web site.
3. Steps to create a data source
Alternately, you may create your own database. If you want ODBC to create the blank database for you, click create and specify a path and file name. Click Help if you have any questions on the required contents for any of these fields.
New functionality added in the ODBC server available on Web Downloads and delivered in MicroStation versions 05.07.01.14 and higher
FILEDSN= name of the file dsnDSN = name of the User/System dsn UID= user idPWD= password
If more than one parameter is used, they must be separated by semicolons. For example, for a data source called gis and a login/password of steve/tiger, MS_ODBCPARAMS would be entered as follows:
MS_ODBCPARAMS=DSN=GIS;UID=steve;PWD=tiger
To connect to a predefined DSN (one that is defined by a MS_ODBCPARAMS variable), go to the Settings > Database > Connect dialog box, select ODBC as the server and leave the Connect String blank, then click OK to connect.
Geospatial Product TechNotes And FAQs
Bentley Technical Support KnowledgeBase
Bentley's Technical Support Group requests that you please confine any comments you have on this Wiki entry to this "Comments or Corrections?" section. THANK YOU!