Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to Zap all user table ?

Status
Not open for further replies.

nengie

Programmer
Jan 7, 2002
14
0
0
TH
Hi all ,
I want to zap all user table. How can I write store procedure to do this job ? TIA.
 
Query sysobjects for the user tables into a cursor
then iterate throught that cursor

TRUNCATE TABLE <thetablename>
JHall
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top