• I believe you are going to need to declare the table variable & fields before you can reference it. Not like a temp table that you can delcare and populate on the fly.

    declare @table table

    (

    1st field integer,

    2nd field varchar(20),

    etc

    )