Solved

len limitation in routines

Posted on 2010-09-14
2
341 Views
Last Modified: 2012-05-10
I do not get any records for the below, even though I know I have more...

select * from information_schema.routines
where (len(routine_definition)) > 4000

this is SQL 2005. what would you correct in the above query?

thanks
0
Comment
Question by:anushahanna
2 Comments
 
LVL 41

Accepted Solution

by:
ralmada earned 500 total points
ID: 33673575

If your stored procedure has more than 4000 characters, then the part after the 4000 characters will not appear in INFORMATION_SCHEMA.ROUTINES.

In SS 2005, you can use sys.sql_modules table without worrying about this problem, because the definition column is nvarchar(max).
0
 
LVL 6

Author Comment

by:anushahanna
ID: 33673617
very helpful- thanks ralmada.
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Calculated columns 13 61
Solution for warm standby SQL server 20 38
SQL Server encoding for storing Indian languages 9 31
VB6 ListBox Question 4 32
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 …
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

911 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

26 Experts available now in Live!

Get 1:1 Help Now