|
Cry How to...Create a table unless it already existsTo create a table in SQL Server, unless it has already been created:
where <table_name> is the name of the table. The 'xtype' field holds the type of object, 'U' denoting a user defined table. For example:
These notes have been tested against SQL Server 7 and SQL Server 2000. |