|
Cry How to...Create an index on a table unless it already existsTo create an index on a table in SQL Server, unless the index has already been created:
where <table_name> is the name of the table, <index_name> is the name of the index and <column_names> are the field names used when creating the index. For example:
These notes have been tested against SQL Server 7. |