SlideShare ist ein Scribd-Unternehmen logo
1 von 20
What´s New? SAP HANA SPS 07
SQLScript
(Delta from SPS 06 to SPS 07)
SAP HANA Product Management

November, 2013
Agenda
SQLScript Editor
SQLScript Debugger
SQLScript Language

User Defined Functions

© 2013 SAP AG. All rights reserved.

Public

2
SQLScript Editor
SQLScript Editor
Procedure wizard
New artifact hierarchy
Renamed to “Stored Procedure”

© 2013 SAP AG. All rights reserved.

Public

4
SQLScript Editor
Two file formats
.hdbprocedure is the new artifact type which will
be the recommended file format moving forward.
.procedure is still supported, but has been
deprecated and eventually will be removed.
Procedure templates are still supported but
currently only via .procedure format.

© 2013 SAP AG. All rights reserved.

Public

5
SQLScript Editor
Source Code Editor for .hdbprocedure
CREATE keyword is now removed
Explicit schema definition
Package/procedure name separator is
now double colon(::)
No local table types definition. Use
CDS(.hdbdd) to define global table types

© 2013 SAP AG. All rights reserved.

Public

6
SQLScript Editor
SQLScript Viewer
Procedures in the catalog can now be viewed in the SQLScript editor in read-only mode.
Allows for setting/removing of breakpoints within the runtime object.

© 2013 SAP AG. All rights reserved.

Public

7
SQLScript Debugger
SQLScript Debugger
Debug catalog procedures
Debug configuration now allows
for debugging of both design
time(repository) and runtime(catalog) procedures
Open the run-time procedure
from the catalog and set
breakpoints
Within the debug configuration,
choose

© 2013 SAP AG. All rights reserved.

Public

9
SQLScript Debugger
New Debugging Authorization Concept
Prior to SPS 07, users were allowed to debug everything by simply having authorization to
SYS.DEBUG, this authorization is no longer required in SPS 07
Restricts the ability to debug procedures which are owned by other users. You can grant debug
access for a procedure or for an entire schema to a specific user.


With the following authorizations, users can set breakpoints, show procedure source in debugger UI, and inspect
intermediate results.
Grant debug on <proc> to <user>
Grant debug on schema <schema> to <user>
 Without these authorizations, the procedures are handled like a black box.

Restricts the ability to attach debugger to running session. You can grant debug access for
attaching to running session to a specific user.


With the following authorizations, users can freeze execution of another user, and see data from another user.
Grant attach debugger to <user>

© 2013 SAP AG. All rights reserved.

Public

10
SQLScript Debugger
New Debugging Authorization Concept
Procedures created directly in the catalog are owned by the user which created them, so no additional
authorization is required to debug them.
Procedures created/activated via the repository(Development Perspective) are owned by
_SYS_REPO, therefore the user must grant debug authorization to himself. Users can not execute the
“grant” statements directly. The following procedures could be used if the user has authorization to these
procedures.



Call _SYS_REPO.GRANT_PRIVILEGE_ON_ACTIVATED_CONTENT('debug','<objectname>','<username>');
Call _SYS_REPO.GRANT_SCHEMA_PRIVILEGE_ON_ACTIVATED_CONTENT('debug','<schemaname>','<username>');

Usually, users will not have authorization to these procedures, so it is recommended to add these
authorizations via a role(.hdbrole) as shown below.
role I816013.testing.roles::debug {
schema I816013.testing.data:I816013_TEST.hdbschema: DEBUG, EXECUTE;
// grant debug to schema
sql object I816013.testing.procedures:get_product_sale_price.hdbprocedure: DEBUG, EXECUTE; // grant debug to procedure
}

© 2013 SAP AG. All rights reserved.

Public

11
SQLScript Language
SQLScript Language
Various Optimizations

© 2013 SAP AG. All rights reserved.

Public

