Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Updating SQL Files from VFP
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01204946
Message ID:
01205033
Vues:
25
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform