Hi
I'm doing a bulk insert but before inserting into the actual table I need to do some checks. So currently I'm inserting into a temp table but I've just seen that it's possible to declare tables. So my question is - Which is quicker? To CREATE or DECLARE. The table will have multiple SELECTS done on it and will contains around 200,000 records.
DECLARE @tbl1 TABLE
(
col1 VARCHAR(10)
)
or
CREATE TABLE tbl1
(
col1 VARCHAR(10)
)
Lastly, Is it possible to ALTER a declared table?
Thank you in adv.