Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP to SQL
Message
From
21/09/2005 18:06:50
 
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01051755
Message ID:
01051806
Views:
9
Since I'm giving a class on this very subject this weekend at the VFE Devcon I empathize with your observations. My first reaction is that by realizing "It's not as easy as that" you have taken the first very important step.

"Client/Server Applications with Visual Foxpro and SQL Server" from Hentzenwerke can be very helpful. I would suggest first thinking very carefully about the current pk/fk structures in your app and if you are not using guid() as surrogate keys now that is the first conversion I would make, on the vfp side. IMO uniqueidentifiers are the way to go on the SQL side. You can use DTS on the SQL side to move structures and data to your server if you find the upsizing wizard not to your liking.

I wish there were a magic wand for converting veiws to remote views. Biggest thing is understanding differences in syntax.

There are some good tools that can help. Dan Goodwin of Primary Data Solutions has written genviewdbcall.prg which is a more sophisticated version of gendbc. Point it at a dbc of views and it will create a very nice prg for each view. Very nice way to hack the sql. A couple of days ago in preparation for this class I wrote a little prg that looks at all the prgs created by Dan's program and changes them to remote views, fixes some syntax and flags the one that should be eyeballed further. Once the prgs are hacked, you just open your new dbc ( I recommend a new one for the remote veiws ) and run each prg. ( of course you can automate that too )

Dan's stuff is available on his website a primarydatasolutions.com. Send me a message with your email and I'll send you the little hackthings I wrote.


>It's not as easy as that trust me. We have been planning for this upgrade for some time now and have looked at many options. I just wanted to make sure that we had looked at every option possible before going on with the move. Thank you for your reply but if using the upsizing wizard is the only easy option I might as well go out into the wilderness somewhere and end my life as a failed and depressed developer. I am not afraid to use a third party tool or some hidden vfp command but microsoft wizards are far from select your database and hit go and your all your problems will be magically dissapear, otherwise, I would be out of a job. Please ignore my sarcastic attitude and keep the replies coming =)


Charles Hankey

Though a good deal is too strange to be believed, nothing is too strange to have happened.
- Thomas Hardy

Half the harm that is done in this world is due to people who want to feel important. They don't mean to do harm-- but the harm does not interest them. Or they do not see it, or they justify it because they are absorbed in the endless struggle to think well of themselves.

-- T. S. Eliot
Democracy is two wolves and a sheep voting on what to have for lunch.
Liberty is a well-armed sheep contesting the vote.
- Ben Franklin

Pardon him, Theodotus. He is a barbarian, and thinks that the customs of his tribe and island are the laws of nature.
Previous
Reply
Map
View

Click here to load this message in the networking platform