Hi,
When I run the "Generate Scripts.." wizard to generate Stored Procs, they are displayed with all the single quotes replaced by two single quotes and a few additional single quotes here and there. The problem is, I can not take this stored proc and run it in another DB as you can see it from the example below. Do I need to be picking any particular settings?
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER OFF
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[getQuestions]') AND type in (N'P', N'PC'))
BEGIN
EXEC dbo.sp_executesql @.statement = N'
/*************************************************************************************
Stored Proc Desription:
*************************************************************************************/
CREATE PROCEDURE [dbo].[getQuestions]
AS
SELECT a, b, c FROM Country WHERE countrycode=''US''
'
END
The above is not a problem. Please ignore this post. Everything works as intended.
No comments:
Post a Comment