T-SQL 大牛Brian Walker总结分享了他的最有用的SQL Server存储过程,本文列出其中最常被访问的5个,更多的存储过程请访问 complete stored procedure collection
#1 - Find columns and tables
这个简单的存储过程用户处理寻找数据库中存在特定列名的表
#2 - List database objects by selected type(s)
用于返回当前数据库中选定类型的对象列表
#3 - A simple way to perform crosstab operations
SQL Server crosstab operations usually involve complicated T-SQL coding. Simplify the process with this routine.
#4 - Search character columns for a given string
This routine allows you to search for occurrences of a string in the character columns (char, nchar, varchar, nvarchar) of a table set.
#5 - Execute T-SQL code from a file
Existing routines to execute T-SQL code from a file without using osql and xp_cmdshell have many limitations. This routine addresses the shortcomings