Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

OMG - What have they done to Stored Proc Scripts???

$
0
0
Just upgraded to SQL 2014 development environment. Please tell me how I can convert back to the old way of stored procedure scripts? When I generate an ALTER script now it does this crazy: -IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Checklist_CreateTask]') AND type in (N'P', N'PC'))BEGINEXEC dbo.sp_executesql @statement = N'for all script generation, even those ad-hoc scripts. All apostrophes are doubled up and so this makes Stored Proc edits really difficult.When I generate a CREATE script I get this: -IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Checklist_CreateTask]') AND type in (N'P', N'PC'))BEGINEXEC dbo.sp_executesql @statement = N'CREATE PROCEDURE [dbo].[Checklist_CreateTask] AS' ENDGOThen an ALTER script is generated.This is just not good for some of my historic script running code... I have tried to amend the default script generation back to SQL 2012, SQL 2010 etc but it still generated stored proc scripts in this way... any ideas?

Viewing all articles
Browse latest Browse all 3145

Trending Articles