Click here to Skip to main content
15,897,704 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear All,

My query is that I have made a crystal report with the help of multiple tables.

I'm collection data from Difference table & pass a query to generate a table TEMP & use this table for making report.

This TEMP TABLE is delete after done the work.

Now problem is occurs I'm makeing project for multiple user & same time same report will generate by two user on difference table it create error because if first one using temp second is unable to generate the same.

How I can use this single table on all the system see difference report at same time.

Regards,


Jatinder Gupta.
Posted

Hello,

Instead of temptable use table variable. try it out.

Thanks
Sanjeev
 
Share this answer
 
Hello,
You can make a regular table of type your temp table format, and when ever a user requests for a report do the sql processing put the report display info in to this table(ur temp table) and add an user context value, sort of (primary key) for the request and then you can display it.

so if meanwhile another user requests same report you can just do same sql processing and add to same table with different key..
basically you sequentially add any parallel process to this temp table...

Once report is viewed or printed you can clean the temp table row for that key.

Other options of locking and waiting would just hinder your user experience.
Thanks,
 
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