473,811 Members | 2,557 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CLI call SQLTables and RTRIM

Hi,

My application accesses DB2 over DB2 CLI and we use the calls
SQLTables, SQLTablePrivile ges, 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, szTableQualifie r=Null Pointer,
cbTableQualifie r=0, szTableOwner="P 390", cbTableOwner=-3,
szTableName="%" , cbTableName=-3, szTableType="TA BLE", cbTableType=-3 )
---> Time elapsed - +1.045900E-002 seconds
( StmtOut.=" SELECT CREATOR, NAME, TYPE, REMARKS,
TBCREATOR,TBNAM E,LOCATION FROM "SYSIBM".SYSTAB LES WHERE CREATOR='P390'
AND CREATOR<>'SYSIB M' 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 1967

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

Similar topics

2
7180
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
1609
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, o.dta_date, o.dta_date_num, o.dta_date_dys, o.strk_sym, o.strk_yr, s.strk_num, s.exp_sym, s.exp_mo, s.exp_mo_num, s.exp_yr, s.exp_yr_num, s.exp_date, s.exp_date_dys, o.opn, o.hi, o.lw, o.cls, o.vol, o.opn_intrst, o.bd, o.ak INTO TABLE optn_calls_tbl...
4
4469
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) || ' ' || substr(char(v.creationdate),12,2) || ':' || substr(char(v.creationdate),15,2) || ':' || substr(char(v.creationdate),18,2), '')) ||'~' || rtrim(coalesce(substr(char(v.lastmodifieddate),1,4) || '-' ||
2
1708
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, can we disable the RTRIM usage? regards David
7
2561
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 code was developed against MySQL but now I'm getting other common options to work. I'm having trouble with Access - even the sample code (intended for Access) is giving some odd results... My setup: Windows 2000 running Access 2000. Using ODBC to...
9
2669
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 position? void rtrim(char *str) { for( int i=strlen(str)-1; i>= 0; i-- ) {
4
10864
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 anyone show me how to write a query that will update all my rows automatically? I'm using SQL Server 2000.
12
1400
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I trim whitespace - LTRIM/RTRIM/TRIM? ----------------------------------------------------------------------- Using Regular Expressions (JavaScript 1.2/JScript 3+) : String.prototype.lTrim = function() { return this.replace(/^\s+/,'');
0
9605
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10392
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10403
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10136
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9208
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5555
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5693
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3868
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3020
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.