我正在尝试在 Windows azure 中运行我的 SQL 脚本。我使用转换我的查询SQLAzureMW v3.9.9.1 Release Binary
,当我尝试运行脚本时,我
Unclosed quotation mark after the character string ...
在转换后的 sp 中出现错误。我的sp很好MSSQL 2008
。
转换前我的 sp:
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[EntryUpdate]
@EntryID INT,
@Value NVARCHAR(100),
@Text NVARCHAR(150),
@CurrencyCode NVARCHAR(50),
@DisplayLocale NVARCHAR(50),
@Description NVARCHAR(500),
@IsActive BIT,
@UpdatedBy NVARCHAR(256),
@Culture NVARCHAR(256)
AS
BEGIN
UPDATE dbo.Lists
SET
[Value] = @Value,
[Text] = @Text,
[CurrencyCode]=@CurrencyCode,
[DisplayLocale]=@DisplayLocale,
[Description] = @Description,
[IsActive]=@IsActive,
[UpdatedBy] = @UpdatedBy,
[UpdatedOn] = GETDATE()
WHERE [EntryID] = @EntryID AND Culture=@Culture
END
用我的 sp 转换后的SQLAzureMW v3.9.9.1 Release Binary
样子:
--Other Procedure
'
END
GO
SET ANSI_NULLS ON
SET QUOTED_IDENTIFIER ON
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[EntryUpdate]') AND type in (N'P', N'PC'))
BEGIN
EXEC dbo.sp_executesql @statement = N'
CREATE PROCEDURE [dbo].[EntryUpdate]
@EntryID INT,
@Value NVARCHAR(100),
@Text NVARCHAR(150),
@CurrencyCode NVARCHAR(50),
@DisplayLocale NVARCHAR(50),
@Description NVARCHAR(500),
@IsActive BIT,
@UpdatedBy NVARCHAR(256),
@Culture NVARCHAR(256)
AS
BEGIN
UPDATE dbo.Lists
SET
[Value] = @Value,
[Text] = @Text,
[CurrencyCode]=@CurrencyCode,
[DisplayLocale]=@DisplayLocale,
[Description] = @Description,
[IsActive]=@IsActive,
[UpdatedBy] = @UpdatedBy,
[UpdatedOn] = GETDATE()
WHERE [EntryID] = @EntryID AND Culture=@Culture
END
'
----Other Procedure
我搜索但我找不到任何线索。关于这个错误的任何想法。谢谢。