Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Updating SQL Files from VFP
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01204946
Message ID:
01205033
Views:
27
ZAP will not work with SQL Server Express, you must use a SQL Statement such as:
DELETE FROM <TableName> WHERE 1=1
This is compact syntax for clearing all records from a table. SQL Server handles tables quite differently than VFP so you dont have to worry about PACK or DELETED. Once a record is deleted in SQL Server it is gone for good. There are several wor arounds if this is not the behavior you want such as adding a deleted flag column to your table and adding a WHERE clause to your SELECT statement to only return record where for example :
SELECT * FROM TableName WHERE TableName.IsDeleted = 0  && False with SQL Server
Remember when using SQL Server that the Boolean 0 = .f. in VFP and Boolean 1 = .t.
Woodie Westbrook
I came, I saw, I compiled.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform