all groups > sql server programming > january 2007 >
You're in the

sql server programming

group:

[SQL Server 2000] TRUNCATE TABLE



Re: [SQL Server 2000] TRUNCATE TABLE Erland Sommarskog
1/20/2007 8:24:06 AM
sql server programming: Man-wai Chang (toylet.toylet@gmail.com) writes:
[quoted text, click to view]

As Ed says, you would need to add the user to the DDLadmin role. Which
is quite hefty and not to recommend.

Had you beeb using SQL 2005 there would have been a couple better options.
--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
Re: [SQL Server 2000] TRUNCATE TABLE Hari Prasad
1/20/2007 10:25:50 AM
Hello,

To truncate the table you should be one of below :-

1. either owner of table
2. members of the sysadmin fixed server role
3. member of db_owner fixed database role
4. member of db_ddladmin fixed database role

Thanks
Have

[quoted text, click to view]

[SQL Server 2000] TRUNCATE TABLE Man-wai Chang
1/20/2007 10:47:11 PM

Is there a method for a non-sa user to use TRUNCATE TABLE rather the
slower DELETE FROM? Any run-as-user kind of thing in SQL 2000?

--
.~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Ubuntu 6.10) Linux 2.6.19.2
^ ^ 22:45:01 up 9 days 1:57 0 users load average: 1.02 1.02 1.00
AddThis Social Bookmark Button