Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1088625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T23:05:46+00:00 2026-05-16T23:05:46+00:00

The stored procedure scripts that SQL Server Management Studio 2005 generates for me are

  • 0

The stored procedure scripts that SQL Server Management Studio 2005 generates for me are like:

SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[APY_SP_ACH_Transmit_Finish]') AND type in (N'P', N'PC'))
BEGIN
EXEC dbo.sp_executesql @statement = N'
  ...
  print ''arg!, all the quotes are escaped''
  ...
 '
END

so all the quotes are escaped. is there a way or option to turn this off?

in SQL Server Management Studio 2005. I do the following:

1) In Object Explorer, locate the procedure I want to script out
2) right click, and select script stored procedure as “Create To”
3) selecting file or clipboard has the same effect.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T23:05:47+00:00Added an answer on May 16, 2026 at 11:05 pm

    This seems to happen when the scripting option "Include If NOT EXISTS" clause is on.

    Do you need this on? If not you can turn it off via the

    Tools -> Options -> Scripting

    From this Connect item it doesn’t look configurable without that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'd like to write a stored procedure in SQL 2005 to script all my
I have a couple of stored procedures on SQL Server 2005 that I've noticed
I have written a stored procedure in SQL Server. Now its just that I
In MS SQL Server Management Studio 2005: If you have the setting Tools|Options|Scripting|Include IF
I have a script that runs a stored procedure in my SQL server database,
I'm confused about the way that SQL Server Management Studio saves the comments of
System Specifications Microsoft SQL Server Management Studio 9.00.4035.00 Microsoft Analysis Services Client Tools 2005.090.4035.00
SQL Server Server 2005. I'm staring at a database that has 500+ stored procedures,
I have a set of sql scripts which I send to SQL server using
I've a stored procedure that does something like this: SELECT Id INTO #temp FROM

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.