OLEDB CONNECTION STRING

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
raj_cipher
Participant
Posts: 90
Joined: Mon Dec 08, 2003 4:48 am
Location: Chennai

OLEDB CONNECTION STRING

Post by raj_cipher »

HI,

I have a doubt in OLEDB connection.
In the conncetion string when i hard code the parameters for catalog & source it works fine,but when i pass parameters it is not working.

I have give below how i passed the parameters.Is there any thing wrong with
my approach ?

Connection String:
Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=#DSN#;Data Source=#Server#

Parameters i pass - DSN AND Server
Think Ahead,
Raj.D
denzilsyb
Participant
Posts: 186
Joined: Mon Sep 22, 2003 7:38 am
Location: South Africa
Contact:

Post by denzilsyb »

Stupid question -> are the parameters defined in the job? If they are, are they strings?

Try an ODBC trace and see what is actually being parsed.
dnzl
"what the thinker thinks, the prover proves" - Robert Anton Wilson
Kwang
Participant
Posts: 20
Joined: Tue Nov 04, 2003 4:27 pm
Location: Canada

Re: OLEDB CONNECTION STRING

Post by Kwang »

raj_cipher wrote:HI,

I have a doubt in OLEDB connection.
In the conncetion string when i hard code the parameters for catalog & source it works fine,but when i pass parameters it is not working.

I have give below how i passed the parameters.Is there any thing wrong with
my approach ?

Connection String:
Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=#DSN#;Data Source=#Server#

Parameters i pass - DSN AND Server

should be:
Parameters to pass: DATABASE AND Server

Connection string:
Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=#database#;Data Source=#Server#
Kwang
Post Reply