經安全檢測,此網站為安全網站,請放心前往原始網址!

How to delete all rows from all tables in a SQL Server database? - Stack Overflow

How to delete all rows from all tables in a SQL Server database? ... Set nocount on Exec sp_MSForEachTable 'Alter Table ? NoCheck Constraint All' Exec sp_MSForEachTable ' If ObjectProperty(Object_ID(''?''), ''TableHasForeignRef'')=1 Begin -- Just to know

stackoverflow.com

網址安全性掃描由 google 提供