13
User Defined Functions
User Defined Functions
Scalar Functions
New repository artifact(.hdbscalarfunction) and wizard
Simple text editor, syntax highlighting and code hints coming in a
future support package.

© 2013 SAP AG. All rights reserved.

Public

15
User Defined Functions
Table Functions
New repository artifact(.hdbtablefunction) and wizard
Simple text editor, syntax highlighting and code hints coming in a
future support package.

© 2013 SAP AG. All rights reserved.

Public

16
Disclaimer
This presentation outlines our general product direction and should not be relied on in making
a purchase decision. This presentation is not subject to your license agreement or any other
agreement with SAP.
SAP has no obligation to pursue any course of business outlined in this presentation or to
develop or release any functionality mentioned in this presentation. This presentation and
SAP’s strategy and possible future developments are subject to change and may be changed
by SAP at any time for any reason without notice.
This document is provided without a warranty of any kind, either express or implied, including
but not limited to, the implied warranties of merchantability, fitness for a particular purpose, or
non-infringement. SAP assumes no responsibility for errors or omissions in this
document, except if such damages were caused by SAP intentionally or grossly negligent.

© 2013 SAP AG. All rights reserved.

Public

17
Thank you
Contact information
Rich Heilman
SAP HANA Product Management
AskSAPHANA@sap.com
To get the best overview of what’s new in SAP HANA SPS 07, read this blog.
© 2013 SAP AG. All rights reserved.
No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG.
The information contained herein may be changed without prior notice.
Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors.
National product specifications may vary.
These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and
SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in
the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.
SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and other
countries.
Please see http://www.sap.com/corporate-en/legal/copyright/index.epx#trademark for additional trademark information and notices.

© 2013 SAP AG. All rights reserved.

Public

19
© 2013 SAP AG. Alle Rechte vorbehalten.
Weitergabe und Vervielfältigung dieser Publikation oder von Teilen daraus sind, zu welchem Zweck und in welcher Form auch immer, ohne die ausdrückliche schriftliche
Genehmigung durch SAP AG nicht gestattet. In dieser Publikation enthaltene Informationen können ohne vorherige Ankündigung geändert werden.
Einige der von der SAP AG und ihren Distributoren vermarkteten Softwareprodukte enthalten proprietäre Softwarekomponenten anderer Softwareanbieter.
Produkte können länderspezifische Unterschiede aufweisen.
Die vorliegenden Unterlagen werden von der SAP AG und ihren Konzernunternehmen („SAP-Konzern“) bereitgestellt und dienen ausschließlich zu Informationszwecken.
Der SAP-Konzern übernimmt keinerlei Haftung oder Gewährleistung für Fehler oder Unvollständigkeiten in dieser Publikation. Der SAP-Konzern steht lediglich für Produkte
und Dienstleistungen nach der Maßgabe ein, die in der Vereinbarung über die jeweiligen Produkte und Dienstleistungen ausdrücklich geregelt ist. Keine der hierin
enthaltenen Informationen ist als zusätzliche Garantie zu interpretieren.
SAP und andere in diesem Dokument erwähnte Produkte und Dienstleistungen von SAP sowie die dazugehörigen Logos sind Marken oder eingetragene Marken der SAP
AG in Deutschland und verschiedenen anderen Ländern weltweit. Weitere Hinweise und Informationen zum Markenrecht finden Sie unter http://www.sap.com/corporateen/legal/copyright/index.epx#trademark.

© 2013 SAP AG. All rights reserved.

Public

20

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Whats New on SAP HANA SPS 11 Core Database Capabilities
Whats New on SAP HANA SPS 11 Core Database CapabilitiesWhats New on SAP HANA SPS 11 Core Database Capabilities
Whats New on SAP HANA SPS 11 Core Database Capabilities
 
SAP HANA SPS10- SAP DB Control Center
SAP HANA SPS10- SAP DB Control CenterSAP HANA SPS10- SAP DB Control Center
SAP HANA SPS10- SAP DB Control Center
 
