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 do u connect database through QTP
tell me both Ms Access and SQL

Answers were Sorted based on User's Feedback



How do u connect database through QTP tell me both Ms Access and SQL..

Answer / prasanth

we can connect to database in QTP using "ADODB" connection
object.

Sample code for SQL Server:

set mycon = createobject("ADODB.Connection")

mycon.open("driver=SQLserver;server=localhost;database=
(database name);trusted_connection=yes")

set myresult=mycon.execute("select * from sample")

while myresult.EOF <> TRUE
msgbox.myresult.fields(0)
myresult.movenext
Wend


you can get the connection strings
for "connectionstrings.com"


Kumar.rnv@gmail.com
Broadridge

Is This Answer Correct ?    8 Yes 1 No

How do u connect database through QTP tell me both Ms Access and SQL..

Answer / alok

Through Data Driver Wizard

Is This Answer Correct ?    2 Yes 6 No

Post New Answer

More QTP Interview Questions

Explain the Different types of QTP test assets and their extensions?

0 Answers  


An object is created, i dont know the methods available for that object, i want to find methods available for that object and use the required method. How i can do this???

4 Answers   HCL,


Can we use same virtual objects in many number of tests?

1 Answers   TCS,


When u ll use Record Button in QTP?Is VB script is Mandatory in QTP? What is Meaning of Frame("v1")?

1 Answers   TCS,


what is the difference between Automation object model(AOM) and test object model(TOM)

2 Answers   UHG,


how u will describe testing activities?

2 Answers  


what is the defference between calling ation and called action?

1 Answers  


Cn u please clarify my doubt Where are micTab and micReturn used.Thanx in Advance

2 Answers  


How can I generate customized logs in QTP ?

2 Answers   Ordain Solutions,


I have written some scripts in QTP by using older version, but I want to run them in latest version. Is there any process to do that.If so can anyone explain me?

1 Answers  


How to save your test using quicktest professional?

0 Answers  


What are the most frequent errors you faced while executing your scripts?

4 Answers   Semantic Space,


Categories