select name, charindex('text to search',object_definition(object_id)), object_definition(object_id)
from sys.procedures where charindex('text to search',object_definition(object_id)) > 0
Showing posts with label sql server schema documenation. Show all posts
Showing posts with label sql server schema documenation. Show all posts
Wednesday, 21 October 2009
Searching stored procedure code
Many times I need to search stored procedure for certain text. I find following code helpful:
Friday, 8 May 2009
Documenting SQL Server database schema
I was looking for a free and easy way to document Sql Server schema. I found t-sql script provided in following article very useful:
Article: http://www.codeproject.com/KB/database/SQL_DB_DOCUMENTATION.aspx
Article: http://www.codeproject.com/KB/database/SQL_DB_DOCUMENTATION.aspx
Subscribe to:
Posts (Atom)