Is there a way to duplicate a table in SQL-Server? Not just the data like SELECT INTO does but also indexes and maybe keys as well? If I go script table as -> c
SELECT INTO
Just generate a CREATE script in SQL Server Management Studio. This will also include the indexes.
CREATE
See this dba.se question