I am trying to access FoxPro 2.6 tables and have created a linked server with a System.DSN ODBC driver as the data source, and the correct FoxPro tables are listed in mySQLServer.myLinkedServer.Tables node.
In a VB.NET app Using OleDb Connection and Command objects I can view the 'pubs' tables ok, but cannot view the linked server FoxPro tables, nor can I see them in Server Explorer
Sample of code
I have used many combinations of the code displayed above with no effect. Could anyone Please point me in the right direction.
Many thanks
In a VB.NET app Using OleDb Connection and Command objects I can view the 'pubs' tables ok, but cannot view the linked server FoxPro tables, nor can I see them in Server Explorer
Sample of code
Code:
Dim myConnString As String = "Provider=SQLOledb;" & _
"Data source=myDataserver\mySQLServer;" & _
"Integrated Security=SSPI;"
Dim mySQLString As String = "SELECT Em_Fname,Em_Lname, " & _
"Em_Alias, Em_PWord FROM myLinkedServer.Employee"
Dim myConnection As New OleDbConnection(myConnString)
Dim myCommand As New OleDbCommand(mySQLString, myConnection)
Try
myCommand.Connection.Open()
Dim myReader As OleDbDataReader
etc.etc.
Many thanks