Accessing Visual FoxPro Free Table with stored procedure

  • I've been looking for ways to UPDATE rows within a Visual FoxPro Free Table with data from an SQL Server 2005 database table. I looked at SSIS, but I had problems with an UPDATE SQL command within an OLE DB Command Transformation component (something to do with the OLE DB Connection for Visual FoxPro not reading the Metadata of the destination free table), and now someone has suggested a stored procedure attached to the SQL Server 2005 database.

    My question is, how do I refer to the Visual FoxPro free table in an SQL statement?

    In SQL, I could quite happily do something like:

    INSERT INTO [database].[schema].

    VALUES (x, y, z)

    But what do I use in the stored procedure to specify which free table I want?

    Or are there any other options I am not considering to UPDATE these free tables with SQL data on a daily basis?

  • You might be better off having VFP connect to SQL, rather than the other way around. I'm pretty sure it can do that.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • I'm slowly phasing out VFP, so I don't want to make any more changes to that if possible. The only reason I have to maintain data on VFP free tables is because older applications use it.

  • I haven't tried this, but can you set up a linked server to VFP?

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply