all groups > sql server dts > november 2006 >
You're in the

sql server dts

group:

Dynamic Data Source Connection


Dynamic Data Source Connection Sudhakara.T.P.
11/27/2006 7:26:02 AM
sql server dts:
Hi,
I need to connect to Oracle 9i Server & Sql Server 2005 datasources
dynamically, wherein the connection strings needs to be retreived from an
text file specified.

I am trying this by using Expressions and specifying that in the Connection
Manager-->Expressions box, but no luck.

Does anyone has any ideas.

Regards,
Sudhakara.T.P.
Re: Dynamic Data Source Connection Allan Mitchell
11/27/2006 3:36:27 PM
Hello Sudhakara.T.P.,

Can I take it you are using SSIS?


Ok So what I would do is this

Have variables that will hold each connectionstring.

Assign them to the ConnectionString property of the relevant connection manager.

Create two file connection managers that point to the files wherein lies
the connection strings.

Using a Script task retrieve the Connection String values from the files
and assign to the relevant variable.


Should be OK.


Regards

Allan Mitchell
Konesans Ltd
T +44 7966 476 572
F +44 2071 008 479
http://www.konesans.com

[quoted text, click to view]

Re: Dynamic Data Source Connection Sudhakara.T.P.
1/2/2007 1:42:00 AM
Hi Allan,

Thank you very much for the reply.

Well I got hold of the solution after doing some more research on that.
Thank you very much.

Regards,
Sudhakara.T.P.

[quoted text, click to view]
AddThis Social Bookmark Button