I have a process where data is transferred from an Excel spreadsheet into SQL Server. To do this, I've created a dtsx using the SQL Server Import / Export Data wizard.
The trouble is, the script could be run against any database. But the wizard seems to default to using the format CREATE TABLE [Database].[dbo].[table]
when creating the script. This means that the dtsx's "DestinationConnectionOLEDB
" Connection Manager is worse than useless - you change it, thinking you've changed the end location that the script will run, only to find that the tasks still point to the original database.
What I've been doing up till now is manually going in and find-replacing [Database]
for the new name. Sadly, it took me till today to realise that I probably could just find-replace "[Database].[dbo].
" with an empty string (largely because I've had the dtsx's break a few of the times I've meddled with them).
So, is it possible to skip over the necessity of the final step (and reduce the possibility I'll break something along the way) by not including the [Database].[dbo].
in the file in the first place?