Solved

getting proc from sql_modules vs routines

Posted on 2010-09-13
4
261 Views
Last Modified: 2012-05-10
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
Comment
Question by:anushahanna
  • 2
4 Comments
 
LVL 30

Expert Comment

by:MlandaT
ID: 33665848
what???
0
 
LVL 6

Author Comment

by:anushahanna
ID: 33666030
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
 
LVL 39

Accepted Solution

by:
BrandonGalderisi earned 500 total points
ID: 33666086
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
 
LVL 6

Author Comment

by:anushahanna
ID: 33666234
OK. I will follow that advice. Thanks Brandon.
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Error to start debug MS SQL - Help 8 84
Search query matching words 20 38
Show RTF format in an SSRS report 3 37
SQL Server 2008 Std. License Key owner or vendor 4 53
Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
I have a large data set and a SSIS package. How can I load this file in multi threading?
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question