• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 272
  • Last Modified:

getting proc from sql_modules vs routines

is there any benefit to getting the proc from one view rather than the other, to migrate it over. Both give it in single line without any formatting.

i am not going with scripting, as it will be a manual process of selecting 90+ procs, and i have it all in string format, which i can pass and get it quickly to run it in the destination.

thanks
0
anushahanna
Asked:
anushahanna
  • 2
1 Solution
 
MlandaTCommented:
what???
0
 
anushahannaAuthor Commented:
i can copy paste from the proc and run from either of the above system views. I am asking if there are procs/cons of choosing one route over the other.

0
 
BrandonGalderisiCommented:
It is given in a single line without formatting when you view/copy/paste it from GRID format.  If you put SSMS into TEXT format, it will show the formatting as it was entered.

The problem is that SSMS limits the character output to 8192 characters per row/column so you may miss some of the procedure code.  If you are exporting your code to deploy to a new server, it is best to use SSMS and go through the generate scripts wizard to generate your code files.
0
 
anushahannaAuthor Commented:
OK. I will follow that advice. Thanks Brandon.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now