Bringing In Features from SQL Server
Concept Procedure Quick Reference
 
 
 

To bring in features from SQL Server

  1. In Display Manager, click DataConnect To Data.
  2. In the Data Connect window, select Add SQL Server Connection in the Data Connections By Provider list.
  3. Under Connection Name, type a name for this connection.

    You can give the connection any name you like. This name appears in Map Explorer as the name of the feature source.

  4. Under Service Name, enter the information for the SQL Server data source. If you do not know the name, check with your System Administrator.
  5. Click Login.
  6. In the User Name & Password dialog box, enter your user name and password.

    Optionally, select Remember Password if you want AutoCAD Map 3D to log you in whenever you open this drawing.

  7. Click OK.
  8. In Data Connect, under Data Store, enter the data store name. If you do not know this name, check with your System Administrator.

    To select from a list of data stores, click the down arrow. AutoCAD Map 3D connects to the specified server and instance and lists the available data stores.

    NoteIf the data store is not in the list, it may not use a AutoCAD Map 3D schema. Select Show All Data Stores to add these to the list. AutoCAD Map 3D creates a mapping to use these data stores with AutoCAD Map 3D.
  9. Click Connect.
  10. In the feature class list, select the feature classes to include in the map.

    If this feature source contains only a single feature class, that feature class is selected automatically. If it contains multiple feature classes, you can right-click any of them and select Select All or Select None.

  11. Click Add To Map.

    To bring in a subset of the data, click the down arrow and select Add To Map With Query. To filter data after you’ve added the data to your map, see Filtering Feature Layers.

Features from the selected feature classes appear in your map. You can style, theme, and edit the features.

If you need additional properties related to this data, you can connect additional data to a feature source layer using a join.

To use AutoCAD Map 3D 2010 to access FDO data stores that were created in AutoCAD Map 3D 2007 and earlier

  1. Verify that you have the privileges required to execute the ALTER TABLE request.
  2. In the command line, enter the following:

    cd <MapInstallDir>/Fdo/bin/com

  3. Do one of the following:
    • For SQL Server 2005, enter sqlcmd -UMyUserName -P MyPassword -S SQLServerHostName -d MyDatastore -i AlterSchemaSQLServer.sql
    • For SQL Server 2000, enter isql -UMyUserName -P MyPassword -S SQLServerHostName -d MyDatastore -i AlterSchemaSQLServer.sql