Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SQL Connection String with DSN
#1
Not Solved
Hi

I am into a weird problem with connection string.

my system has
SQL server 2008
QTP 11
Windows 2008 E2(64 bit)

when establising a SQL connection if i provide the connection string as,
Code:
("APP=QuickTest Professional;" & "UID=" & DBUID & ";PWD=" & PWD & ";DSN=" & DSNNAME & ";WSID=" &  DSNNAME & ";DATABASE=" & DATABASE )

Its throwing an error SQL server doesn't exist or accessdenied.

(Note: I checked the User DSN exists)

but when i give the connection string as
Code:
strConnection = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;User ID=sa; Initial Catalog=TESTDB;Data Source=tcp:ipaddress,port".

It works.

Ideally i am supposed to use DSN only as per standards...

can anybody help..what is causing issue with my DSN thing?

also, the non working connection string works perfectly in 32 bit environment. the issue is with the 63 bit environment only..

any inputs are highly appreciated.

Thanks,
Geeta
Reply


Messages In This Thread
SQL Connection String with DSN - by geethwind - 10-05-2011, 05:10 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question JDBC connection for UFT Anjali09 0 3,637 10-05-2016, 02:19 PM
Last Post: Anjali09
  Getting error while connecting from qtp to oracle sql developer. Ritanjali Pradhan 1 3,199 09-26-2014, 02:06 PM
Last Post: vinod123
  Not able to connect to Oracle SQL Developer Paras Singh 0 6,775 05-30-2013, 01:25 PM
Last Post: Paras Singh
  Need help with QTP SQL ADO connection, value retrieved is different charanbc 0 2,755 09-21-2012, 04:27 PM
Last Post: charanbc
  Generic Function to read the data from Excel/sql database using ADODB connection supputuri 0 13,326 05-25-2012, 10:59 AM
Last Post: supputuri

Forum Jump:


Users browsing this thread: 2 Guest(s)