I have a database "temp" with table "A". I created a new database "temp2". I want to copy table "A" from "temp" to a new table in "temp2". I tried this statement, but it says that I have the wrong syntax, here is the statement:
CREATE TABLE B IN 'temp2'
AS (SELECT * FROM A IN 'temp');
Here is the error:
Msg 156, Level 15, State 1, Line 2 Incorrect syntax next to the keyword "IN". Msg 156, Level 15, State 1, Line 3 Invalid syntax next to the keyword "IN".
Does anyone know what the problem is?
Thanks in advance,
Greg
source
share