Looking to obtain the Interbase ODS number programmatically - interbase

We are spread over a few versions of the ODS from 15 through 17.
Really, we are rolling out with XE7 which is version 16.
Does anyone know how to read the ODS number from a local database to identify that an update is required?
John

Depends on what programming interface/connectivity you are using in your application to get to InterBase.
InterBase API has a isc_database_info() function to get information about various properties. You are looking for isc_info_ods_version property value. In your InterBase examples/ folder, there is a sample, dbinfo.c. This shows you how to use the C api to get this value.
If you are using InterBase Express (IBX) components via Delphi/C++Builder, you can use IBDatabaseInfo component to get the information. See http://docwiki.embarcadero.com/Libraries/Sydney/en/IBX.IBDatabaseInfo.TIBDatabaseInfo.ODSMajorVersion
If you are using FireDAC to connect to InterBase, you can use the following. See http://docwiki.embarcadero.com/Libraries/Sydney/en/FireDAC.Phys.IBWrapper.TIBDatabase.ods_version

Related

Is it possible to change the datasource of a twb file using tableauserverclient?

Use Case:
Given a Template.twb that uses Template.hyper I want to create Copy1.hyper and Copy2.hyper that are used in Dashboard1.twb and Dashboard2.twb using automation and the Tableau API.
I've broken this down into three steps, but I can only do the first two currently.
Write the hyper files using the Hyper API and publish to Server
using
Create and publish Dashboard1.twb and Dashboard2.twb that still use Template.hyper as a datasource.
Change datasource of Dashboard1.twb to Copy1.hyper.
I think this is done using workbooks.update_connection, but I haven't gotten it to work or found an example online.
I'm a python novice and mostly using the python scripts made available in the Hyper API and Tablea Server Client to create and publish respectively.
Is this possible?
I can change the datasource by hand in tableau desktop, but we want this automated.
I was thinking I could just append all the data and filter on some unique string generated by each query, but this seems like it would get unwieldy very fast.

COBOL DB2 Bind Process

What is the difference between pre-compile and bind for a COBOL DB2 program.
How does syntax check differ in both the processes.
If we give the wrong column name in our code, then in which process it will fail.
It seems you need to do some study in the Db2 Knowledge Centre.
A pre-compile action creates a bindfile, containing the static SQL present in the source code (i.e the sections of code with EXEC SQL statements in your COBOL), in addition to a compilable form of the source code that contains the non-SQL logic and data (your PROCEDURE DIVISION and DATA DIVISION etc).
A bind action uses both the bindfile and the database to create a package inside the database which is the executable form of the bindfile contents. The package contains sections corresponding your your EXEC SQL blocks for static SQL.
Later, when the built (i.e. compiled and linked) application executes, and wants to use the database, this will cause sections of the package to be loaded from the database catalog (or read from cache) and executed by the database manager to deliver the required actions.
As each command (precompile, vs bind) serves a different purpose, the syntax varies , and also can vary with the Db2-server platform (Z/OS , i-series, Linux/Unix/Windows) and version.
Refer to the free Db2 Knowledge Center for your version of Db2 and your Db2-server platform (separate different documentation Knowledge Center websites exist for Db2-for-Z/OS, Db2 for i-series, Db2-for-Linux/Unix/Windows ).

How can I set sql_mode to a list of values

I am trying to use the 2nd gen cloud sql and would like to change the sql mode. In the UI, I can only set sql_mode to one value from a drop-down list, but not multiple of them (eg, "STRICT_MODE_TRANS,ALLOW_INVALID_DATES"). What would be the best way to accomplish that?
Cheers,
Andres
I know this post is 1 year old, but I stumbled upon this now when I had a problem with sql_mode when I tried migrating a database from MySQL 5.5 to Google SQL using 5.7. Though I know that we could SET GLOBAL sql_mode='' to any valid value we want, it took me hours to give up and concluded we could not set multiple values on Google Cloud SQL.
Google only allows one value to be set on sql_mode flag for now. If your problem pertains to removing ONLY_FULL_GROUP_BY (OP does not mention why he wants to customize values) without removing the rest of the values of sql_mode, using the value TRADITIONAL in the Console or gcloud sql instances patch <instance_name> --database-flags sql_mode=TRADITIONAL will remove that value from the rest of the string.
From MySQL 5.7 Documentation:
Before MySQL 5.7.4, and in MySQL 5.7.8 and later, TRADITIONAL is equivalent to STRICT_TRANS_TABLES, STRICT_ALL_TABLES, NO_ZERO_IN_DATE, NO_ZERO_DATE, ERROR_FOR_DIVISION_BY_ZERO, NO_AUTO_CREATE_USER, and NO_ENGINE_SUBSTITUTION.
I would have only added this as a comment above, but I can't add one yet due to lacking points.
This is not supported right now by Google Cloud SQL. You can only set one value.
Another potential solution is to set the sql_mode to HIGH_NOT_PRECEDENCE
Once set in Cloud SQL the string for sql_mode will become:
HIGH_NOT_PRECEDENCE
All other flags are removed!
I was coming from an older project so this solution might not work for all, but seems to be working well for us, plus it's something that can be tried quickly.

Table of Build-in Functions by Crystal Report Version

Is there some kind of Build-in function comparison table where I can easily see which version supports which Build-in function?
The reason I am asking is: I was having trouble with a Crystal Report document. In the end, the problem was that I'm using Version 11 (aka XI) on the development server and the productive server has Version 9. Version 11 supports the build-in Function "RoundUp(...)" and apparently Version 9 doesn't.
I wasn't able to find a table which compare Build-in functions next to each other. This information might still be usfull:
Crystal 10: Formula Language Reference (PDF)
Crystal Reports for Rational Application Developer: Functions
I wish I would have found some older References. :P

ADO.net Data Services [DataWebkey]

I am using VS 2008(Professional edition) with SP1.I am new to ADO.NET DataServices.I am watching Mike Taulty videos.
He used [DataWebKey] attribute to specifty the key field and he referred the namespace
Microsoft.Data.Web. To follow that example I am trying to refer the same assembly,but it is not found in my system.
How to fix it?
Looks like you're not the first person to come across this.
http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2008/05/19/10424.aspx
Apparently you should use DataServiceKey which is in System.Data.Services.Common.
I see that Mike's videos mostly date from mid 2008. ADO.NET Data Services has changed since then, that may be why you're unable to find the right reference.
It think you're better off trying to find some more recent material, preferably from the last 6 months.