SAP HANA SPS10- SAP HANA Modeling
SAP HANA SPS10- SAP HANA ModelingSAP HANA SPS10- SAP HANA Modeling
SAP HANA SPS10- SAP HANA Modeling
 
SAP HANA SPS09 - HANA Modeling
SAP HANA SPS09 - HANA ModelingSAP HANA SPS09 - HANA Modeling
SAP HANA SPS09 - HANA Modeling
 
What's new for Text in SAP HANA SPS 11
What's new for Text in SAP HANA SPS 11What's new for Text in SAP HANA SPS 11
What's new for Text in SAP HANA SPS 11
 
TZH300_EN_COL96
TZH300_EN_COL96TZH300_EN_COL96
TZH300_EN_COL96
 
What's New in SAP HANA SPS 11 Operations
What's New in SAP HANA SPS 11 OperationsWhat's New in SAP HANA SPS 11 Operations
What's New in SAP HANA SPS 11 Operations
 
SAP HANA SPS09 - XS Programming Model
SAP HANA SPS09 - XS Programming ModelSAP HANA SPS09 - XS Programming Model
SAP HANA SPS09 - XS Programming Model
 
SAP HANA SPS10- SAP HANA Remote Data Sync
SAP HANA SPS10- SAP HANA Remote Data SyncSAP HANA SPS10- SAP HANA Remote Data Sync
SAP HANA SPS10- SAP HANA Remote Data Sync
 
What's New in SAP HANA SPS 11 DB Control Center (Operations)
What's New in SAP HANA SPS 11 DB Control Center (Operations)What's New in SAP HANA SPS 11 DB Control Center (Operations)
What's New in SAP HANA SPS 11 DB Control Center (Operations)
 
SAP HANA SPS1- SAP HANA Hardware Platforms
SAP HANA SPS1- SAP HANA Hardware PlatformsSAP HANA SPS1- SAP HANA Hardware Platforms
SAP HANA SPS1- SAP HANA Hardware Platforms
 
What's New in SAP HANA SPS 11 Application Lifecycle Management
What's New in SAP HANA SPS 11 Application Lifecycle ManagementWhat's New in SAP HANA SPS 11 Application Lifecycle Management
What's New in SAP HANA SPS 11 Application Lifecycle Management
 
What's New in SAP HANA SPS 11 Predictive
What's New in SAP HANA SPS 11 PredictiveWhat's New in SAP HANA SPS 11 Predictive
What's New in SAP HANA SPS 11 Predictive
 
SAP HANA SPS10- SAP HANA Dynamic Tiering
SAP HANA SPS10- SAP HANA Dynamic TieringSAP HANA SPS10- SAP HANA Dynamic Tiering
SAP HANA SPS10- SAP HANA Dynamic Tiering
 
What's new for Spatial in SAP HANA SPS 11
What's new for Spatial in SAP HANA SPS 11What's new for Spatial in SAP HANA SPS 11
What's new for Spatial in SAP HANA SPS 11
 
DMM161 HANA_MODELING_2015
DMM161 HANA_MODELING_2015DMM161 HANA_MODELING_2015
DMM161 HANA_MODELING_2015
 
SAP HANA SPS09 - Security
SAP HANA SPS09 - SecuritySAP HANA SPS09 - Security
SAP HANA SPS09 - Security
 
SAP HANA Native Application Development
SAP HANA Native Application DevelopmentSAP HANA Native Application Development
SAP HANA Native Application Development
 
SAP HANA SPS10- Text Analysis & Text Mining
SAP HANA SPS10- Text Analysis & Text MiningSAP HANA SPS10- Text Analysis & Text Mining
SAP HANA SPS10- Text Analysis & Text Mining
 
HANA SPS07 Fuzzy Search
HANA SPS07 Fuzzy SearchHANA SPS07 Fuzzy Search
HANA SPS07 Fuzzy Search
 

Andere mochten auch

Sql scripts in wps t servers
Sql scripts in wps t serversSql scripts in wps t servers
Sql scripts in wps t servers
52North
 
