Ms-Sql 2000
declare @SQL varchar(8000)
set @SQL = ''
select @SQL = @SQL + ' truncate table ' + name from sysobjects where type = 'U' and name <> 'dtproperties'
exec(@SQL)
Ms-Sql 2005
Exec sp_MsForEachTable 'TRUNCATE TABLE ?'
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.