Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Having a problem with a T-SQL command
Message
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Miscellaneous
Thread ID:
00480290
Message ID:
00480496
Views:
8
>However, when I attempt to discover the primary key field which is a uniqueidentifer type, and insert a new record into it, I keep getting this error from SQL Server telling me that the temporary table does not exist.

There are two types of temporary tables. Local temporary tables are scoped to the connection that created them. When the connection is closed, the temporary table will be dropped. Global temporary tables are available to all connections but will be droppped when the connection that created it is closed.

Also, temporary tables created within stored procedures will automatically be dropped with the stored procedures completes execution.

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Reply
Map
View

Click here to load this message in the networking platform