Stephen Songer
.NET Programmer in the Northwest
Sign in
|
Join
Home
Contact
RSS
Atom
Comments RSS
Search
Tags
AJAX
ASP.NET
JavaScript
Reporting Services
Sharepoint
SQL
SQL Server
SSIS
SSRS
Sponsors
advertise here
Navigation
Home
Blogs
Archives
June 2009 (1)
April 2009 (5)
March 2009 (1)
February 2009 (3)
January 2009 (1)
December 2008 (2)
October 2008 (4)
September 2008 (4)
August 2008 (4)
July 2008 (2)
June 2008 (1)
May 2008 (2)
April 2008 (2)
January 2008 (1)
December 2007 (1)
November 2007 (3)
July 2007 (2)
Favorites
ScottGu
Slashdot
Matt Berseth
January 2008 - Posts
0
Comments
Truncating all tables
by
bunbun
This is a nifty little stored procedure that loops through all the tables in a database and allows you to pass a command to execute. In my case, I wanted to truncate all the tables prior to loading new data so I just used: EXEC sp_MSForEachTable 'Truncate...
Filed under:
SQL Server
More Posts