cancel
Showing results for 
Search instead for 
Did you mean: 

BEGIN_SQL Statement for MS SQL Server

senfpe
Participant
0 Kudos

Hi,

in Universe Designer query panel generates correct SQL with BEGIN_SQL (SET DATEFORMAT mdy) and END_SQL (ORDER BY ...) parameter values:

SET DATEFORMAT mdy

SELECT ...

FROM ...

ORDER BY ...

Web Intelligence only generates SQL script with END_SQL parameter value. The BEGIN_SQL statement is missing.

Does SQL Server 2008 support BEGIN_SQL?

We tried it with OLE DB and ODBC connection in BO 3.1 environment.

Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

Which version of SAP BOBJ XI3.1 you are using?

What I am aware is BEGIN_SQL was very well working for SQLServer2005 in case of ODBC connection.

Can you try one thing for SQLServer2008 have a Native driver installed on your client machine and use ODBC connection rather than OLEDB connection.

If that works fine, its good

Otherwise you can raise a message for resolving this problem with the support team.

Thanks,

Vivek

senfpe
Participant
0 Kudos

Hi Vivek,

Native driver is installed and we tried the ODBC connection, too. It wasn't successful. Only END_SQL value is shown in WebI-SQL-script.

Our version is Edge 3.1 SP3.

Thanks for your advice that BEGIN_SQL is working fine with SQL Server 2005.

We have also raised a message...

Former Member
0 Kudos

Probably this may require some kind of code change if it is not working.

There is another workaround you can try if you don't have too many reports.

When you create say webi report from "ViewSQL" button edit the query provide this BEGIN_SQL directly to the query and select the option "Do not generate SQL before running" check if this helps you out.

Thanks,

Vivek

senfpe
Participant
0 Kudos

Hi Vivek,

I know this workaround but it is not a nice solution. Maybe for existing reports. New reports have to create uncomfortably.

In Universe Designer the query panel generates the SQL correctly with BEGIN & END_SQL. But WebI doesn't generate the BEGIN_SQL statement. Strange!

Thanks,

Peter

senfpe
Participant
0 Kudos

Problem is solved without BEGIN_SQL!

You have to change in file sqlsrv.prm in BusinessObjects\...\DataAccess\odbc folder the dateformat interpreted by BO from mm/dd/yyyy to dd/MM/yyyy!

After this change you have to restart the WebIProcessingServer in CMC!

Then WebI shows in generated SQL script the dateformat dd/MM/yyyy

Edited by: Peter Senf on Sep 28, 2011 3:33 PM

Answers (0)