How to connect oracle database to QTP

Showing Answers 1 - 2 of 2 Answers

megha_maya

  • Mar 6th, 2008
 

1. connect to the database using a DSN/establish a connection
set con=Createobject("ADODB.connection")
2.open the connection
con.open "DSN=mention your data source name where it stored currently"
3. SQL - execute an SQL query
set rs=con.execute("select * from order where order_no < 5
4.get the result from the resultset and fetch the query
msgbox rs(order_no).value
5.finally close the connection.
con.close

if anything wrong kindly send the correct details

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions