473,396 Members | 1,933 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

CLI call SQLTables and RTRIM

Hi,

My application accesses DB2 over DB2 CLI and we use the calls
SQLTables, SQLTablePrivileges, SQLColoumns to retrieve the schema
information from the system catalog tables. When we call SQLTables
when using the DB2 Connect Client v7.1.0.40, the call results in the
following query

SQLTables( hStmt=1:1, szTableQualifier=Null Pointer,
cbTableQualifier=0, szTableOwner="P390", cbTableOwner=-3,
szTableName="%", cbTableName=-3, szTableType="TABLE", cbTableType=-3 )
---> Time elapsed - +1.045900E-002 seconds
( StmtOut.=" SELECT CREATOR, NAME, TYPE, REMARKS,
TBCREATOR,TBNAME,LOCATION FROM "SYSIBM".SYSTABLES WHERE CREATOR='P390'
AND CREATOR<>'SYSIBM' AND TYPE='T' ORDER BY 3, 1, 2 FOR FETCH ONLY" )

Our customer was seeing a huge delay when our application was loading
the schema on his production system. It turns out that they are using
the DB2 v7.1.0.93 (Fixpack 11) of DB2 Connect Client on Win2K. This
version uses RTRIM in the SQL call resulting from the application call
to SQLTables. (The 7.1.0.40 does not use RTRIM)

Is there any way I can setup the Connect client so that the RTRIM
function is not called? The DB2 DBA at the client end say that the use
of RTRIM prevents the use of indices, which will obviously impact
performance. Do you have any pointers for this?

Regards
~Rashmi
Nov 12 '05 #1
0 1825

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: jose luis fernandez diaz | last post by:
Hi, This is my rtrim version: inline void rtrim(string *ptr_s) { string::reverse_iterator rit= ptr_s->rbegin(); while(rit != ptr_s->rend() && *rit==' ') ptr_s->erase((++rit).base()); }
1
by: Lynn.Tilby | last post by:
In trying to trim some data while selecting and loading from 2 tables into 1 I get the following: SELECT TRIM(TRAILING ' ' FROM s.strk_sym_cmplt), TRIM(TRAILING ' ' FROM s.stk_sym), s.c_p,...
4
by: rajdb2 | last post by:
Hi, I am using the following sql statement SELECT rtrim(rtrim(coalesce(substr(char(v.creationdate),1,4) || '-' || substr(char(v.creationdate),6,2) || '-' || substr(char(v.creationdate),9,2) ||...
8
by: PAPutzback | last post by:
How do I keep the form up.
2
by: David Teran | last post by:
Hi, i am using Postgres 7.4.2 with jdbc. Every time i try to select a varchar the SQL generated by the jdbc driver uses RTRIM(t0.columnname) which breaks an existing application. Is this normal,...
7
by: Richard Marsden | last post by:
(also posted to microsoft.public.access.odbcclientsvr but no reply so far: problem concerns ODBC->MS Access) I have some ODBC code that I'm testing against various underlying databases. The...
9
by: alan | last post by:
Hello, can somebody help me with this self written rtrim function? i do always get a access violation on the line where i want to terminate the string: str = '\0'; why can't i acces this specific...
4
by: Mintyman | last post by:
Hi, I have erronous white space at the end of my 'description' field within my 'product' table. I tried using the RTRIM function but it won't let me because it is a TEXTBLOB (text) field. Can...
12
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I trim whitespace - LTRIM/RTRIM/TRIM?...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.