vote up 0 vote down star

I was looking for a way to generate object definition (in my case stored procedure defintion) in SQL 2000 like I can get in SQL 2005 : select definition from sys.all_sql_modules.

flag

1 Answer

vote up 1 vote down check

One place the text is available in SQL2000 is sys.syscmoments.

The text in each row is limited to 4000 characters, so there will be more than one row for larger objects. In this case the colid column identifies the order of the rows (1 being the first chunk, 2 the second, and so on). For instance sp_WhoIsActive in the master database is long enough to have many rows in syscomments.

link|flag
Thanks, syscomments is exactly what i was looking for. – Paul Dec 2 at 10:48

Your Answer

Get an OpenID
or
never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.