Solved

getting proc from sql_modules vs routines

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

In this article—a derivative of my DaytaBase.org blog post (http://daytabase.org/2011/06/18/what-week-is-it/)—I will explore a few different perspectives on which week today's date falls within using Microsoft SQL Server. First, to frame this stu…
I wrote this interesting script that really help me find jobs or procedures when working in a huge environment. I could I have written it as a Procedure but then I would have to have it on each machine or have a link to a server-related search that …
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now