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
 SQL Server Administration (2005)
 OBJECT_DEFINITION

Author  Topic 

ravilobo
Master Smack Fu Yak Hacker

1184 Posts

Posted - 2007-10-17 : 10:37:59
Why OBJECT_DEFINITION doesn't work for a table? It works for many of the objects. Just curiuos..

------------------------
I think, therefore I am - Rene Descartes

nr
SQLTeam MVY

12543 Posts

Posted - 2007-10-17 : 11:08:28
Note they are all objects that contain text.

OBJECT_DEFINITION applies to the following object types:

C = Check constraint

D = Default (constraint or stand-alone)

P = SQL stored procedure

FN = SQL scalar function

R = Rule

RF = Replication filter procedure

TR = SQL trigger (schema-scoped DML trigger, or DDL trigger at either the database or server scope)

IF = SQL inline table-valued function

TF = SQL table-valued function

V = View



==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

ravilobo
Master Smack Fu Yak Hacker

1184 Posts

Posted - 2007-10-17 : 11:29:17
What I understand from your post is if you can do a sp_helptext on an object you can do OBJECT_DEFINITION too..

------------------------
I think, therefore I am - Rene Descartes
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2007-10-17 : 12:19:12
What does OBJECT_DEFINITION do?

I really need to start playing 2k5 more



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page

ravilobo
Master Smack Fu Yak Hacker

1184 Posts

Posted - 2007-10-17 : 15:31:04
quote:
Originally posted by X002548

What does OBJECT_DEFINITION do?



It’s an alternate way for sp_helptext...

------------------------
I think, therefore I am - Rene Descartes
Go to Top of Page
   

- Advertisement -