Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
SQL
ce
clients
clustering
connect
datamining
datawarehouse
dts
fulltext
jdbcdriver
msde
mseq
newusers
notificationsvcs
odbc
olap
programming
replication
reportingsvcs
security
securitytools
server
setup
sqlxml.viewmapper
tools
xml
  
 
date: Sun, 2 Dec 2007 14:20:31 +0100,    group: microsoft.public.sqlserver.ce        back       


A fast way to delete all records   
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?
date: Sun, 2 Dec 2007 14:20:31 +0100   author:   Stefano

Re: A fast way to delete all records   
No, there is no alternatives to the two methods you decribe. If you want to 
keep the
old table, you can use sp_rename.

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

"Stefano"  wrote in message 
news:%23IevnYONIHA.2268@TK2MSFTNGP02.phx.gbl...
> 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?
date: Sun, 2 Dec 2007 14:46:27 +0100   author:   ErikEJ

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us