4D v11 SQL Release 1 (11.1) ADDENDUM



Similar documents
4D v11 SQL Release 3 (11.3) ADDENDUM

Jet Data Manager 2012 User Guide

Microsoft Access 3: Understanding and Creating Queries

Ohio University Computer Services Center August, 2002 Crystal Reports Introduction Quick Reference Guide

Global Search v.2.8 for Microsoft Dynamics CRM 4.0

4D - 4D Server Fixed bugs (239)

National Fire Incident Reporting System (NFIRS 5.0) Configuration Tool User's Guide

Aras Corporation Aras Corporation. All rights reserved. Notice of Rights. Notice of Liability

Using SQL Server Management Studio

Trial version of GADD Dashboards Builder

Fixed Bugs for v14 R5 (all products) March 24, 2015

Microsoft Access 2010 Part 1: Introduction to Access

4D v11 SQL Release 6 (11.6) ADDENDUM

Hypercosm. Studio.

New Features Guide SMS + Templates

Lesson 07: MS ACCESS - Handout. Introduction to database (30 mins)

Table and field properties Tables and fields also have properties that you can set to control their characteristics or behavior.

Fixed bugs (137) Reference ACI Opening Date September 17, 2014

What's New In DITA CMS 4.0

Right-to-Left Language Support in EMu

Data Access Guide. BusinessObjects 11. Windows and UNIX

VX Search File Search Solution. VX Search FILE SEARCH SOLUTION. User Manual. Version 8.2. Jan Flexense Ltd.

Data Tool Platform SQL Development Tools

New Features in Microsoft Office 2007

Access NAMES Computerized Database

DiskPulse DISK CHANGE MONITOR

Microsoft Access 2007

Excel Database Management Microsoft Excel 2003

ICE for Eclipse. Release 9.0.1

