I have this multiuser VFP 9 that has grown uncultivated for the last decade, and the idea for long time has been to migrate all the data to SQL Server. After some time normalizing the old database, the migration is complete, but there is this tiny thing that is resisting (and this probably is another giant can of worms waiting to be opened): how to make the application look at the remote database, instead to the local.
I have a local.dbc, which is where all the local tables are stored. The tables now are successfully migrated to SQL Server. I created a connection that gets an okay response from the SQL Server. Now, I would assume that in where is says "OPEN DATABASE <LOCAL_VFP_DATABASE>", one has to *somehow* instruct FoxPro to look into the MSSQL database and, if so, most of the code would remain unchanged. The table names are the same, as well as the name of the fields... So, the question is: once I have a connection handle to MSSQL, how can I convert this to something akin to OPEN DATABASE <REMOTE_MSSQL_DATABASE>, so I can use the tables at the server?
I have a local.dbc, which is where all the local tables are stored. The tables now are successfully migrated to SQL Server. I created a connection that gets an okay response from the SQL Server. Now, I would assume that in where is says "OPEN DATABASE <LOCAL_VFP_DATABASE>", one has to *somehow* instruct FoxPro to look into the MSSQL database and, if so, most of the code would remain unchanged. The table names are the same, as well as the name of the fields... So, the question is: once I have a connection handle to MSSQL, how can I convert this to something akin to OPEN DATABASE <REMOTE_MSSQL_DATABASE>, so I can use the tables at the server?