======================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
using sysobjects and syscolumns will work fine, but if MS changes the format of the tables in the next version of SQL Server you may have a chore in porting your code.
INFORMATION_SCHEMA.Tables and INFORMATION_SCHEMA.Columns are views of the same data, but the format of the tables is supposed to remain the same regardless of what MS does to the system tables.
Therefore, it is generally advisable to use the INFORMATION_SCHEMA views instead of the system tables.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.