Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / DB Engine / SQL Server CE / December 2007

Tip: Looking for answers? Try searching our database.

A fast way to delete all records

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Stefano - 02 Dec 2007 13:20 GMT
Hi all,
in a Sql Server Compact Edition 3.5 database I just need to delete all the
records in a table, is there any way faster than execute a DELETE FROM
statement, or more practical than deleting the table and recreate it?
UnfortunatelyTRUNCATE TABLE is not supported...is there another way?
ErikEJ - 02 Dec 2007 13:46 GMT
No, there is no alternatives to the two methods you decribe. If you want to
keep the
old table, you can use sp_rename.

Signature

Erik Ejlskov Jensen, Mobile App Dev MCTS
Check out my SQL Compact blog at
http://erikej.blogspot.com

> Hi all,
> in a Sql Server Compact Edition 3.5 database I just need to delete all the
> records in a table, is there any way faster than execute a DELETE FROM
> statement, or more practical than deleting the table and recreate it?
> UnfortunatelyTRUNCATE TABLE is not supported...is there another way?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.