Alternatively, you can script an existing table and change the name to the temp table name and add the create script table to the beginning of the rest of the script you want to run. I usually do this if it is really important that the temporary table exactly matches the structure of the real table (for example, when I create a fake table called #incerted to use when testing code that I intend to inject into the trigger.)
Most of the time, although the choice will introduce you to what you need.
Hlgem
source share