We can make database connection using the ADO (ActiveX Data objects) Connection Object. The Syntax for making the connection is as follows.
Option Explicit Dim con,rs
con.open Connection String
rs.open "select * from emp",con
Do while not rs.eof Logic
'Release objects'Release objects Set rs= nothing Set con= nothing
Through this you can do database testing using QTP .
Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!