Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sql zap?
Message
 
 
À
17/11/2003 07:57:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00850590
Message ID:
00850633
Vues:
20
Harry,

In additional to Nigel's suggestion, you can use TRUNCATE TABLE [TableName]. This command deletes all records and reset the Identity Key of the table, which DELETE command only deltes all records.

HTH.

Wan

>want to zap a table on sql server
>In line with MSDN's topic
>have tried
>
>SQLPREPARE(gnhandle,'Delete from vizkeys','')
>SQLEXEC(gnhandle)
>
>which doesn't report any error but doensn't delete anything either.
>
>variations like "Delete from vizkeys where realkey<>'.NULL.'" (which should delete all) don't work either.
>
>Whats the secret?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform