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

Hi, Can anyone please tell me how to connect the QC with QTP using QTP script? Thanks in advance

1519


what is clean sweep?

1512


In application which areas to be automated and what kind of situation will be take? using QTP? Plz give me the clear answer

1933


Which scripting language used by quicktest professional?

526


What are the different properties of an web object

1424






How can you give wait up to 10 seconds in qtp?

586


can any body clearly explain about keyword driven framework .give me the explanation for files what ever you use in this frame work?

1686


what type of values given to objects. EX::Set oBrowser=Description.Create oBrowser(“micclass”).Value=”Browser”

1486


what is clean sweep?

1881


What should we say if interviewer asks "What is ur project architecture?".......Can any one help me with clear information.?????????

1716


I need to obtain the parent of an object programatically, so if I have: winButton("aButton") I need to obtain the parent part: window("Window1").Dialog("Dialog1") so I can programatically create a string of the full name of the object to call it with an execute statement in QTP I would like to use something like: part[1] = "window(""Window1"")" part[2] = "dialog(""Dialog1"")" so I can do: exeLine = part[1]&"."&part[2]&"."&"winButton(""aButton"")" Execute exeLine Apart from keeping a record of the window/dialog hierarchy is there a parent or path function/ command Thanks Adrian

1567


How to use transactions in qtp?

561


When do go for loop condition in test?

654


How did you resolve conflicts present in Object Repository?

1611


How to connect to a database?

577