Identifying SAP BusinessObjects queries using END_SQL

NOTE: I wrote this post in 2008 for XI R2 but it has been updated over time for XI 3.x and BI 4.0.

Here’s a useful trick that can help a database administrator identify the source of Business Objects queries.  Use the END_SQL universe parameter to append a comment to SQL statements.  The comment can include @Variable functions from the universe, making the comment’s behavior dynamic.

For classic universes built with the Universe Design Tool (formerly known as Universe Designer or just Designer), you can set universe parameters by clicking File -> Parameters from the menu or click the Parameters button on the toolbar.  Then navigate to the Parameter tab.

If you are using XI R2, Business Objects can dynamically determine the user name and document name using the @Variable function.

/* Hard coded Universe Name - @Variable('BOUSER') - @Variable('DOCNAME')*/

XI 3.0 introduced several new @Variables, so you can get a bit fancier and use an @Variable for the universe name.

/* @Variable('UNVNAME') - @Variable('BOUSER') - @Variable('DOCNAME') */

The Information Design Tool introduced with BI 4.0 also supports universe parameters like END_SQL.  To set, click on the “Properties” tab of the Data Foundation Layer (*.dfx file) and click the “Parameters” button.

For additional information about END_SQL, check out this thread on the BusinessObjects Board (BOB).

About Dallas Marks

As a business intelligence architect, developer, mentor and trainer, I help organizations across the United States harness the power of business intelligence, primarily (but not exclusively) using SAP BusinessObjects products. I prefer piano keyboards instead of computer keyboards when not blogging or tweeting about business intelligence.