02-25-2010, 10:45 AM
I am not able to understand your connection string, there are so many
connection string to connect to oracle should be -
Provider=msdaora;Data Source=MyOracleDB;User Id=myUsername;Password=myPassword;
the way I use in my script is
try this, hope it helps.
connection string to connect to oracle should be -
Provider=msdaora;Data Source=MyOracleDB;User Id=myUsername;Password=myPassword;
the way I use in my script is
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
try this, hope it helps.