How To Write A File System On A Microsoft Office (Windows) (Windows 2.3) (For Windows 2) (Minorode) (Orchestra) (Powerpoint) (Xls) (

Searching in CURA. mindscope Staffing and Recruiting Software

Thank you for using AD Bulk Export 4!

How to Configure Windows 8.1 to run ereports on IE11

Basic SQL Server operations

Crystal Converter User Guide

Intro to Excel spreadsheets

Business Objects Version 5 : Introduction

Rational Software. Getting Started with Rational Customer Service Online Case Management. Release 1.0

Using ELM Reports in WhatsUp Gold. This guide provides information about configuring ELM reports in WhatsUp Gold v15.0

MS SQL Express installation and usage with PHMI projects

UNPAN Portal Content Management System (CMS) User Guide

Field Properties Quick Reference

Searching your Archive in Outlook (Normal)

Photo Library. Help Guide

ADMINISTRATOR'S GUIDE. Version 12.20

Crystal Reporting. Accounting and Management Products 9.6 CD

ORACLE BUSINESS INTELLIGENCE WORKSHOP

Eventia Log Parsing Editor 1.0 Administration Guide

Teradata SQL Assistant Version 13.0 (.Net) Enhancements and Differences. Mike Dempsey

SAP BusinessObjects Business Intelligence platform Document Version: 4.1 Support Package Information Design Tool User Guide

Online Application Instruction Document

9 CREATING REPORTS WITH REPORT WIZARD AND REPORT DESIGNER

COMOS. Lifecycle COMOS Snapshots. "COMOS Snapshots" at a glance 1. System requirements for installing "COMOS Snapshots" Database management 3

INTRODUCTION: SQL SERVER ACCESS / LOGIN ACCOUNT INFO:

General Improvements for Version 7.6. New module: Enterprise Dashboard

System Administration and Log Management

4D v14. Upgrade Windows /OS X. 4D D SAS. All Rights Reserved.

How to Add Documents to Your Blackboard Class

ODBC Client Driver Help Kepware, Inc.

Importing and Exporting With SPSS for Windows 17 TUT 117

Database Studio is the new tool to administrate SAP MaxDB database instances as of version 7.5.

Funeral Home Software Instruction Manual

COMSPHERE 6700 SERIES NETWORK MANAGEMENT SYSTEM

Global Search v 6.1 for Microsoft Dynamics CRM Online (2013 & 2015 versions)

Upgrading User-ID. Tech Note PAN-OS , Palo Alto Networks, Inc.

Adobe Acrobat 6.0 Professional

SQL Server Setup Guide for BusinessObjects Planning

Hermes.Net IVR Designer Page 2 36

Typing in Greek Eleanor Jefferson Smith College Classics Department

Installing LearningBay Enterprise Part 2

2Creating Reports: Basic Techniques. Chapter

Creating a New Search

What s New in QuarkXPress 8

Blackboard s Wikis Tool

Access 2010: The Navigation Pane

Excel 2003 Tutorial I

TRAINING MANUAL. Executing Reports. Formatting Options. Copyright 2004 University of San Diego. All rights reserved.

User's Guide. Using RFDBManager. For 433 MHz / 2.4 GHz RF. Version

How To Use Spss

Creating an Archive in Outlook

FileMaker 11. ODBC and JDBC Guide

Forms & Surveys. Schoolwires Centricity2

Specifications of Paradox for Windows

NETWORK PRINT MONITOR User Guide

Database Concepts (3 rd Edition) APPENDIX D Getting Started with Microsoft Access 2007

Migration Manager v6. User Guide. Version

Myridas Catalogue Based Sales User Guide

DocumentsCorePack for MS CRM 2011 Implementation Guide

SQL Server An Overview

Excel Companion. (Profit Embedded PHD) User's Guide

DashBoard Beta Web Server

Enterprise Reporting Advanced Web Intelligence Training. Enterprise Reporting Services

PRECISION v16.0 MSSQL Database. Installation Guide. Page 1 of 45

Setting Up ALERE with Client/Server Data

Raptor K30 Gaming Software

Decision Support AITS University Administration. Web Intelligence Rich Client 4.1 User Guide

Transcription:

4D v11 SQL Release 1 (11.1) ADDENDUM Welcome to release 1 of 4D v11 SQL. This document outlines the new features and modifications provided in this version of 4D. Query Analysis 4D provides three new commands that can be used to analyze with precision the execution of queries carried out on the data. These commands are intended for developers seeking to optimize their applications. These three new commands are found in the Queries theme. DESCRIBE QUERY EXECUTION DESCRIBE QUERY EXECUTION (status) Parameter Type Description status Boolean True=Enable internal query analysis False=Disable internal query analysis The DESCRIBE QUERY EXECUTION command can be used to enable or disable the query analysis mode for the current process. The command takes into account both queries carried out via the 4D language or by SQL. Calling the command with the status parameter set to True enables the query analysis mode. In this mode, the 4D engine records internally two specific pieces of information for each subsequent query carried out on the data: A detailed internal description of the query just before its execution, in other words, what was planned to be executed (the query plan), A detailed internal description of the query that was actually executed (the query path). 4D v11 SQL Release 1 (11.1) Addendum 1

4D v11 SQL Release 1 (11.1) Addendum The information recorded includes the type of query (indexed, sequential), the number of records found and the time needed for every query criteria to be executed. You can then read this information using the new Get Last Query Plan and Get Last Query Path commands. Usually, the description of the query plan and its path are the same, but they may nevertheless differ because 4D might implement dynamic optimizations during the query execution in order to improve performance. For example, an indexed query may be converted dynamically into a sequential query if the 4D engine estimates that this might be faster this is sometimes the case, more particularly, when the number of records being queried is low. Pass False in the status parameter when you no longer need to analyze queries. The query analysis mode can slow down the application. The following example illustrates the type of information obtained using these commands in the case of an SQL query: C_TEXT($vResultPlan;$vResultPath) ARRAY TEXT(aTitles;0) ARRAY TEXT(aDirectors;0) DESCRIBE QUERY EXECUTION(True) `analysis mode Begin SQL SELECT ACTORS.FirstName, CITIES.City_Name FROM ACTORS, CITIES WHERE ACTORS.Birth_City_ID=CITIES.City_ID ORDER BY 1 INTO :atitles, :adirectors; End SQL $vresultplan:=get Last Query Plan(Description in Text Format) $vresultpath:=get Last Query Path(Description in Text Format) DESCRIBE QUERY EXECUTION(False) `End analysis mode After this code is executed, $vresultplan and $vresultpath contain descriptions of the queries carried out, for example: $vresultplan: [Join] : ACTORS.Birth_City_ID = CITIES.City_ID 2 4D v11 SQL Release 1 (11.1) Addendum

Query Analysis vresultpath: And [Merge] : ACTORS with CITIES [Join] : ACTORS.Birth_City_ID = CITIES.City_ID (1227 records found in 13 ms) --> 1227 records found in 13 ms --> 1227 records found in 14 ms If the Description in XML format constant is passed to the Get Last Query Path command, $vresultpath contains the description of the query expressed in XML: <QueryExecution> <steps description="and" time="0" recordsfounds="1227"> <steps description="[merge] : ACTORS with CITIES" time="13" recordsfounds="1227"> <steps description="[join] : ACTORS.Birth_City_ID = CITIES.City_ID" time="13" recordsfounds="1227"/> </steps> </steps> </QueryExecution> Get Last Query Plan Get Last Query Plan (descformat) String Parameter Type Description descformat Longint Description format: Text or XML Function result String Description of last executed query plan The Get Last Query Plan command returns the internal description of the query plan for the last query carried out on the data. For more information about query descriptions, please refer to the documentation of the DESCRIBE QUERY EXECUTION command. This description is returned in Text or XML format depending on the value passed in the descformat parameter. You can pass one of the following constants, found in the Queries theme: Constant Type Value Description in Text Format Longint 0 Description in XML Format Longint 1 This command returns a significant value if the DESCRIBE QUERY EXECUTION command has been executed during the session. 4D v11 SQL Release 1 (11.1) Addendum 3

4D v11 SQL Release 1 (11.1) Addendum The description of the last query plan can be compared to the description of the actual path of the last query (obtained using the Get Last Query Path command) for optimization purposes. For more information, please refer to the description of the DESCRIBE QUERY EXECUTION command. Get Last Query Path Get Last Query Path (descformat) String Parameter Type Description descformat Longint Description format: Text or XML Function result String Description of last executed query path The Get Last Query Path command returns the detailed internal description of the actual path of the last query carried out on the data. For more information about query descriptions, please refer to the documentation of the DESCRIBE QUERY EXECUTION command. This description is returned in Text or XML format depending on the value passed in the descformat parameter. You can pass one of the following constants, found in the Queries theme: Constant Type Value Description in Text Format Longint 0 Description in XML Format Longint 1 This command returns a significant value if the DESCRIBE QUERY EXECUTION command has been executed during the session. The description of the last query path can be compared to the description of the query plan provided for the last query (obtained using the Get Last Query Plan command) for optimization purposes. For more information, please refer to the description of the DESCRIBE QUERY EXECUTION command. SQL Engine The new features described in this paragraph concern the integrated SQL engine of 4D. 4 4D v11 SQL Release 1 (11.1) Addendum

SQL Engine Handling Character Case A new preference can be used to modify the way character cases are handled in SQL queries: Case-sensitive String Comparison. This option is found on the SQL/Configuration page of the Preferences: New option This option is checked by default, which means that the SQL engine differentiates between upper and lower case when comparing strings (sorts and queries). For example ABC = ABC but ABC # Abc. In certain cases, for example so as to align the functioning of the SQL engine with that of the 4D engine, you may wish for string comparisons to not be case-sensitive ( ABC = Abc ). To do so, you can simply uncheck this option. New Selector for SET DATABASE PARAMETER and Get Database Parameter The case-sensitive option for the SQL engine can be set and read by programming using the SET DATABASE PARAMETER and Get database parameter commands. For this purpose, a new selector has been added: Selector = 44 (SQL Engine Case Sensitivity) Possible values: 0 or 1 (0 = case not taken into account, 1 = case-sensitive) Description: Activates or deactivates case-sensitivity for string comparisons carried out by the SQL engine. 4D v11 SQL Release 1 (11.1) Addendum 5

4D v11 SQL Release 1 (11.1) Addendum Referencing Pointer Type Expressions It is now possible to reference pointer type expressions directly (dereferenced or not) in SQL queries. Passing a variable via a dereferenced pointer: C_LONGINT($vLongint) C_POINTER($vPointer) $vlongint:=1 $vpointer:=->$vlongint Begin SQL SELECT Col1 FROM TEST WHERE Col1=:$vPointer->; End SQL Passing a variable via a pointer that is not dereferenced: C_LONGINT($vLongint) C_POINTER($vPointer) $vlongint:=1 $vpointer:=->$vlongint Begin SQL SELECT Col1 FROM TEST WHERE Col1=:$vPointer; End SQL This works with all types of SQL queries: ODBC commands, Begin/End SQL tags and the QUERY BY SQL command. Note Only one pointer level is taken into account; pointers that reference other pointers cannot be used. Unicode Menus 4D v11 SQL Release 1 includes several new features concerning the extended support of Unicode. In a 4D application, menus and their items can now be displayed in Unicode. This means that it is possible to use, for example, Japanese and Greek characters in the same menu. This new feature concerns all types of menus, whether they were created by the Menu bar editor or by programming. Of course this function is only available when Unicode mode is activated in the database. 6 4D v11 SQL Release 1 (11.1) Addendum

Unicode Default Alpha Type Option The Default Alpha Type compilation option on the Design Mode/Compiler page is removed when the database operates in Unicode mode: Compatibility mode (non-unicode) Unicode mode In Unicode mode, the Text type is automatically used. Replace string Replace string (source; oldstring; newstring{; howmany}{; *}}) String Parameter Type Description source String Original string oldstring String Character(s) to replace newstring String Replacement string howmany Number How many times to replace * * If passed: diacritical evaluation Function result String Resulting string The Replace string command now accepts the asterisk * as the last parameter. If you pass this parameter, you indicate that the evaluation of the characters must be diacritical, in other words, it must be case sensitive and take any accented characters into account (a#a, a#à, etc.). This is illustrated in the following examples: vresult:=replace string("crème brûlée";"brulee";"caramel") `vresult is "Crème caramel" vresult:=replace string("crème brûlée";"brulee";"caramel";*) `vresult is "Crème brûlée" 4D v11 SQL Release 1 (11.1) Addendum 7

4D v11 SQL Release 1 (11.1) Addendum 4D View In the new version of the 4D View plug-in, the display and entry of characters is now carried out in Unicode. This mode is active regardless of the state of the Unicode option of 4D. 4D View v11.1 can open documents created with previous versions. However, 4D View documents created with version 11.1 cannot be reopened with version 11 or 2004.x. Other New Features Quick Reports and Print Settings To maintain the consistency of your interfaces, 4D has now made the pring settings uniform for both quick report areas and those of the application. In previous versions of 4D, the print settings for quick report areas were stored separately for each report. Any modifications of 4D print settings were not carried over to quick reports and vice versa. Beginning with version 11.1, the print settings are always identical in 4D and in the quick report areas. Any changes made to 4D print settings are carried out in those of the quick reports. Conversely, when loading a quick report, the print settings of the report replace those of 4D. Coordinates for Clicks on a Picture 4D now lets you retrieve the local coordinates of a click on a picture field or variable, even if a scroll or zoom has been applied to the picture. The click coordinates are returned in the MouseX and MouseY system variables. The coordinates are expressed in pixels with respect to the top left corner of the picture (0,0). You must get the value of these variables as part of the On Clicked or On Double Clicked form event. In order for this mechanism to work properly, the display format must be set to Truncated (non-centered). This mechanism, similar to that of a picture map, can be used, for example, to handle scrollable button bars or the interface of cartography software. 8 4D v11 SQL Release 1 (11.1) Addendum