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!

Question about Query with Foxpro Table

Status
Not open for further replies.

jfield817

Programmer
Jun 2, 2000
153
US
I have an SS 6.5 database
I need to do queries on a table in the
database with a foxpro table not in the database.
Can the foxpro table be imported using a stored
procedure then joined with the sql server table ?

thanks
john
 
If I understand correctly, you want to execute a single SELECT statement that joins both SQL Server data and a FoxPro table - yes?

Your idea of first importing the FoxPro table into SQLS would probably work, but would be quirky and time-consuming. If the tables involved on SQLS is not huge, you would be better off SELECTing the SQLS table into a local FP cursor, then using FP's SELECT to join that with your local data. Assuming we are talking Visual FoxPro, that is.

Not that it helps you much, but in SQLS 7/2000 you can perform a heterogenous join where SQLS will join both SQLS tables and tables from other data sources together in a single SELECT. Really cool, especially when it works (it is somewhat picky about the supported data sources, but DBF is one of the supported types).
 
Robert,

Yes we are talking VFP .....The join process must
occur within the Sql-Server environment.
I understand that with SqlS 7.0 you can set up
linked servers to do the heterogeneous joins from
different sources ...
Is there a way to Sql Server to open foxpro
tables directly and join them with native Sql tables ?

thanks
john
 
John (jfield817) asked:
Is there a way to Sql Server to open foxpro
tables directly and join them with native Sql tables ?


I believe it can be done in SQL Server 7 or 2000 using the OPENROWSET() function. I don't know of a way to do it in SQL Server 6.5.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top