Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to connect to the Database from QTP?

Answer Posted / manjula b

Set odb=createobject("ADODB.connection")
Strpath="c:usershappydesktopdesktop31database2.mdb"
Odb.connection string="provider=microsoft.jet.oledb.4.0;datasource="&strpath
Odb.open
Sql1="select *from employees"
Set orec=odb.execute(sql1)
Dountil orec.eof=true
Print orec.fields("employee name")
Orec.move next
Loop
Odb.close

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

953


Do you know how to connect database? Can you tell me the procedures?

987


What is the file extension of the code file in qtp?

981


How to add verification steps to tests?

9753


What is the syntax to call one action in another?

1032


can u please explain what is the exact difference between qtp8.2 and 9.0

2162


Explain the concept of object repository?

975


For which type of projects the iterative model is not suitable?

1882


can the activities of test case design be automated?

1879


HOW AUTOMATE TEST SCRIPT ? what time it will do? after gneration of basic script or Any , Plz explain detailed?

2191


How can you pass value one action to another action?

1051


If u r using library files (Instead of Check Points) , How do u do bitmap check ?

2035


Explain the checkpoint in qtp?

1104


Can any give an example(if possible templates) how to test web application using QTP. thanks in advance

2035


What is the significance of “action 0” in qtp?

1045