0
我有一個SQL腳本創建視圖/表/索引和一些選擇所有在每個表/視圖創建後GO語句與一個腳本,我得到錯誤..它可能在一個腳本中全部散列它們?存儲過程與創建表/視圖/索引&選擇在單個SP
IF OBJECT_ID('dbo.ABC', 'U') IS NOT NULL
DROP TABLE dbo.ABC;
GO
select v.*
INTO dbo.ABC
from dbo.BC v
GO
CREATE NONCLUSTERED INDEX IX_ABC_ID ON dbo.ABC ([ID])
GO
GO
CREATE VIEW [dbo].[vABC] AS
SELECT [ID]
,[Description]
,[Name]
FROM [dbo].[NewDRGTable]
GO