SELECT SysObjects.[Name] as TableName, SysColumns.[Name] as ColumnName, SysTypes.[Name] As DataType, SysColumns.[Length] As Length FROM SysObjects INNER JOIN SysColumns ON SysObjects.[Id] = SysColumns.[Id] INNER JOIN SysTypes ON SysTypes.[xtype] = SysColumns.[xtype] WHERE SysObjects.[type] = 'U' and SysColumns.name like '%ap%' ORDER BY SysObjects.[Name] |
Thursday, 11 February 2010
MS SQL : List all tables and columns
Posted by Ook at 02:32
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment