How to connect to the Database from QTP?

Answer Posted / manohar

Dim con,rs
set con=createobject("ADODB.Connection")
set rs=createobject("ADODB.Recordset")
con.provider="Microsoft.jet.oledb.4.o"
con.open"Path of the database"
rs.open "select * (table name),con

Is This Answer Correct ?    27 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

HI, pls help me on this, iam not able to capture getcelldata value in javatable... msgbox javawindow("").javatable("").getcelldata(3,3) but it diaplays empty...

2397


How to execute a winrunner script in quicktest professional (qtp)?

520


describe some problems that u had with automating testing tool?

1414


Explain the features of quick test pro(qtp)?

576


What is Test Fusion Report in QTP?

621






How many types of actions are there in quicktest professional (qtp)?

536


What is the default add-ins in qtp?

555


What are the various types of Actions in UFT?

592


Define Error Pane of UFT?

692


How to use debug tools?

2198


Thanks....But can u tell me how i use the QTP for GIS with one Example...

1429


How to call a test from another test?

682


what is error and fault in terms of software quality?

1458


What is the Command used to start the QTP

1531


How to open a new test using quicktest professional (qtp)?

531