Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.
November 28, 1999
A. There are two ways (with SQL 7) :-
IF EXISTS(SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = '' AND COLUMN_NAME = '')
or
if columnproperty (object_id(''), '', 'AllowsNull') IS NOT NULL
You May Also Like