len
2005-11-03 17:30:50 UTC
Does anybody know what the sysobjects.sysstat field is used for and when/if
it should be used in programming? It's just that I've found it referenced in
some old generated SQL scripts and used in logic (if object doesn not exist
then create....) and was thinking I should replace it. The actual systax I
have is when the script goes about creating a table -only if said table does
not already exist- is as follows:
if not exists (select * from sysobjects where id = object_id('MyTableName')
and sysstat & 0xf = 3)
it should be used in programming? It's just that I've found it referenced in
some old generated SQL scripts and used in logic (if object doesn not exist
then create....) and was thinking I should replace it. The actual systax I
have is when the script goes about creating a table -only if said table does
not already exist- is as follows:
if not exists (select * from sysobjects where id = object_id('MyTableName')
and sysstat & 0xf = 3)