Storedprocedures in formatted Output using sp_helptext

sql server India
  • 13 years ago

    Dear Developers ,

                              I'm using sql-server2005. I want ot take the content of a storedprocedure using the command 'Sp_helptext' . It gives the Whole content without format. I mean if i copy the content and i will create in another database without any format change(allignment). can you?

    for ex:

          below is the O/p of a SP:

             create procedure ex_proc (  Begin t

                                                      ry)

    But i need

      create procedure ex_proc (  Begin try)

    Plz, Help me..

    Is there any Command to get a formatted o/p.

    Tahnks in advance

    Raju

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“It is practically impossible to teach good programming style to students that have had prior exposure to BASIC. As potential programmers, they are mentally mutilated beyond hope of regeneration.” - E. W. Dijkstra