SQL Server如果视图存在就删除
SQL Server如果视图存在就删除
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[POS_View_ViewRestockDetali_ViewGoodsTypeWareHouseNew]') and OBJECTPROPERTY(id,N'IsView') = 1)
Drop View [dbo].[POS_View_ViewRestockDetali_ViewGoodsTypeWareHouseNew]