这是我的脚本C#
:
exec sp_executesql N'
IF OBJECT_ID(N''RealEstate.vwContract'', N''V'') IS NOT NULL
DROP VIEW RealEstate.vwContract
CREATE VIEW RealEstate.vwContract
AS
SELECT RealEstate.Contract.ID .... (Rest of Statement omitted for brevity)
错误显示:
Msg 111, Level 15, State 1, Line 1
'CREATE VIEW' 必须是查询批处理中的第一条语句。
请帮我。