ZZZ
ZZZ

Reputation: 3754

How to change destination table name in SQL Server Import and Export Wizard

I use SQL Server Import and Export Wizard to transfer data from a remote server to my local server.

I found that the destination table name on my local server is forced to be 'Query'. How can I change this from Query to something I specify?

Upvotes: 3

Views: 5076

Answers (2)

Alan Hinton
Alan Hinton

Reputation: 559

On the screen after you select the query you get the 'Select Source Tables and Views' screen. On this screen you can select which table the data is written to in the destination column. This drop down will let you select any table in the destination database. So you will need to create your destination table in the destination database before using the wizard.

You can also edit column mappings and what happens to existing data by using the 'Edit Mappings...' button.

Upvotes: 2

brian
brian

Reputation: 3695

You are basically creating an ssis package via a wizard. Create the package manually, create a table destination variable, figure out a way to populate the table destination variable, and choose "Table or view name from variable" (choosing that variable) for the destination.

Upvotes: 0

Related Questions