My company wants to slowly switch over some old programs that are written in Visual FoxPro 6.0. The problem is that we have a bunch of programs that still reference FoxPro tables.
I have a query that pulls information down to a data table in vb.net. What do I need to do to insert the information from the data table into a FoxPro table.
This is the initial query that get's put into a data table.
Dim SConn As New OleDbConnection(conn)
Dim da As OleDbDataAdapter
Dim dt As New DataTable
Dim sSql As String = "SELECT DISTINCT * FROM DWEmployee where cono <> 'XX' AND officeno <> 'XX' AND cono <> '' AND officeno <> ''"
SConn.Open()
da = New OleDbDataAdapter(sSql, SConn)
da.SelectCommand.CommandTimeout = 90
da.Fill(dt)
SConn.Close()
What do I need to do to replicate this Foxpro code in VB.net
select distinct * from (the data table) into table gp_emps
This will be my connection string for my FoxPro Table if I need it.
Dim FConnString As String = "Provider=vfpoledb;Data Source=Z:\update_dwprm01\gp_emps.DBF;Collating Sequence=general;"
Dim FPdbConnection As New OleDbConnection(FConnString)
Thanks in advance.