How to encrypt your script on sql server
How to encrypt your script on sql serverHow to encrypt your script on sql server
How to encrypt your script on sql server
Ikhwan Krisnadi
 

Andere mochten auch (6)

Uncover Hidden Secrets Of T Sql Scripts With Microsoft Sql Server Management ...
Uncover Hidden Secrets Of T Sql Scripts With Microsoft Sql Server Management ...Uncover Hidden Secrets Of T Sql Scripts With Microsoft Sql Server Management ...
Uncover Hidden Secrets Of T Sql Scripts With Microsoft Sql Server Management ...
 
Presentation 2016 qgis_action_scripts_sql
Presentation 2016 qgis_action_scripts_sqlPresentation 2016 qgis_action_scripts_sql
Presentation 2016 qgis_action_scripts_sql
 
Sql scripts in wps t servers
Sql scripts in wps t serversSql scripts in wps t servers
Sql scripts in wps t servers
 
How to encrypt your script on sql server
How to encrypt your script on sql serverHow to encrypt your script on sql server
How to encrypt your script on sql server
 
Sql script update
Sql script updateSql script update
Sql script update
 
99 Facts on the Future of Business in the Digital Economy
99 Facts on the Future of Business in the Digital Economy99 Facts on the Future of Business in the Digital Economy
99 Facts on the Future of Business in the Digital Economy
 

Ähnlich wie HANA SPS07 SQL Script

White papersap sollandscape
White papersap sollandscapeWhite papersap sollandscape
White papersap sollandscape
Giuseppe Caselli
 
Open sap lum1_week_1_all_slides
Open sap lum1_week_1_all_slidesOpen sap lum1_week_1_all_slides
Open sap lum1_week_1_all_slides
Ramin Sadeghi
 
Open sap fiori1_week_02_unit_01_deplov
Open sap fiori1_week_02_unit_01_deplovOpen sap fiori1_week_02_unit_01_deplov
Open sap fiori1_week_02_unit_01_deplov
Nagendra Babu
 
How to build an agentry based mobile app from scratch connecting to an sap ba...
How to build an agentry based mobile app from scratch connecting to an sap ba...How to build an agentry based mobile app from scratch connecting to an sap ba...
How to build an agentry based mobile app from scratch connecting to an sap ba...
Jaime Marchant Benavides
 
How to build an agentry based mobile app from scratch connecting to an sap ba...
How to build an agentry based mobile app from scratch connecting to an sap ba...How to build an agentry based mobile app from scratch connecting to an sap ba...
How to build an agentry based mobile app from scratch connecting to an sap ba...
Ganesh Kumar
 
How to part 2 build an agentry based app from scratch
How to part 2 build an agentry based app from scratchHow to part 2 build an agentry based app from scratch
How to part 2 build an agentry based app from scratch
Ganesh Kumar
 
SAP REST PROGRAMMING Documantation & Notes
SAP REST PROGRAMMING Documantation & NotesSAP REST PROGRAMMING Documantation & Notes
SAP REST PROGRAMMING Documantation & Notes
nepalsingh9990
 

Ähnlich wie HANA SPS07 SQL Script (20)

HANA SPS07 Smart Data Access
HANA SPS07 Smart Data AccessHANA SPS07 Smart Data Access
HANA SPS07 Smart Data Access
 
HANA SPS07 Web-Based Development Workbench
HANA SPS07 Web-Based Development WorkbenchHANA SPS07 Web-Based Development Workbench
HANA SPS07 Web-Based Development Workbench
 
HANA SPS07 River
HANA SPS07 RiverHANA SPS07 River
HANA SPS07 River
 
HANA SPS07 Studio Development Perspective
HANA SPS07 Studio Development PerspectiveHANA SPS07 Studio Development Perspective
HANA SPS07 Studio Development Perspective
 
