Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pass "Select ...Into" from VB thru ADO to VFP

Status
Not open for further replies.

LlomaxX

Programmer
Nov 7, 2002
64
US
This one has me stumped. I am using Visual Studio 6.0 and I am trying to pass a SQL Select statement thru ADO to the Visual Foxpro Driver. The statement is a simple
"select * from MyTable into table NewTable"

If I paste the SQL into the Foxpro Command window, it creates the NewTable.dbf, with all the rows in it.

If I send the exact same SQL through an ADO Connection, it does NOT create the table and actually returns the recordset.

Does anyone know how I can get a Select ... Insert statement to work going from VB 6.0 thru ADO 2.7 into VFP 6.0?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top