Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 My Select got truncated !!!

Author  Topic 

nice123ej
Starting Member

48 Posts

Posted - 2009-01-16 : 09:21:08
Hi
I am trying to execute this sql

SELECT OBJECT_DEFINITION (object_id)
from sys.objects
where type in ('P','FN','TR')

the problem is the result will be long text
but when i run it in Management Studio 2005

so the result i get is truncated!

how can i get the full text?

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-01-16 : 09:24:15
change the number of characters displayed in management studio by going to tools->options->queryresults. Also if its really long use results to grid and copy and paste to new window.

you can also use the below if sql 2005

SELECT * FROM sys.sql_modules
Go to Top of Page
   

- Advertisement -