write progamming connecting QTP to database sql? this is
question asked by interview? please give sql, pl/sql related
answer?pls any answer this?

Answer Posted / rangarao

Set myconn=CreateObject("ADODB.Connectionn")
myconn.Open
("Provider=OraOLEDB.Oracle;DataSource=Your_Oracle_Database;o
SAuthent=1;")
if(myconn.state=1) Then
Set rec=myconn.Execute("query")
while rec.EOF<>TRUE
msgbox rec.fields(colname)(We can also Specify column index)
rec.MoveNext
wend
End if
rec.Close
myconn.Close

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a reusable action?

572


Give me some real time point of way where exactly we can conduct audits?

1494


What is meant by a Check Point in UFT? Also, explain the applicable Check Points.

699


hi all can anyone explain how to write the code for finding the mandatory columns in table which are having (red*) (red Astrik)

1392


Why we use QTP ,We can use other tools like WR OrSilktest What r the options in Qtp that WR and Swilktest Does not have.

1845






Give me detailed theritical explanation about keyword driven, hybrid framework, environment variables, hybrid frame work

1436


What is the difference between analog and low level recording?

608


How QTP support all types of applications (platforms)?

4071


Hi Every body please explain me in steps to use checkpoints and object Repositories in QTP for Flight Reservation application please tell me the steps for this its urgent pls thanx for urs answers

1566


What are the 3 main stages involved in testing with qtp?

545


What is the difference between call to existing action and copy of an action?

594


What is keyword view?

557


action contains public and private functions but do we resuable that action or not..If it is reusable How..plz tell me the ans

1622


How to build scripts that access data from external sources?

1597


what is Property......End Property loop? how to write sript for it in QTP

1881