Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

getting proc from sql_modules vs routines

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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
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…

809 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