Importing a table containing spatial coumns

Discussion in 'Databases' started by mappingbats, Aug 2, 2010.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Can anyone think of a way of importing a (very large) table containging spatial columns??

    Cheers

    Martin
     
  2. dmitri

    dmitri DiscountASP.NET Staff

    What is the source and what is the destination, and how large is the data? Please provide additional details.
     
  3. Source is a local SQLExpress 2008 database. Table has 1.5 million rows. I tried doing a bcp bulk export before I realised you didnlt support that stuff and came out with a bulk export .bin file of a little over 300MB.

    I am just backing up my DASP d/b moving it to my machine adding the tabnle there then re uploading it...
     
  4. dmitri

    dmitri DiscountASP.NET Staff

    Bulk inserting is not enabled on our shared severs beside SELECT INTO command because of the performance overhead involved. I believe that backing up your local database and restoring it on the server is the simplest solution in this case.

    You can export your table's data to CVS file and then import it to your production database using our MyLittleAdmin tools online. Please see this KB article for details.

    Also you can find a third party tools such as SQL Data Compare to synchronize your database data. I believe there are other solutions to this. Let's see what other developers have to say.
     
  5. Well in the end I backed up my database, restored it locally, moved the tablke I wanted there using bcp/insert Into and then uploaded it again. It worked but tedious.

    I wrote a winform prog that would do it at one point but it would have taken around 6 hours I think as the table had 1.5M rows.

    When I looked at myTinyAdmin it did not look liek it would have worked with spatial data (of type geography) - for future reference does it?
     
  6. Sorry should have said thanks for all the input, guys!
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page