Re: Generate SQL Script for Stored Procedures

From: Sue Hoegemeier (Sue_H_at_nomail.please)
Date: 03/25/04


Date: Thu, 25 Mar 2004 07:32:42 -0700

As Hari pointed out, system stored procedures won't show up
in the Generate SQL Script dialog from Enterprise Manager.
If you are trying to script out system stored procedures,
you can script these individually using the object browser
in Query Analyzer. If you right click on the stored
procedure in the object browser, you get scripting options.
You can script the stored procedure to a file by selecting
Script Object to File as Create.

-Sue

On Wed, 24 Mar 2004 16:50:22 -0800, "Barb"
<anonymous@discussions.microsoft.com> wrote:

>I want to script some stored procedures before I drop
>them. When I right click on the master database, and
>select generate sql script, I see 2 objects for the master
>database, the helpbox procedures.
>
>If I right click on the stored procedure itself, the
>generate sql script is greyed out.
>
>would appreciate help on this. Thanks.



Relevant Pages

  • Re: Scripting T-SQL CREATE Statements
    ... a backup of user-defined SQL Server objects. ... I am having a hard time finding the T-SQL functions and system stored procedures used to return the scripted ... like when you right-click an object and select Script Object to New Window as>> Create. ... I am trying to get it much like the instnwnd.sql file that comes with the .NET Framework SDK v1.1. ...
    (microsoft.public.sqlserver.programming)
  • Re: Backing Up Stored Procedures
    ... SQL Script. ... Here you can script them all or just selected ones. ... > We do not need some of the default stored procedures. ... >>Backup the database which contains the stored procedures. ...
    (microsoft.public.sqlserver.security)
  • Re: Generate SQL Script for Stored Procedures
    ... >in the Generate SQL Script dialog from Enterprise Manager. ... >If you are trying to script out system stored procedures, ... >you can script these individually using the object browser ...
    (microsoft.public.sqlserver.security)
  • Re: convert to stored procedure + NDS
    ... Is there a clever way or an existing script I ... can use to find/replace multiple DDL statements in each sql script ... Puget Sound Oracle Users Groupwww.psoug.org ... statements into stored procedures so I don't have to manually do so. ...
    (comp.databases.oracle.tools)
  • Re: convert to stored procedure + NDS
    ... Is there a clever way or an existing script I ... can use to find/replace multiple DDL statements in each sql script ... statements into stored procedures so I don't have to manually do so. ...
    (comp.databases.oracle.tools)