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

I got error "Item cannot be found in the collection corresponding to the requested name or ordinal" on line 4

My code is

Code:
Set ConObj = CreateObject("ADODB.Connection")
ConObj.Provider = "MSDAORA.1"
ConObj.Properties("Data Source").Value = "15.5.7.13"
ConObj.Properties("Initial Catalog").Value = "sid"
ConObj.Properties("User ID").Value = "User"
ConObj.Properties("Password").Value = "Pass"
ConObj.Open
If ConObj.Errors.Count = 0 Then
    Set RecObj = CreateObject("ADODB.Recordset")
    RecObj.Open "select * from USER", ConObj,adLockPessimistic
End if
Please let me know if i make any mistake, hoping for your cooperation

Thanks
Mahesh
Reply


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

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

Forum Jump:


Users browsing this thread: 1 Guest(s)