Source Type 200 in SQL Server Import and Export Wizard?

后端 未结 8 778
南笙
南笙 2021-01-03 23:06

I am trying to import data from one database in a server to a new table in a different server, using SQL Server import and Export Wizard. (SQL Server Management Studio 2012)

相关标签:
8条回答
  • 2021-01-03 23:59

    I bet that text columns aren't able to be inserted into varchar columns with the wizard. Depending on how big the table is, you could export the source to csv via the SSMS and then import it. That should work but if you have multiple tables to import you could add a linked server. Then you can just qualify the old table or the new table like this:

    insert into [new_server].database.dbo.tablename
    select * from old_table
    

    I know SQL2000 is a pain for creating linked servers though which is what I'm guessing you are trying to export from since you have text columns.

    0 讨论(0)
  • 2021-01-03 23:59

    I was able to work around this by casting character fields as char(##) in the SQL and then changing the destination data types to varchar(##). The fields might need trimming before use, but the import works.

    0 讨论(0)
提交回复
热议问题