Solved

len limitation in routines

Posted on 2010-09-14
2
326 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Introduced in Microsoft SQL Server 2005, the Copy Database Wizard (http://msdn.microsoft.com/en-us/library/ms188664.aspx) is useful in copying databases and associated objects between SQL instances; therefore, it is a good migration and upgrade tool…
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

759 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