Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
Every time when I need a complex report to develop, I normally used a temporary table store data in that and build the report.

Now I am having more than 1 user, so If i create a temp table then more than one user will store the data, so, then data may mismatch.

Do you have any other Idea to develop report except using temp tables.
Posted

Do you have any other Idea to develop report except using temp tables.
With the amount of information shared and the question asked, it would be difficult for anyone to tell you the 100% accurate alternative.
To start with, have a look at table valued function and see if that helps you.
 
Share this answer
 
Quote:
Now I am having more than 1 user, so If i create a temp table then more than one user will store the data, so, then data may mismatch.
- Only if you use global temporary tables (prefix ##). If you use local temporary tables (prefixed with #) then they are "private" to each user so the data will not "mismatch".

There is a very good article on temporary tables and table variables here https://www.simple-talk.com/sql/t-sql-programming/temporary-tables-in-sql-server/[^]
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900