BOE-XI (R2)
CR-XI (R2)
MS-SQL 2000 database
Java SDK
____________________
Working with an old database that doesn't have a single Unique_ID for users.
REGION STORE USER
=======================================
EAST 001 SMITHJ
EAST 025 SMITHJ
WEST 001 SMITHJ
=======================================
In the example above, the three "SMITHJ" records are different people, in different stores or regions.
There isn't a single Unique_ID in the database, so we were considering creating a new table/trigger to give us a real PRIMARY KEY on the USER table above.
UNIQUE_ID
====================
EAST_001_SMITHJ
EAST_025_SMITHJ
WEST_001_SMITHJ
====================
We would then link that UNIQUE_ID to the rest of the tables in the report based on the three parts that make it up. That would allow us to use the UNIQUE_ID value as a parameter within the reports - and ensure that someone looking for a report on "SMITHJ" only got the "SMITHJ" in the store or region they are responsible for when the parameter-values are passed from the Java SDK application.
This seems to work OK from a logical POV, but some of the senior managers want to be able to run the reports for ALL the employees that are below them.
This is usually under 1,000 Unique_ID parameter values, but in a worst-case it can be over 11,000.
The parameter appears to die if we try to pass it around 6,000 Unique_ID parameter values - it is fine below that number.
Anyone solved an issue like this before and have any smart ideas...?
If you have a better idea for handling the Unique-User problem that would be welcome also.
Thanks in advance!
CR-XI (R2)
MS-SQL 2000 database
Java SDK
____________________
Working with an old database that doesn't have a single Unique_ID for users.
REGION STORE USER
=======================================
EAST 001 SMITHJ
EAST 025 SMITHJ
WEST 001 SMITHJ
=======================================
In the example above, the three "SMITHJ" records are different people, in different stores or regions.
There isn't a single Unique_ID in the database, so we were considering creating a new table/trigger to give us a real PRIMARY KEY on the USER table above.
UNIQUE_ID
====================
EAST_001_SMITHJ
EAST_025_SMITHJ
WEST_001_SMITHJ
====================
We would then link that UNIQUE_ID to the rest of the tables in the report based on the three parts that make it up. That would allow us to use the UNIQUE_ID value as a parameter within the reports - and ensure that someone looking for a report on "SMITHJ" only got the "SMITHJ" in the store or region they are responsible for when the parameter-values are passed from the Java SDK application.
This seems to work OK from a logical POV, but some of the senior managers want to be able to run the reports for ALL the employees that are below them.
This is usually under 1,000 Unique_ID parameter values, but in a worst-case it can be over 11,000.
The parameter appears to die if we try to pass it around 6,000 Unique_ID parameter values - it is fine below that number.
Anyone solved an issue like this before and have any smart ideas...?
If you have a better idea for handling the Unique-User problem that would be welcome also.
Thanks in advance!