Create Table by Copying Structure of Existing Table

Posted by tyguy840 on Stack Overflow See other posts from Stack Overflow or by tyguy840
Published on 2010-05-19T18:04:15Z Indexed on 2010/05/19 18:10 UTC
Read the original article Hit count: 392

I am trying to create a new table by copying an existing table in SQL Server 2008 using Management Studio. The existing table contains no data. I am using the following code but am receiving an error for Incorrect Syntax near AS. I am not sure what is wrong here. I am a SQL newb and any help would be appreciated. Thanks.

CREATE TABLE Drop_Centers_Detail
    AS (Select * From Centers_Detail)

© Stack Overflow or respective owner

Related posts about sql

Related posts about sql-server