Database verification

What is Database verification in QTP?

Questions by smitha27

Showing Answers 1 - 6 of 6 Answers

Use this piece of code:

Set mConnection = CreateObject("ADODB.Connection")
mConnection.Open "Provider=SQLOLEDB.1;Data Source=;Initial Catalog=<>CATALOG","USERNAME","PASSWORD"
set rs = CreateObject("ADODB.recordset")
rs.Open "select EMP_NAME from EMP where FileId='MANOJ'",mConnection
sString = rs.GetRows(1,0)

MS

  Was this answer useful?  Yes

dhanasekars

  • Aug 28th, 2008
 

This is simlar to verification of data manually, instead here we use QTP to automate the process,
This is done by connecting to DB using ADODB connection, used Record set collection to manipulate the data

I think the other reply gives the code to connect to DB

Thanks,
Dhanasekar S

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions