Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Database connectivity error
#1
Solved: 10 Years, 10 Months, 1 Week ago
Hi,

While doing connectivity to database i am facing an issue..Firstly the script containing connectivity funcn was working.But i transfared that on new system and created the same DSN..
Now while running the script error that "Timeout expire" is getting populated..

connectivity function:
Code:
Function Connect_to_db(Byval mfgprt)

Dim cnn,rss
Set cnn = CreateObject("ADODB.Connection")
Set rss = CreateObject("ADODB.recordset")
cnn.ConnectionString = "DSN=QTPDSN;Description=desc;UID=sa;PWD=Passw0rd;APP=QuickTest Professional;WSID=.....;DATABASE=.....;"
cnn.open
rss = cnn.Execute("select  UnitPrice  from ------where MfPartNumber ='" + mfgprt + "'")
Connect_to_db=rss(0)
End Function

Could anyone suggest me the reason behind this....?

Thanks
Reply


Messages In This Thread
Database connectivity error - by galstar - 08-06-2010, 06:55 PM
RE: Database connectivity error - by basanth27 - 08-13-2010, 07:05 AM
RE: Database connectivity error - by galstar - 08-19-2010, 06:04 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Database connection error learnasugo 3 3,943 05-15-2014, 01:49 PM
Last Post: Ankur
  Issue related to DB connectivity.. galstar 0 1,637 08-17-2010, 01:07 PM
Last Post: galstar
Exclamation DB Connectivity Priyanka Arya 5 3,910 08-10-2010, 01:47 PM
Last Post: QTPLearn
  How to write a script or database connectivity to connect oracle databse upadhyay40 10 7,940 11-24-2009, 12:37 PM
Last Post: Saket

Forum Jump:


Users browsing this thread: 1 Guest(s)