Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21090

Run time error '-2147467259(80004005)': automation error unspecified error

$
0
0
Hi Im new to VB

I trying to connect to oracle 10g data base using excel 2003 vb 6.5
Below is the code.. when i try to run.. iam getting the above error [Run time error '-2147467259(80004005)': automation error unspecified error]
Don't know to fix it. Anyone suggest solution


Sub ConnectDatabase_Click()

Dim con As ADODB.Connection
Dim rs As ADODB.Recordset
Dim query As String
Set con = New ADODB.Connection
Set rs = New ADODB.Recordset

strCon = "Driver={Microsoft ODBC for Oracle}; " & _
"CONNECTSTRING=(DESCRIPTION=" & _
"(ADDRESS=(PROTOCOL=TCP)" & _
"(HOST=Teddy)(PORT=1521))" & _
"(CONNECT_DATA=(SID=25))); uid=33; pwd=admin;"


con.Open (strCon)


End Sub

Viewing all articles
Browse latest Browse all 21090

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>