HANA SPS07 Shine
HANA SPS07 ShineHANA SPS07 Shine
HANA SPS07 Shine
 
SAP HANA SPS08 SQLScript
SAP HANA SPS08 SQLScriptSAP HANA SPS08 SQLScript
SAP HANA SPS08 SQLScript
 
Cloud Computing at SAP
Cloud Computing at SAPCloud Computing at SAP
Cloud Computing at SAP
 
White papersap sollandscape
White papersap sollandscapeWhite papersap sollandscape
White papersap sollandscape
 
HANA SPS07 Text Analysis
HANA SPS07 Text AnalysisHANA SPS07 Text Analysis
HANA SPS07 Text Analysis
 
Open sap lum1_week_1_all_slides
Open sap lum1_week_1_all_slidesOpen sap lum1_week_1_all_slides
Open sap lum1_week_1_all_slides
 
SAP HANA SPS09 - SQLScript
SAP HANA SPS09 - SQLScriptSAP HANA SPS09 - SQLScript
SAP HANA SPS09 - SQLScript
 
Open sap fiori1_week_02_unit_01_deplov
Open sap fiori1_week_02_unit_01_deplovOpen sap fiori1_week_02_unit_01_deplov
Open sap fiori1_week_02_unit_01_deplov
 
How to build an agentry based mobile app from scratch connecting to an sap ba...
How to build an agentry based mobile app from scratch connecting to an sap ba...How to build an agentry based mobile app from scratch connecting to an sap ba...
How to build an agentry based mobile app from scratch connecting to an sap ba...
 
SAP Workflow in S4HANA
SAP Workflow in S4HANASAP Workflow in S4HANA
SAP Workflow in S4HANA
 
How to build an agentry based mobile app from scratch connecting to an sap ba...
How to build an agentry based mobile app from scratch connecting to an sap ba...How to build an agentry based mobile app from scratch connecting to an sap ba...
How to build an agentry based mobile app from scratch connecting to an sap ba...
 
OpenUI5
OpenUI5OpenUI5
OpenUI5
 
SAP HANA Cloud - Virtual Bootcamp 7 - HANA Cloud Platform package for Success...
SAP HANA Cloud - Virtual Bootcamp 7 - HANA Cloud Platform package for Success...SAP HANA Cloud - Virtual Bootcamp 7 - HANA Cloud Platform package for Success...
SAP HANA Cloud - Virtual Bootcamp 7 - HANA Cloud Platform package for Success...
 
How to part 2 build an agentry based app from scratch
How to part 2 build an agentry based app from scratchHow to part 2 build an agentry based app from scratch
How to part 2 build an agentry based app from scratch
 
SAP analytics as enabler for the intelligent enterprise (Iver van de Zand)
SAP analytics as enabler for the intelligent enterprise (Iver van de Zand)SAP analytics as enabler for the intelligent enterprise (Iver van de Zand)
SAP analytics as enabler for the intelligent enterprise (Iver van de Zand)
 
SAP REST PROGRAMMING Documantation & Notes
SAP REST PROGRAMMING Documantation & NotesSAP REST PROGRAMMING Documantation & Notes
SAP REST PROGRAMMING Documantation & Notes
 

Mehr von SAP Technology

Mehr von SAP Technology (20)

SAP Integration Suite L1
SAP Integration Suite L1SAP Integration Suite L1
SAP Integration Suite L1
 
Future-Proof Your Business Processes by Automating SAP S/4HANA processes with...
Future-Proof Your Business Processes by Automating SAP S/4HANA processes with...Future-Proof Your Business Processes by Automating SAP S/4HANA processes with...
Future-Proof Your Business Processes by Automating SAP S/4HANA processes with...
 
7 Top Reasons to Automate Processes with SAP Intelligent Robotic Processes Au...
7 Top Reasons to Automate Processes with SAP Intelligent Robotic Processes Au...7 Top Reasons to Automate Processes with SAP Intelligent Robotic Processes Au...
7 Top Reasons to Automate Processes with SAP Intelligent Robotic Processes Au...
 
