Interview Questions   Tutorials   Discussions   Programs   Videos   

QTP - How to connect to oracle(sqlserver) database to QTP?




287
views
asked marvit August 26, 2014 01:11 AM  

How to connect to oracle(sqlserver) database to QTP?


           

1 Answers



 
answered By Dharma   0  
set con=createobject("ADODB.Connection")
set rs=createobject("ADODB.Resultset");
con.open"provider=oraoledb.1;server=
(servername);UID=(username);PWD=(password);DB=dbserver"
rs.open query,con
Do while not rs.EOF
i=0;
msgbox(rs(i))
i++
rs.move next
loop
rs.close
con.close
set rs=nothing
set con=nothing 
flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert