What are the details steps to connect a remote mysql
database in QTP

Answer Posted / santhosh ankam

This is code to run sql query through qtp.

SQL "SELECT * FROM ORDERS"
connection_string "QT_Flight32"
columns 1
set connection CreateObject("ADODB.Connection")
connection.Open connection_string
set rs1 connection.Execute( SQL )
rows db_get_rows_count(rs1)
msgbox rows
rows rows-1
myval db_get_field_value(rs1 rows columns )
msgbox myval

Is This Answer Correct ?    1 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

give me an example where u used good judgement and logic in solving a problem

3360


How do you open adobe acrobat file in QTP and do some testing on that file ?

623


what is the difference between IE & Netscape in web testing on a log in page

1793


How many ways we can parameterize data in quicktest professional (qtp)?

585


in my application,validation message has in japanise language.how to validate this message is appears properly or not

1526






any body plz send health care domain project to me with explanation any two modules on that project. mail_id: ranjith_99reddy@yahoo.co.in

3442


write a script to validate the content in the web application. (do it by OR method) and (do it by Descriptive method by creating a description object..

1802


How many types of trigger events are there in qtp?

549


If you have two monitors one is of 19inch and the 2nd one is of 24inch,if you want to write same QTP script in both the two monitors is there any changes required in the script?

1588


what r the main attributes of test automation?

1480


Does QTP run in any environment?

614


assume i have few url link how will i dynamically call then using descriptive programming?

1603


How to analyzing test results using quicktest professional (qtp)?

590


What are the different attribute used with regular expression?

537


If there is a change in the object type eg: A button is changed as link, 1. How to edit that in the shared object repository. 2.What options are available to edit the object within shared object repository other than copy from loca; 3.What would be the effect of the change in Coded Scripts within QTP and Functions stored in .vbs file which are loaded and used in QTP

1301