Extend SAP S/4HANA to deliver real-time intelligent processes
Extend SAP S/4HANA to deliver real-time intelligent processesExtend SAP S/4HANA to deliver real-time intelligent processes
Extend SAP S/4HANA to deliver real-time intelligent processes
 
Process optimization and automation for SAP S/4HANA with SAP’s Business Techn...
Process optimization and automation for SAP S/4HANA with SAP’s Business Techn...Process optimization and automation for SAP S/4HANA with SAP’s Business Techn...
Process optimization and automation for SAP S/4HANA with SAP’s Business Techn...
 
Accelerate your journey to SAP S/4HANA with SAP’s Business Technology Platform
Accelerate your journey to SAP S/4HANA with SAP’s Business Technology PlatformAccelerate your journey to SAP S/4HANA with SAP’s Business Technology Platform
Accelerate your journey to SAP S/4HANA with SAP’s Business Technology Platform
 
Accelerate Your Move to an Intelligent Enterprise with SAP Cloud Platform and...
Accelerate Your Move to an Intelligent Enterprise with SAP Cloud Platform and...Accelerate Your Move to an Intelligent Enterprise with SAP Cloud Platform and...
Accelerate Your Move to an Intelligent Enterprise with SAP Cloud Platform and...
 
Transform your business with intelligent insights and SAP S/4HANA
Transform your business with intelligent insights and SAP S/4HANATransform your business with intelligent insights and SAP S/4HANA
Transform your business with intelligent insights and SAP S/4HANA
 
SAP Cloud Platform for SAP S/4HANA: Accelerate your move to an Intelligent En...
SAP Cloud Platform for SAP S/4HANA: Accelerate your move to an Intelligent En...SAP Cloud Platform for SAP S/4HANA: Accelerate your move to an Intelligent En...
SAP Cloud Platform for SAP S/4HANA: Accelerate your move to an Intelligent En...
 
Innovate collaborative applications with SAP Jam Collaboration & SAP Cloud Pl...
Innovate collaborative applications with SAP Jam Collaboration & SAP Cloud Pl...Innovate collaborative applications with SAP Jam Collaboration & SAP Cloud Pl...
Innovate collaborative applications with SAP Jam Collaboration & SAP Cloud Pl...
 
The IoT Imperative for Consumer Products
The IoT Imperative for Consumer ProductsThe IoT Imperative for Consumer Products
The IoT Imperative for Consumer Products
 
The IoT Imperative for Discrete Manufacturers - Automotive, Aerospace & Defen...
The IoT Imperative for Discrete Manufacturers - Automotive, Aerospace & Defen...The IoT Imperative for Discrete Manufacturers - Automotive, Aerospace & Defen...
The IoT Imperative for Discrete Manufacturers - Automotive, Aerospace & Defen...
 
IoT is Enabling a New Era of Shareholder Value in Energy and Natural Resource...
IoT is Enabling a New Era of Shareholder Value in Energy and Natural Resource...IoT is Enabling a New Era of Shareholder Value in Energy and Natural Resource...
IoT is Enabling a New Era of Shareholder Value in Energy and Natural Resource...
 
The IoT Imperative in Government and Healthcare
The IoT Imperative in Government and HealthcareThe IoT Imperative in Government and Healthcare
The IoT Imperative in Government and Healthcare
 
SAP S/4HANA Finance and the Digital Core
SAP S/4HANA Finance and the Digital CoreSAP S/4HANA Finance and the Digital Core
SAP S/4HANA Finance and the Digital Core
 
Five Reasons To Skip SAP Suite on HANA and Go Directly to SAP S/4HANA
Five Reasons To Skip SAP Suite on HANA and Go Directly to SAP S/4HANAFive Reasons To Skip SAP Suite on HANA and Go Directly to SAP S/4HANA
Five Reasons To Skip SAP Suite on HANA and Go Directly to SAP S/4HANA
 
