在MSSQL中显示某个数据库中所有表或视图的信息: (以下语句为获取所有表信息,将绿色字"U"替换为"V"则获取所有视图信息.) SELECT sysobjects.name AS TABLE_NAME, syscolumns.Id, syscolumns.name AS COLUMN_NAME, systypes.name AS DATA_TYPE, syscolumns.length as COLUMN_MAX_LENGTH, sys.extended_prop…
It was only a matter of time, right? Due to my recent infatuation passionate love affair with PowerShell (whose download has been up and down on MSDN today...not sure why) I realized that I was missing something - the same behavior that I'd gotten ho…