I was working on 2005 SSRS to generate a reprot which required a use of Temporary Tables in the dataset. But unfortunately SSRS 2005 doesn't support it. 2008 supports both Table Datatype and Temp Tables.
To resolve the issue we can use Table DataType. Below is the example:
DECLARE @TempTable TABLE (
ID INT,
DOJ DATETIME,
NameVarchar(100)
)
INSERT INTO @TempTable VALUES(1, GETDATE(), 'Ranjit');
INSERT INTO @TempTable VALUES(2, GETDATE(), 'Ranjitsingh');
SELECT * FROM @TempTable
This way you can resolve the Temp table issues by using Table Datatype.
Wednesday, 4 November 2009
Use Temp Table in SQL SERVER 2005 Reporting Services
Posted on 04:37 by Unknown
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment