跳转到内容

Granite WMS/SQL/Granite

来自维基百科,面向开放世界的开放书籍

删除数据库中除必需安装数据以外的所有数据。

[编辑 | 编辑源代码]
EXEC sp_msforeachtable "ALTER TABLE ? NOCHECK CONSTRAINT all"

EXEC sp_MSforeachtable 'IF OBJECT_ID(?) NOT IN (ISNULL(OBJECT_ID([dbo].[Type]),0),ISNULL(OBJECT_ID([dbo].[Status]),0),ISNULL(OBJECT_ID([dbo].[BarcodeMaster]),0),ISNULL(OBJECT_ID([dbo].[ScannerSettings]),0),ISNULL(OBJECT_ID([dbo].[IntegrationSettings]),0),ISNULL(OBJECT_ID([dbo].[Status]),0),ISNULL(OBJECT_ID([dbo].[Status]),0))DELETE FROM ?'

EXEC sp_msforeachtable "ALTER TABLE ? WITH CHECK CHECK CONSTRAINT all"
华夏公益教科书