1. Get your spatial data ready. If you’re just starting to work with spatial data and don’t have a handy .shp file, you can visit some of these sites which provide publicly available shapefiles:

2. Download the SQL Server Spatial Tools from ArcGIS, which include the Shape2SQL tool.

3. Once downloaded, launch the Shape2Sql.exe file.

4. Fill in the fields required for database, table etc. However DO NOT check in the “Create Spatial Index” (as of Version 1.3.3759). It seems that when you click on this, the table does not get created in SQL Server.


5. Check your database, you should now have the new table you’ve specified in Shape2SQL, which contains the spatial data included in your shapefile.

6. If you select the data from this table in SQL Server Management Studio, you should see a new result tab called Spatial Results once you execute your query:

spatialquery spatialresults

VN:F [1.9.22_1171]
Rating: 8.8/10 (15 votes cast)
VN:F [1.9.22_1171]
Rating: +2 (from 4 votes)
How to Import Shapefile (.shp) Spatial Data into SQL Server 2008, 8.8 out of 10 based on 15 ratings  
Be Sociable, Share!
  • Tweet