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.
| 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 constraintD = Default (constraint or stand-alone)P = SQL stored procedureFN = SQL scalar functionR = Rule RF = Replication filter procedureTR = SQL trigger (schema-scoped DML trigger, or DDL trigger at either the database or server scope)IF = SQL inline table-valued functionTF = SQL table-valued functionV = 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. |
 |
|
|
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 |
 |
|
|
X002548
Not Just a Number
15586 Posts |
|
|
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 |
 |
|
|
|
|
|