This is driving me nuts. I have a development/test server that insists on qualifying everything as Unicode strings during script generation. So, instead of
ALTER PROCEDURE [dbo].[usp_Employee_Select]
@Id uniqueidentifier
AS
SELECT
<FieldList>
FROM
Employee
WHERE
Id = @Id
...I'm getting this:
EXEC dbo.sp_executesql @statement = N'ALTER PROCEDURE [dbo].[usp_Employee_Select]
@Id uniqueidentifier
AS
SELECT
<FieldList>
FROM
Employee
WHERE
Id = @Id
'
END
My 3 production SQL servers don't do this when generating scripts - it's just the development/test server. I'm trying to figure out what setting got enabled that is causing this and am having no luck.
Ideas?
- Mark