Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
263 views

Database Connection With Map Info

The first step is to set up a data source connection to the DBMS using either ODBC or OCI depending on the database. This involves installing the appropriate driver, if needed, and then creating a new data source connection through the provided wizard. Key information needed includes the server name, login ID, and password. Once the connection is established, the next step is to have the database administrator grant access privileges and then create a map catalog table to work with the data in MapInfo Professional.

Uploaded by

YaronBaba
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
263 views

Database Connection With Map Info

The first step is to set up a data source connection to the DBMS using either ODBC or OCI depending on the database. This involves installing the appropriate driver, if needed, and then creating a new data source connection through the provided wizard. Key information needed includes the server name, login ID, and password. Once the connection is established, the next step is to have the database administrator grant access privileges and then create a map catalog table to work with the data in MapInfo Professional.

Uploaded by

YaronBaba
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Prepare your Connection and Database To work with your DBMS data in MapInfo Professional, you need to set

up your database connection by following the steps in the sections: 1. Creating a Data Source Connection There may be prerequisites, in addition to installing a driver, that you need to connect and work with a database. Each of the following sections provides details: Creating a Data Source Connection to SQL Server Creating a Data Source Connection to PostGIS on page 181 Creating a Data Source Connection to Oracle on page 182 When you connect to a data server, you will have two choices: to use windows authentication or to provide a username and password unique to the data server. Windows authentication is the username and password you use to log in to your network. Depending on how your database server is set up, you may only require your windows authentication to log in. Otherwise, you would provide a username and password that is unique to the server. Your database administrator will tell you whether or not you can use your windows authentication or a username and password specific to the server. 2. Creating a Map Catalog in the DBMS to Work with Data Your database administrator may need to grant you specific access privileges to the database to work with the data. The following section gives details: Before you Begin Creating a Map Catalog Table on page 191 . 3. Making a DBMS Table Mappable to Display it on a Map Access your Data After setting up your database connection, you are ready to work with your data in MapInfo Professional, see Opening a DBMS Table in MapInfo Professional. For details, see: Working with SQL Server Tables Working with PostGIS Tables

Working with Oracle Spatial Tables If your data includes spatial data, which can be columns holding X and Y values, such as Latitude/Longitude, or a column holding sptial data in the format specified by the database system. With no spatial information, you can work with your data in a table browser (a Browser window) in MapInfo Professional. If your data does not include coordinate information, then consider geocoding, adding the coordinate information, using a Pitney Bowes Software Inc. product, such as MapMarker or Spectrum.

Creating a Data Source Connection The first step to working with data in a DBMS is setting up a data source connection on your machine to the DBMS. This is necessary for a DBMS installed on to your machine or on the network. SQL Server and Post GIS require an Open Database Connectivity (ODBC) connection and Oracle Spatial requires an Oracle Call Interface (OCI) connection. You must have the ODBC driver or OCI installed on your machine before creating a data source connection. MapInfo Professional installs or updates Windows ODBC drivers if they are older than the version that MapInfo Professional supports. For non-Windows databases, such as Oracle and PostgreSQL with PostGIS, consult with your database administrator for information on how to obtain and install the driver provided with your database. Creating a Data Source Connection to SQL Server Before you begin, you need a SQL Server driver installed on your machine. Check with your database administrator to install the driver for your database. You need to know the SQL Server name, and the login ID and password if required. To create a new SQL Server data source connection: 1. From the File menu, select Open DBMS Connection. 2. If the Open DBMS Connection dialog box displays, select ODBC from the list and then click New. 3. In the Select Data Source dialog box, select either the File Data Source or the Machine Data Source tab and then click New. You can share the connection information for a file data source

with other users on the network if they have the necessary drivers, because it is stored in a file. You cannot share the connection information for a machine data source, because it is stored in the registry on the local computer. 4. In the Create New Data Source wizard: a. Select the type of data source to create: User Data Source or System Data Source. Make a selection to display the description for it in the wizard. Click Next to continue. b. From the driver name list, select the SQL Server driver you have installed for the database and then click Next. c. Click Finish. 5. In the Create a New Data Source to SQL Server wizard set the following. If you are unsure of the settings to use for your database, consult with your database administrator. a. In the first screen provide the following information: Description Optionally, type a description if you plan on connecting to more than one database and would like a description for this connection. From the Server list either select from the list or type the name of the SQL Server to connect to. Click Next. b. In the next screen, select how SQL Server will verify the authenticity of the login ID. Optionally select to connect to SQL Server to obtain default settings for more configuration options. Click Next. c. Keep the default settings (check with your database administrator) and click Next. d. Keep the default settings (check with your database administrator) and click Finish. 6. In the ODBC Microsoft SQL Server Setup dialog box, click Test Data Source. 7. In the SQL Server ODBC Data Source Test dialog box, click OK . If there were errors, click OK to return to the ODBC Microsoft SQL Server Setup dialog box. Click Cancel to return to the Create a New Data Source to SQL Server wizard and use the Back button to view your settings and make changes. Return to step 5. 8. In the ODBC Microsoft SQL Server Setup dialog box, click OK .

9. In the Select Data Source dialog box, under the Machine Data Source tab, your new SQL Server connection displays in the list of available data source connections. Click OK . 10. In the SQL Server Login dialog box, type your login ID and password if required and click OK. You must now create a map catalog for the database, continue to Creating a Map Catalog Table Using EasyLoader

You might also like