exec sp_MSforeachtable @command1="sp_help '?'"
http://blog.csdn.net/sxycgxj/archive/2007/01/27/1495568.aspx