Click here to Skip to main content
15,889,462 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
I am connecting vb6.0 application with Oracle 11Gg DB, generating an error:

Run Time Error'2147467259(80004005)' ORA-12541: TNS: no listener,

I Have Started Listener services but it still not working

VB
Private Sub Form_Load()
Dim rs As New ADODB.Recordset
Set oconn = New ADODB.Connection
oconn.Open "Provider=msdaora.1;Data Source=192.168.1.46;User Id=MaintBr_Electric;Password=sa;Persist Security Info=True"
rs.CursorType = adOpenStatic

rs.CursorLocation = adUseClient
rs.LockType = adLockOptimistic
rs.Open strSQL, oconn, , , adCmdText
Set DataGrid1.DataSource = rs
Posted
Updated 3-Jan-14 9:20am
v3

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900