Solved

getting proc from sql_modules vs routines

Posted on 2010-09-13
4
259 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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to 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
Add different cell to otherwise similiar row 4 38
Importing Backpac? 1 21
Help creating a spatial object in SQL Server 4 20
Tsql query 6 20
When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

776 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