home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 January / Chip_1997-01_cd.bin / ms95 / disk22 / dir08 / f002550.re_ / f002550.re
Text File  |  1996-04-02  |  2KB  |  63 lines

  1. MicroStation ODBC SQL Server README.TXT
  2.  
  3. This readme file explains the batch files used to create
  4. the mscatalog, gis example tables and load the example
  5. GIS data in your SQL Server database.
  6.  
  7. bldmscat.bat
  8.     Usage:   bldmscat database_name username password
  9.     Example: bldmscat gis scott tiger
  10.  Creates the mscatalog table.
  11.  
  12. bldgis.bat
  13.     Usage:   bldgis database_name username password
  14.     Example: bldgis gis scott tiger
  15.  Creates the tables for the gis example.
  16.  
  17. loadgis.bat
  18.     Usage:   loadgis database_name username password
  19.     Example: loadgis gis scott tiger
  20.  Loads the example data into the GIS example tables and the
  21.  mscatalog.
  22.  
  23. NOTE: This batch file uses BCP, a SQL Server bulk copy utility.  BCP
  24. can not load data into a table unless it has an index OR the database
  25. option 'select into/bulkcopy' is set to true.  Since the 'mscatalog'
  26. and the 'parcel_das' table do not have indexes, the bulkcopy database
  27. option must be set to TRUE. To set the bulkcopy database option, run:
  28.  
  29. setdbopt.bat
  30.     Usage:   setdbopt database_name copy_boolean sa_password
  31.     Example: setdbopt gis true manager
  32.  
  33. This will turn on the option and you can run 'loadgis' again and
  34. successfully load data into the mscatalog and parcel tables.  After
  35. all data is loaded, you must set this option back to false, or the
  36. dump statement will return errors.  The statement to set the option
  37. to false could look like the following:
  38.  
  39.     Example: setdbopt gis false manager
  40.  
  41. SAMPLE Flow of Execution...
  42.  
  43. This sequence creates the mscatalog table, the gis example tables,
  44. sets the bulkcopy database option to true, loads data into the 
  45. mscatalog and gis tables and finally sets the bulkcopy dboption to
  46. false.
  47.  
  48. bldmscat gis scott tiger
  49. bldgis gis scott tiger
  50. setdbopt gis true manager
  51. loadgis gis scott tiger
  52. setdbopt gis false manager
  53.  
  54. Where:
  55.  GIS     is the destination database for the example tables and data.
  56.  SCOTT   is a user that has dba priveleges for the GIS table.
  57.  TIGER   is SCOTT's password.
  58.  MANAGER is the password for the SA account
  59.  TRUE    is the parameter to setdbopt that turns the copy db option on.
  60.  FALSE   is the parameter to setdbopt that tuuns the copy db option off.
  61.  
  62. The end.
  63.