Click here to Skip to main content
15,898,035 members
Articles / Database Development / SQL Server

Updating a temp table in a Stored Proc

Rate me:
Please Sign up or sign in to vote.
4.00/5 (1 vote)
1 Nov 2011CPOL 6.4K  
You might also want to try using a table variable - like this:DECLARE @tableName TABLE ( Key1 INT, Key2 INT, Description NVARCHAR(255), AggAmount FLOAT,)Then you can refer to your table by @tableName. Granted this is SQL Server 2005 and above, but then...

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions