Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create a VFP routine to update many tables/records
Message
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
Other
Title:
How to create a VFP routine to update many tables/records
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01151034
Message ID:
01151034
Views:
114
I am in the process of converting a VFP app to SQL Server database.

I have a routine (sort of business object) that updates several tables and within each table several records. Some process involves comparing values in a VFP cursor against values in the database tables and then making changes to the database table fields.

I don't want this routine to be in a stored procedure. All code should reside in VFP with SQLEXEC calls getting and setting values to the tables and records. Of course, I have to rewrite the entire code because the current VFP code is not structured for SQL Server database.

How do I create a BEGIN TRANSACTION / END TRANSACTION with a bunch of calls to the database with SQLEXEC that would either retrieve or update some tables and records?

Any suggestions would be appreciated.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Next
Reply
Map
View

Click here to load this message in the networking platform