How to connect to database using QTP? - TestingQ.com

-->Exclusive Portal for Testing Jobs

How to connect to database using QTP?

Ans: 
Set objADODB=CreateObject("ADODB.Connection")
objADODB.Open "DSN=DsnName;UserID=UId;Password=pwd; DataBase=databasePath"

To receive daily posted JOBS & Interview Questions
Just enter your email address below and click 'Submit'
Enter your email address:

Make sure to activate your subscription by clicking on the activation link sent to your email