Hi,
I have created one live report. In this report, I created one temporary table variable and inserting the data into this temp table and then fetching data from it as shown below.
Statement 1 -------- DECLARE @Customer TABLE (Value1 int not null, Value2 int Not Nulll)
Statement 2 -------- INSERT INTO @Customer (Value1, Value2) select DataID,CONVERT(int,Name) as 'Name' from Customers where Value1 > 10
Statement 3 -------- Select * from @Customer
This query is getting executed in SQL server management studio But givinf error for Live report. When I am trying to select the data using last statement, it is not showing any result rows.
I dont want to select the data directly from main tables. Also I dont want to use Sub-Query statements.
Is there any other way to do this?
Thanks and Regards,
Raghav Tatte