Hi friend i use this code to connect via vb6 a mysql database in local.
Is possible to connect other pc with the same code on the dsn on original pc where reside the dsn?
Tks for all and sorry for my bad english i'm italian.
Sub uno()
Dim conn As ADODB.Connection, rec As ADODB.Recordset
Set conn = New ADODB.Connection
Set rec = New ADODB.Recordset
conn.Open "Dsn=test"
rec.Open ("select * from staff"), conn, adOpenStatic, adLockReadOnly
Debug.Print rec.Fields(0)
Debug.Print rec.Fields(1)
rec.Close
conn.Close
Set conn = Nothing
End Sub
note:
i know the ip od pc where is the dsn