on 10-07-2015 10:47 AM
the program doesn't respond when i use the create table part which is nessarcy. Also the eventviewer doesn't show much of usefull information
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Crystal Reports cannot use the data in a Tempbd Table because that table does not exist until the procedure is running. Crystal needs to be able to "see" the table before the procedure runs.
You will need to make it a permanent table rather than a temp table. You can clear the contents of the table before you load it with new "Good data".
No ...... The Temp Table does not exist until the stored procedure is initiated and it ceases to exist when the procedure finishes so there is nothing for crystal to read. ( thus the name .... it is only temporary ) Crystal can only "Read" the results table (Output of the stored procedure) . You might be able to populate the results Table with the contents of the temp table but I have never had a reason to do that, as it really counter to the reason for creating the temp table in the first place.
Hi Joey,
I had a look at your query and I assume your actual procedure does the Create Procedure or Alter Procedure and End around all of this.
I couldn't run it because of the domains and not being able to get access to Active Directory. I am going to recommend you remove the Drop Tables at the end of the query. Crystal is expecting a resultset as the final statement.
The temp table should automatically be destroyed once the procedure is done anyways.
Give this a try and see what happens.
Good luck,
Brian
temp tables are getting destoyed indeed, but ## tables are not. (which is needed to run this code)
tried few ways. tried to build a basic procedure around it
tried to just put this code in crystal reports
tried without drop tables (in case of the ## it's a must have)
if you wanne try the code, set up an linked server to your ad server, added the workpc to your ou or cn and edit the domain1 and lan parameter
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.