Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Keeping DB Schema name out of Report query?

Status
Not open for further replies.

plarson3

Vendor
Sep 3, 2004
26
US
Using Crystal Reports 10 and Oracle:

The SQL queries generated by Crystal attach the DB schema name to the front of the table name (DBschema.TableName). Is there a way to prevent Crystal from doing that? Causes problems when delivering reports to be run under a different DB installation.

Oracle doesn't need the schema name to find the correct tables; it finds the schema based on the user ID.
 
Not necessarily. In my development world, yes. Once delivered to the customer/users, probably not; probably only one production schema.

Can't deliver reports/queries with some schemas attached that came out of a development database.

Hope that helps.
 
Hi,
The reason I asked was that without fully-qualifying the table name with its schema ( or using aptly named synonyms), how would reports handle tables of the same name in different schemas when the user running the report has access to both? ( Not a good design, but it happens)


[profile]
 
Thanks again. I am going to have to assume for now that my customer will not give the user access to multiple schemas. In the first delivery actually, the reports will be run automatically by our system, as opposed to be run on demand by the users.

So the question remains, can the schemas be eliminated from the queries in Crystal?
 
I have learned that if you write your own SQL query using the Command function under Database Expert, you have complete control over the query, and therefore can leave out or remove the table schema.

To me, that is a workaround, and will require me to redo a number of reports.

I am still curious if there is a way to keep the DB schema out of the query generated when using the standard Crystal table/field selection process.

Any thoughts greatly appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top