how we connect oracle or sql data server database to qtp.
Answer Posted / mohit
You may try:
Dim rs,sq,pkey
set conn=createobject("adodb.connection")
set rs=createobject("adodb.recordset")
' Oracle client is required to be installed on your box
conn.open= "Provider=OraOLEDB.Oracle.1;Password=***;Persist
Security Info=True;User ID=****;SERVER=****;Data
Source=****;DBQ=****;"
sql="your sql"
rs.open sql,conn
rs.close
set rs=nothing
conn.close
set conn=nothing
| Is This Answer Correct ? | 7 Yes | 6 No |
Post New Answer View All Answers
How to use the object spy in quicktest professional 8.0 version?
how to fetch the values from grid? & qtp recogniges that grid as a webelement? what u do?
what are all the fileds present in object repository?
What are the challenges you faced during you entire life automation ?
What are the advantages of qtp?
What is the pros and cons between QTP and Rational Robot
If the objects hierarchy is changing from build to build, then how you will handle that condition?
how u will evaluate the tool for test automation?
What are the factors on which script execution time is dependent?
What is environment variable in qtp and why to use it?
any body can you help me what is the script to automate an comand promt
Hi All , How can we decicde for pariticular frame(DataDriven or Keword Driven)in Project? Thanks Balaji
How does you pass optional arguments in qtp?
Can we use index on view?
What are benefits of qtp?