rem AttachSpatialDatabase.bat  -- Attaches the prebuilt USGS sample database.
rem
rem Attaches the spatial database on the local SQL Server 2005
rem The HTM assembly and functions and sample tables are already in this database.
rem  The alternative is to attach the prebuilt database with CreateSpatialDatabase.bat
rem 
rem   attach the database
rem You may need to change the path to the .mdf file if you system drive is not C, or you installed the samples to a different path.
sqlcmd -S "(local)" -E  -Q "sp_attach_single_file_db 'Spatial' , 'C:\Program Files\Microsoft SQL Server\90\Samples\Engine\Programmability\CLR\Spatial\Data\Spatial.mdf'"
 