Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DB Connectivity
#4
Not Solved
Make a function and use dataTable.

Code:
Function DSN()
Dim Oconn
Set OConn = createObject("adodb.connection")
DSN=DataTable["DSN",dtGlobalSheet];Description=desc;UID=Datatable["UserName",dtGlobalSheet];PWD=DataTable["Password",dtGlobalSheet];APP=;WSID=;DATABASE=;"

oConn.Open DSN
End Function
Here I am using Datasheet ,so I don't need to pass DSN,UserName and Password everytime. Everytime I just need to call the function DSN() and it will directly fetch values from the datasheet.

Hope this will help you.Let me know if you have more queries.

~Regrads
Reply


Messages In This Thread
DB Connectivity - by Priyanka Arya - 08-07-2010, 09:42 PM
RE: DB Connectivity - by QTPLearn - 08-09-2010, 10:43 AM
RE: DB Connectivity - by Priyanka Arya - 08-09-2010, 11:26 AM
RE: DB Connectivity - by QTPLearn - 08-09-2010, 05:09 PM
RE: DB Connectivity - by Priyanka Arya - 08-10-2010, 11:00 AM
RE: DB Connectivity - by QTPLearn - 08-10-2010, 01:47 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Database connectivity error galstar 2 2,609 08-19-2010, 06:04 PM
Last Post: galstar
  Issue related to DB connectivity.. galstar 0 1,692 08-17-2010, 01:07 PM
Last Post: galstar
  How to write a script or database connectivity to connect oracle databse upadhyay40 10 8,550 11-24-2009, 12:37 PM
Last Post: Saket

Forum Jump:


Users browsing this thread: 3 Guest(s)