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
OLEDB CONNECTION STRING
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 90
- Joined: Mon Dec 08, 2003 4:48 am
- Location: Chennai
OLEDB CONNECTION STRING
Think Ahead,
Raj.D
Raj.D
Re: OLEDB CONNECTION STRING
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