Ask a Question related to IBM DB2, Design and Development.
-
James Hong #1
Help need to porting from MS SQL to DB2 8.1
Dear All,
I porting my MS SQL stucture and those UDF to db2 v8.1.
I using the IBM Migation tools to do it, all the stucture are migrate
success
(changing the script a bit on data type), but i fail to move some of the UDF
because those UDF using the MS SQL system function that not exist in db2.
Do any one know any URL can i find those mapping on system function?
My program and UDF use a lot the MS SQL function STR(Int, MaxLan,
DecimalDigit)
Do any one know how to script this function in DB2.
Note : Maxlan and DecimalDigit are optional parameter.
--
Best Regards,
James Hong
James Hong Guest
-
Porting from CS to 10... can it work?
Hello Everyone, I am a college student, and I recently purchased Adobe illustrator CS, so that I can work on my projects at my house (I commute).... -
porting to windows NT
Howdy: I want to move my perl script from Linux to Windows NT. The Linux script connects to Oracle via the DBI modules I have installed. I want... -
porting to pc
i read the many posts saying i need to have a pc version of director in order to create a projector. is it possible to port the project from mac to... -
Porting code to Mac
Hi, I've encountered a few problems porting some Windows code over to the Mac, and I'm wonderring if someone could help me with one or more of these... -
Porting datbase from Oracle8i to DB2 UDB v8
Hi, I have some issues to port database from Oracle8i to DB2 UDB v8 on sun solaris 2.8 How can load clob from Oracle to DB2 UDB. -
Mark A #2
Re: Help need to porting from MS SQL to DB2 8.1
"James Hong" <jhcg@onebox.com> wrote in message
news:3f690d27$1_2@news.tm.net.my...UDF> Dear All,
> I porting my MS SQL stucture and those UDF to db2 v8.1.
> I using the IBM Migation tools to do it, all the stucture are migrate
> success
> (changing the script a bit on data type), but i fail to move some of theUsually the best way to get a response on the this forum is to exactly> because those UDF using the MS SQL system function that not exist in db2.
> Do any one know any URL can i find those mapping on system function?
> My program and UDF use a lot the MS SQL function STR(Int, MaxLan,
> DecimalDigit)
> Do any one know how to script this function in DB2.
>
> Note : Maxlan and DecimalDigit are optional parameter.
> --
> Best Regards,
> James Hong
>
explain how the MS SQL function works and then ask if there is a similar
function in DB2. In this way, those who don't know about MS SQL Server
functions can help you.
Also, you should check out the manuals (can be downloaded from the IBM
site).
You might also check out this porting guide, but don't know if it answers
this specific question:
[url]http://www7b.boulder.ibm.com/dmdd/library/techarticle/0203rada/0203rada.html[/url]
Mark A Guest
-
Mark Yudkin #3
Re: Help need to porting from MS SQL to DB2 8.1
The equivalent to the MS SQL STR function in DB2 is the CHAR function;
however, DB2 doesn't support the MaxLen (not maxlan) parameter. You can
achieve the same effect by wrapping the call to CHAR in a call to INSERT.
"James Hong" <jhcg@onebox.com> wrote in message
news:3f690d27$1_2@news.tm.net.my...UDF> Dear All,
> I porting my MS SQL stucture and those UDF to db2 v8.1.
> I using the IBM Migation tools to do it, all the stucture are migrate
> success
> (changing the script a bit on data type), but i fail to move some of the> because those UDF using the MS SQL system function that not exist in db2.
> Do any one know any URL can i find those mapping on system function?
> My program and UDF use a lot the MS SQL function STR(Int, MaxLan,
> DecimalDigit)
> Do any one know how to script this function in DB2.
>
> Note : Maxlan and DecimalDigit are optional parameter.
> --
> Best Regards,
> James Hong
>
>
Mark Yudkin Guest
-
Blair Adamache #4
Re: Help need to porting from MS SQL to DB2 8.1
Have a look at:
[url]http://www7b.boulder.ibm.com/dmdd/library/techarticle/0303rada/0303rada.html[/url]
Other resources: are here:
[url]https://www6.software.ibm.com/dl/db2_03/migtkt-p[/url]
James Hong wrote:
> Dear All,
> I porting my MS SQL stucture and those UDF to db2 v8.1.
> I using the IBM Migation tools to do it, all the stucture are migrate
> success
> (changing the script a bit on data type), but i fail to move some of the UDF
> because those UDF using the MS SQL system function that not exist in db2.
> Do any one know any URL can i find those mapping on system function?
> My program and UDF use a lot the MS SQL function STR(Int, MaxLan,
> DecimalDigit)
> Do any one know how to script this function in DB2.
>
> Note : Maxlan and DecimalDigit are optional parameter.Blair Adamache Guest
-
Blair Adamache #5
Re: Help need to porting from MS SQL to DB2 8.1
Other samples:
[url]http://www7b.boulder.ibm.com/dmdd/library/samples/db2/0205udfs/index.html[/url]
Blair Adamache wrote:
> Have a look at:
> [url]http://www7b.boulder.ibm.com/dmdd/library/techarticle/0303rada/0303rada.html[/url]
>
>
> Other resources: are here:
> [url]https://www6.software.ibm.com/dl/db2_03/migtkt-p[/url]
>
> James Hong wrote:
>>>> Dear All,
>> I porting my MS SQL stucture and those UDF to db2 v8.1.
>> I using the IBM Migation tools to do it, all the stucture are migrate
>> success
>> (changing the script a bit on data type), but i fail to move some of
>> the UDF
>> because those UDF using the MS SQL system function that not exist in db2.
>> Do any one know any URL can i find those mapping on system function?
>> My program and UDF use a lot the MS SQL function STR(Int, MaxLan,
>> DecimalDigit)
>> Do any one know how to script this function in DB2.
>>
>> Note : Maxlan and DecimalDigit are optional parameter.
>Blair Adamache Guest



Reply With Quote

