I have table A
which holds the columns (test1
, test2
, test3
) and then table B
which holds the columns (test4
, test5
, test6
).
Table B
, column test6
was added in after the table was created by using
ALTER TABLE dbo.B
ADD test6 VARCHAR(100)
I want to do:
INSERT dbo.A (test1, test2, test3)
SELECT test4, test5, test6
FROM dbo.B
It keeps coming back saying that test6
is an "Invalid Column Name"
. Could it be something to do with adding the table in using the ALTER TABLE
statement?
Table A
, the one I'm inserting into is PK
constrained, I'm not sure if that's relevant, though.