Solved

len limitation in routines

Posted on 2010-09-14
2
369 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
[X]
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
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to handle time out inside the stored procedure 10 27
Need help with a query 14 39
ODBC settings not showng in FileMaker External Data Sources 6 23
SQL Syntax 6 31
Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
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…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

733 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