Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How to use the object spy in quicktest professional 8.0 version?

987


how to fetch the values from grid? & qtp recogniges that grid as a webelement? what u do?

2418


what are all the fileds present in object repository?

2044


What are the challenges you faced during you entire life automation ?

1519


What are the advantages of qtp?

1011


What is the pros and cons between QTP and Rational Robot

3780


If the objects hierarchy is changing from build to build, then how you will handle that condition?

1053


how u will evaluate the tool for test automation?

1855


What are the factors on which script execution time is dependent?

1068


What is environment variable in qtp and why to use it?

1010


any body can you help me what is the script to automate an comand promt

2491


Hi All , How can we decicde for pariticular frame(DataDriven or Keword Driven)in Project? Thanks Balaji

1830


How does you pass optional arguments in qtp?

1038


Can we use index on view?

2096


What are benefits of qtp?

1134