Incorrect syntax near the keyword 'as'.

  • I know its simple but I am not able to understand this error I got this error when I tried creating an exesting table which has huge data.

    To make is easy i tried using sample table

    I created a sample table

    create table temp1 (

    ser_no integer );

    when I tried creating another table using below statement

    create table temp2 as (select * from temp1 );

    I am getting below error

    "Msg 156, Level 15, State 1, Line 1

    Incorrect syntax near the keyword 'as'"

    Do you think any grant issues.

  • No, it's incorrect sysntax issue.

    Correct statement would look like this:

    select *

    into temp2

    from temp1

    _____________
    Code for TallyGenerator

  • Please don't cross post. I am closing this thread.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply