Hello everyone. I have been searching all afternoon for a way to connect to a visual foxpro database using vfp 8's oledb provider. I can connect to a dbc that is local on my machine but can not connect to a dbc that resides on a different machine. Anyone having any insite into this??
using :
Dim strConn As String
strConn = "Provider=VFPOLEDB.1;Data Source=\\helga\c\somatrak\somatrak\somatrakdb\somatrak.dbc"
Dim objConn As New OleDbConnection(strConn)
Dim SQL As String = "SELECT * FROM Users"
Dim objComm As New OleDbCommand(SQL, objConn)
Dim objDA As New OleDbDataAdapter(objComm)
Dim objTable As New DataTable()
objConn.Open()
objDA.Fill(objTable)
objConn.Close()
dgGrid.DataSource = objTable
dgGrid.DataBind()
using :
Dim strConn As String
strConn = "Provider=VFPOLEDB.1;Data Source=\\helga\c\somatrak\somatrak\somatrakdb\somatrak.dbc"
Dim objConn As New OleDbConnection(strConn)
Dim SQL As String = "SELECT * FROM Users"
Dim objComm As New OleDbCommand(SQL, objConn)
Dim objDA As New OleDbDataAdapter(objComm)
Dim objTable As New DataTable()
objConn.Open()
objDA.Fill(objTable)
objConn.Close()
dgGrid.DataSource = objTable
dgGrid.DataBind()