Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to write a script or database connectivity to connect oracle databse
#2
Solved: 12 Years, 10 Months, 3 Weeks ago
hi upadhyay40,

use this piece of code to connect to your oracle database, and execute the query
Code:
Set ConObj = CreateObject("ADODB.Connection")
ConObj.Provider = "MSDAORA.1"
ConObj.Properties("Data Source").Value = YourServerName
ConObj.Properties("Initial Catalog").Value = YourDatabase
ConObj.Properties("User ID").Value = YourUserName
ConObj.Properties("Password").Value = YourPassword
ConObj.Open
If ConObj.Errors.Count = 0 Then
    Set RecObj = CreateObject("ADODB.Recordset")
    RecObj.Open YourQuery, ConObj,adLockPessimistic
End if
your results for the query will be in recordset RecObj
let me know if there is any issue.

Reply


Messages In This Thread
RE: How to write a script or database connectivity to connect oracle databse - by Saket - 11-05-2009, 10:03 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Connect to IBM MQ using UFT 12.5 soumen 2 5,069 03-17-2016, 11:16 AM
Last Post: vinod123
  DB2 Connect connection with IE 11 SRP 1 2,995 12-18-2015, 12:41 PM
Last Post: vinod123
  “Cannot connect to 8822 (connection timed out)" Ikbal 0 2,456 12-08-2014, 11:38 PM
Last Post: Ikbal
  How to write a script for fly out menus (Parent - Child - Sub Child) rajkumarsm 3 5,288 09-02-2014, 10:01 AM
Last Post: vinod123
  How to connect two web element objects? zawarepradeep@gmail.com 1 3,020 07-23-2014, 11:23 PM
Last Post: Ankur

Forum Jump:


Users browsing this thread: 1 Guest(s)