dbTalk Databases Forums  

How to Change datasource, username and password on batch import

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss How to Change datasource, username and password on batch import in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
abuck
 
Posts: n/a

Default How to Change datasource, username and password on batch import - 03-07-2006 , 04:19 PM






Hi,

I have around 300 tables to import from an Access database to an MS SQL
server. I want to be able to store the DTS package into a file so I can use
it to populate my MS SQL database from the Access database in my setup and
deployment project. The problem is the datasource of both my access and ms
sql will change at the setup so I will need to give the datasource, user and
password to the DTS for ALL of my tables.

I have use the import&export wizard to generated the DTS for my 300 tables.
This is not a problem. The problem is that the wizard generated 600
connections to import the thing. In reallity, I only need two connection.

I could attached a dynamic property (to use a global variable) for EVERY of
my connection that will change all the datasource, username and password and
it would work. The problem is doing that manually for the 600connetions will
take VERY LONG. Is there any way I can transform my 300 tables with only 2
connections insteed of 600 (in that case, changing 2 connections is not long
to do at all).

Any help will be appreciated.

thanks.


Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: How to Change datasource, username and password on batch import - 03-07-2006 , 04:46 PM






Hello abuck,

You will probably find that the wizard generated copies of connections and
you probably only have around 4 actual connections. This means you change
those and they all fall in line.


Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com

Quote:
Hi,

I have around 300 tables to import from an Access database to an MS
SQL server. I want to be able to store the DTS package into a file so
I can use it to populate my MS SQL database from the Access database
in my setup and deployment project. The problem is the datasource of
both my access and ms sql will change at the setup so I will need to
give the datasource, user and password to the DTS for ALL of my
tables.

I have use the import&export wizard to generated the DTS for my 300
tables. This is not a problem. The problem is that the wizard
generated 600 connections to import the thing. In reallity, I only
need two connection.

I could attached a dynamic property (to use a global variable) for
EVERY of my connection that will change all the datasource, username
and password and it would work. The problem is doing that manually for
the 600connetions will take VERY LONG. Is there any way I can
transform my 300 tables with only 2 connections insteed of 600 (in
that case, changing 2 connections is not long to do at all).

Any help will be appreciated.

thanks.




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.