Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Connecting to oracle
#2
Solved: 10 Years, 9 Months ago
Create a DSN if you are aware of the server details and use DSN instead of connection string
you will have to use the below lines for establishing connection
Code:
Str_Connect= "DSN=<DSNName>;UID=<useridtonconnect to databas>;pwd=<password>;"
'Create Connection object
Set oCon=CreateObject("ADODB.Connection")
oCon.Open Str_Connect
To check on how to create a DSN (Data source name) file or create connection strings please see the below thread
https://www.learnqtp.com/qtp-database-pa...n-strings/


Regards,
Ravi
Reply


Messages In This Thread
Connecting to oracle - by praveendasika - 08-24-2012, 04:18 PM
RE: Connecting to oracle - by ravi.gajul - 08-24-2012, 07:56 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Connecting to Cognos TM1 Cube using UFT/QTP anujkabra1985 0 1,596 10-09-2015, 01:51 AM
Last Post: anujkabra1985
  Getting error while connecting from qtp to oracle sql developer. Ritanjali Pradhan 1 2,999 09-26-2014, 02:06 PM
Last Post: vinod123
  Unspecified error while connecting database kamalteja 0 5,091 12-04-2012, 10:05 PM
Last Post: kamalteja
  QTP oracle addin not recognising Japplet Oracle rmanasa 9 7,030 01-20-2012, 08:43 PM
Last Post: nash27
  Connecting SQL Server with QTP ritugoyal 1 3,798 02-09-2010, 05:22 PM
Last Post: manabh

Forum Jump:


Users browsing this thread: 1 Guest(s)