473,406 Members | 2,387 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,406 software developers and data experts.

Migration toolkit question ....

We ran Migration toolkit to look into the possibility of migrating
from SYBASE to UDB.

The following statement in SYBASE:
INSERT INTO GEST_TP (
GES_D,
PC_N,
IPD
)
VALUES (
@GES_D,
@PC_N,
@IPD
)

has been translated to the following on UDB:

INSERT INTO GEST_TP(GES_D, PC_N, IPD)
VALUES (v_GES_D, v_PC_N, SYB.rtrim_on_insert(v_IPD));

Does anyone know what "SYB.rtrim_on_insert" is supposed to do? Does
not look like a UDB function either.

Infact, there are several other "SYB." type functions that are
generated in the script (such as SYB.empty_to_null, SYB.substring
etc.). Any ideas what these are?

TIA
Raquel.
Nov 12 '05 #1
2 1909
Raquel,

SYB fucntions are functions provided by MTK to match non-standard SQL
pehaiour from Sybase.
I imagine that Syabse removes trailing blancs when inserting a VARCHAR
column.
DB2 does not. Since MTK cannot know whether that matters for your
application it throws in the extra function.
empty_to_null() will replace an empty string '' with a NULL. Again a non
standard behaviour of Sybase that DB2 emulates.
Presumably there are alos soem differences with substr() (i don't know
what they are).
In general MTK tries its best to ensure emulation of the source system.
After MTK is done and you have verified corrected you should take a look
at the code and remove unnecessay functions using your knowledge of the app.
These functions are a major cause of performance degradation on migration.

Cheers
Serge

--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Nov 12 '05 #2
In article <cd*********@hanover.torolab.ibm.com>, Serge Rielau
(sr*****@ca.eye-be-em.com) says...
Raquel,

SYB fucntions are functions provided by MTK to match non-standard SQL
pehaiour from Sybase.
I imagine that Syabse removes trailing blancs when inserting a VARCHAR
column.
DB2 does not. Since MTK cannot know whether that matters for your
application it throws in the extra function.
empty_to_null() will replace an empty string '' with a NULL. Again a non
standard behaviour of Sybase that DB2 emulates.
Presumably there are alos soem differences with substr() (i don't know
what they are).
In general MTK tries its best to ensure emulation of the source system.
After MTK is done and you have verified corrected you should take a look
at the code and remove unnecessay functions using your knowledge of the app.
These functions are a major cause of performance degradation on migration.

Cheers
Serge


It looks like it's onion time again :)
Nov 12 '05 #3

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

Similar topics

0
by: Filipe Lima | last post by:
Hello, I'd like an opinion on the following.... I have a mid sized application that is very critical, meaning that it can't stop. This app is built on VB6. It has only one layer. No Data,...
32
by: cat_dog_ass | last post by:
I am used to programming in DOS mode via Borland C++. I would now like to create programs for the Windows envirinment. Is it absoultely necessary to use Visual C++ to do this? Are there other tools...
6
by: Dave | last post by:
Hi We need to migratedata for about 300 tables from MS SQL server database to Linux DB2 V8.1. Total size of all 300 tables is @ 3 GB. We have converted tables DDL using IBM migration tool...
2
by: _link98 | last post by:
Does IBM publish a complete list of features (of Oracle) which the IBM migration toolkit does *not* convert? The docs seem rather vague. For example: 1. What support for the oracle...
1
by: rob | last post by:
Dear All, I have a very small test project to convert asp to asp.net using the Microsoft/Artisan ASP to ASP.NET Migration Assistant...
9
by: Troels Arvin | last post by:
At work, some people have found IBM's Migration Toolkit (MTK) to be a nice tool for copying data from one table (in another DBMS product) to DB2. Now, they want to do the same thing from one DB2...
2
by: dunleav1 | last post by:
Is there a db2 tool or utility that will map Oracle structures and data to DB2? For instance, Microsoft has a tool called "Microsoft Sql Server Migration Assistant for Oracle". The tool basically...
1
by: Christian Welzel | last post by:
Hi there, i currently evaluating db2 express-c and therefor i wanted to migrate my current database from mysql5 to the express-c... i didn't get it working with mysqldump, and finally found the...
8
by: Tomasz J | last post by:
Hello developers, After migrating my web project application (using the old model) to .Net Framework 3.5 and Ajax Control Toolkit release 20820 the Accordion control no longer works correctly....
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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...
0
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,...

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.