Reputation: 3754
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
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
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