Is there anything equivalent to Oracle'sSelect * from tab in MS SQL.I have got the answer
|||That will work, but try one of these 2 alternate methods to assure forward-compaitbility with future SQL Server versions:
select name from sysobjects where type = 'U'
EXEC sp_tableSELECT * FROM INFORMATION_SCHEMA.TABLES
Note that each of the 3 options yields slightly different results as they filter the information differently. Generally sys* tables should not be queried directly as they are subject to chage.
Terri
No comments:
Post a Comment