SAP Helps Reduce Silos Between Business and Spatial Data
SAP Helps Reduce Silos Between Business and Spatial DataSAP Helps Reduce Silos Between Business and Spatial Data
SAP Helps Reduce Silos Between Business and Spatial Data
 
Why SAP HANA?
Why SAP HANA?Why SAP HANA?
Why SAP HANA?
 
Spotlight on Financial Services with Calypso and SAP ASE
Spotlight on Financial Services with Calypso and SAP ASESpotlight on Financial Services with Calypso and SAP ASE
Spotlight on Financial Services with Calypso and SAP ASE
 
SAP ASE 16 SP02 Performance Features
SAP ASE 16 SP02 Performance FeaturesSAP ASE 16 SP02 Performance Features
SAP ASE 16 SP02 Performance Features
 

Kürzlich hochgeladen

Kürzlich hochgeladen (20)

Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 

HANA SPS07 SQL Script

  • 1. What´s New? SAP HANA SPS 07 SQLScript (Delta from SPS 06 to SPS 07) SAP HANA Product Management November, 2013
  • 2. Agenda SQLScript Editor SQLScript Debugger SQLScript Language User Defined Functions © 2013 SAP AG. All rights reserved. Public 2
  • 4. SQLScript Editor Procedure wizard New artifact hierarchy Renamed to “Stored Procedure” © 2013 SAP AG. All rights reserved. Public 4
  • 5. SQLScript Editor Two file formats .hdbprocedure is the new artifact type which will be the recommended file format moving forward. .procedure is still supported, but has been deprecated and eventually will be removed. Procedure templates are still supported but currently only via .procedure format. © 2013 SAP AG. All rights reserved. Public 5
  • 6. SQLScript Editor Source Code Editor for .hdbprocedure CREATE keyword is now removed Explicit schema definition Package/procedure name separator is now double colon(::) No local table types definition. Use CDS(.hdbdd) to define global table types © 2013 SAP AG. All rights reserved. Public 6
  • 7. SQLScript Editor SQLScript Viewer Procedures in the catalog can now be viewed in the SQLScript editor in read-only mode. Allows for setting/removing of breakpoints within the runtime object. © 2013 SAP AG. All rights reserved. Public 7
  • 9. SQLScript Debugger Debug catalog procedures Debug configuration now allows for debugging of both design time(repository) and runtime(catalog) procedures Open the run-time procedure from the catalog and set breakpoints Within the debug configuration, choose © 2013 SAP AG. All rights reserved. Public 9
  • 10. SQLScript Debugger New Debugging Authorization Concept Prior to SPS 07, users were allowed to debug everything by simply having authorization to SYS.DEBUG, this authorization is no longer required in SPS 07 Restricts the ability to debug procedures which are owned by other users. You can grant debug access for a procedure or for an entire schema to a specific user.  With the following authorizations, users can set breakpoints, show procedure source in debugger UI, and inspect intermediate results. Grant debug on <proc> to <user> Grant debug on schema <schema> to <user>  Without these authorizations, the procedures are handled like a black box. Restricts the ability to attach debugger to running session. You can grant debug access for attaching to running session to a specific user.  With the following authorizations, users can freeze execution of another user, and see data from another user. Grant attach debugger to <user> © 2013 SAP AG. All rights reserved. Public 10
  • 11. SQLScript Debugger New Debugging Authorization Concept Procedures created directly in the catalog are owned by the user which created them, so no additional authorization is required to debug them. Procedures created/activated via the repository(Development Perspective) are owned by _SYS_REPO, therefore the user must grant debug authorization to himself. Users can not execute the “grant” statements directly. The following procedures could be used if the user has authorization to these procedures.   Call _SYS_REPO.GRANT_PRIVILEGE_ON_ACTIVATED_CONTENT('debug','<objectname>','<username>'); Call _SYS_REPO.GRANT_SCHEMA_PRIVILEGE_ON_ACTIVATED_CONTENT('debug','<schemaname>','<username>'); Usually, users will not have authorization to these procedures, so it is recommended to add these authorizations via a role(.hdbrole) as shown below. role I816013.testing.roles::debug { schema I816013.testing.data:I816013_TEST.hdbschema: DEBUG, EXECUTE; // grant debug to schema sql object I816013.testing.procedures:get_product_sale_price.hdbprocedure: DEBUG, EXECUTE; // grant debug to procedure } © 2013 SAP AG. All rights reserved. Public 11
  • 13. SQLScript Language Various Optimizations © 2013 SAP AG. All rights reserved. Public 13
  • 15. User Defined Functions Scalar Functions New repository artifact(.hdbscalarfunction) and wizard Simple text editor, syntax highlighting and code hints coming in a future support package. © 2013 SAP AG. All rights reserved. Public 15
  • 16. User Defined Functions Table Functions New repository artifact(.hdbtablefunction) and wizard Simple text editor, syntax highlighting and code hints coming in a future support package. © 2013 SAP AG. All rights reserved. Public 16
  • 17. Disclaimer This presentation outlines our general product direction and should not be relied on in making a purchase decision. This presentation is not subject to your license agreement or any other agreement with SAP. SAP has no obligation to pursue any course of business outlined in this presentation or to develop or release any functionality mentioned in this presentation. This presentation and SAP’s strategy and possible future developments are subject to change and may be changed by SAP at any time for any reason without notice. This document is provided without a warranty of any kind, either express or implied, including but not limited to, the implied warranties of merchantability, fitness for a particular purpose, or non-infringement. SAP assumes no responsibility for errors or omissions in this document, except if such damages were caused by SAP intentionally or grossly negligent. © 2013 SAP AG. All rights reserved. Public 17
  • 18. Thank you Contact information Rich Heilman SAP HANA Product Management AskSAPHANA@sap.com To get the best overview of what’s new in SAP HANA SPS 07, read this blog.
  • 19. © 2013 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors. National product specifications may vary. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty. SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and other countries. Please see http://www.sap.com/corporate-en/legal/copyright/index.epx#trademark for additional trademark information and notices. © 2013 SAP AG. All rights reserved. Public 19
  • 20. © 2013 SAP AG. Alle Rechte vorbehalten. Weitergabe und Vervielfältigung dieser Publikation oder von Teilen daraus sind, zu welchem Zweck und in welcher Form auch immer, ohne die ausdrückliche schriftliche Genehmigung durch SAP AG nicht gestattet. In dieser Publikation enthaltene Informationen können ohne vorherige Ankündigung geändert werden. Einige der von der SAP AG und ihren Distributoren vermarkteten Softwareprodukte enthalten proprietäre Softwarekomponenten anderer Softwareanbieter. Produkte können länderspezifische Unterschiede aufweisen. Die vorliegenden Unterlagen werden von der SAP AG und ihren Konzernunternehmen („SAP-Konzern“) bereitgestellt und dienen ausschließlich zu Informationszwecken. Der SAP-Konzern übernimmt keinerlei Haftung oder Gewährleistung für Fehler oder Unvollständigkeiten in dieser Publikation. Der SAP-Konzern steht lediglich für Produkte und Dienstleistungen nach der Maßgabe ein, die in der Vereinbarung über die jeweiligen Produkte und Dienstleistungen ausdrücklich geregelt ist. Keine der hierin enthaltenen Informationen ist als zusätzliche Garantie zu interpretieren. SAP und andere in diesem Dokument erwähnte Produkte und Dienstleistungen von SAP sowie die dazugehörigen Logos sind Marken oder eingetragene Marken der SAP AG in Deutschland und verschiedenen anderen Ländern weltweit. Weitere Hinweise und Informationen zum Markenrecht finden Sie unter http://www.sap.com/corporateen/legal/copyright/index.epx#trademark. © 2013 SAP AG. All rights reserved. Public 20