DECLARE not working in SQL Console
Hi All: I have many years of db development experience but am new to SAP HANA. It is puzzling that I cannot simply write a simple "DECLARE RowCount INT = 0;" in the SQL Console and execute it without...
View ArticleRe: How to calculate PreviousCalWeek (YYYYWW format) using expression editor...
hi KPK, the following will return the previous weeknumber... TO_CHAR(CURRENT_TIMESTAMP,'WW')-1 FROM DUMMY; will return 7, cheers,jamie
View ArticleRe: DECLARE not working in SQL Console
hi Ben, regarding using DECLARE directly in a HANA SQL console, i believe that DECLARE is available as part of sql script and cannot be used outside of a procedure....according to here anyway. as for...
View ArticleRe: DECLARE not working in SQL Console
Simply put, DUMMY is useful for checking SQL syntax.
View ArticleRe: DECLARE not working in SQL Console
Thank you Jamie for your reply. The RowCount is simply a variable that I use to get the count of rows in a table. DECLARE not being supported in SQL Console limits developers on testing their SQL code...
View ArticleRe: Server processing time for SQLScript stored procedure
hi Daniel, you may wish to look at using the Expensive Statements trace in hana studio > double click on your system > Trace Configuration tab. you can set the threshold to a low amount and set...
View ArticleRe: Hana SPS07 and spatial data
hi Jon-Paul, thanks for this great post! below is some syntax for a haversine db function for hana for testing. it's not 100% due to the inaccuracies of the calc, but it does get close with 966 and...
View Articlehdbsql SEGV
Hi I am running a SQL to call a procedure:CALL "OPS_SCHEMA"."P1"(1001,?,?,?) When I run it from HANA Studio it works fine and produces 1 correct row. When I run it from linux command line using hdbsql...
View ArticleRe: Compare Timestamps of rows of the same table
Lars Breddemann - In my opinion it's still fair to follow the "old adage" of not mixing CE functions and SQL syntax in SQLScript. Sure, they both execute in column store, but as I understand, the code...
View ArticleRe: Capturing returned data from Stored Procedures
Also check section 5.1.5 of the latest SQL Script guide found here; http://help.sap.com/hana/SAP_HANA_SQL_Script_Reference_en.pdf
View ArticleRe: Relationship between SPS number and release and version
To be clear revision 69 is still SP6, SP7 was shipped as revision 70. Generally, there is no correlation between revision number and SP numbers. Revisions come when they are required and not...
View ArticleRe: Relationship between SPS number and release and version
Rich, How did you know that revision 69 is still SP6? I recently got access to two HANA servers. One is a development server that was recently upgraded to revision 1.00.69.385057. The other is a...
View ArticleRe: Relationship between SPS number and release and version
Checking the SPS 07 release notes is a good way to know what is the first revision which is included in SPS 07. SAP HANA Platform – SAP Help Portal Page -> What’s New – Release NotesThis points to...
View ArticleRe: Capturing returned data from Stored Procedures
Thank you for your response. I do know about (IN/OUT/INOUT) parameters. But stored procedures return data (beside from their parameters). They can actually return multiple result sets which clients...
View ArticleRe: Relationship between SPS number and release and version
The clue provided by Henrique led me to the "SAP HANA Central Note" which is updated with (almost) every release. http://service.sap.com/sap/support/notes/1921675 (Service Marketplace login required)...
View ArticleRe: Relationship between SPS number and release and version
There you go. ;-) Thanks for sharing, that's the spirit.
View ArticleRe: Capturing returned data from Stored Procedures
hi Ben, there's a WITH RESULT VIEW option as outlined here. it's supposed to allow one to read the result set of a procedure in a select statement and i'm assuming inside another proc as well. let me...
View ArticleRe: 911: Does the SAP HANA ODBC driver support passing a table type to a...
Hi Lars & John, Thanks for tracking this down. It's too bad that the ODBC driver doesn't support the Table type as it makes application code much simpler. I was able to work around the problem...
View ArticleRe: Need help with hands on in HANA
hi Sachin, please do try the videos as Benedict suggested... academy.saphana.com we don't use sflight database in any of our videos but a dataset called sts. i've uploaded it here in a hana binary...
View ArticleRe: CE Function : CE_CALC_VIEW - running with placeholders
Hi Sreehari, For the placeholder syntax, can you please try the following: FROM "_SYS_BIC"."myPackage/MY_CALC_VIEW"( PLACEHOLDER."$$INPUT_PARAM_1$$" => :v_value_1,...
View Article