Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

Script generation - leading N' Unicode

$
0
0

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


Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>