473,386 Members | 1,819 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,386 software developers and data experts.

Create UDT resulted SQL0107N exception

Hi , I am new to DB2. I would be glad if you can help me on this
following problem :
When i create a structured type , the following exception is thrown :
SQL0107N The name "ADMINISTRATOR" is too long. The maximum length is
"8".

But this exeption was not thrown when I create tables or UDF.
Do I have to create another user with name lesser than 9 letters in
order to create UDT?

Jan 29 '07 #1
4 2430
ev*****@gmail.com wrote:
Hi , I am new to DB2. I would be glad if you can help me on this
following problem :
When i create a structured type , the following exception is thrown :
SQL0107N The name "ADMINISTRATOR" is too long. The maximum length is
"8".

But this exeption was not thrown when I create tables or UDF.
Do I have to create another user with name lesser than 9 letters in
order to create UDT?
That's true for older versions of DB2. Reason was in a limitation in
SQLDA's with structured types. Now what I do not know is whether that is
lifted in DB2 9.
It is in vnext which is what I just tested.

Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Jan 29 '07 #2


On Jan 29, 12:50 pm, evie...@gmail.com wrote:
Hi , I am new to DB2. I would be glad if you can help me on this
following problem :
When i create a structured type , the following exception is thrown :
SQL0107N The name "ADMINISTRATOR" is too long. The maximum length is
"8".

But this exeption was not thrown when I create tables or UDF.
Do I have to create another user with name lesser than 9 letters in
order to create UDT?
That is xchema name. You can explicitly specify it. It is not
necessary to CREATE SCHEMA beforehand.
Ex:
CREATE TYPE MyType.MyStructure AS ...

Jan 29 '07 #3
Serge Rielau wrote:
ev*****@gmail.com wrote:
>Hi , I am new to DB2. I would be glad if you can help me on this
following problem :
When i create a structured type , the following exception is thrown :
SQL0107N The name "ADMINISTRATOR" is too long. The maximum length is
"8".

But this exeption was not thrown when I create tables or UDF.
Do I have to create another user with name lesser than 9 letters in
order to create UDT?
That's true for older versions of DB2. Reason was in a limitation in
SQLDA's with structured types. Now what I do not know is whether that is
lifted in DB2 9.
It is in vnext which is what I just tested.
Still the same in V8 and V9 (see Note in c or 2, respectively):
http://publib.boulder.ibm.com/infoce...n/r0001029.htm
http://publib.boulder.ibm.com/infoce...c/r0001029.htm

--
Knut Stolze
DB2 z/OS Utilities Development
IBM Germany
Jan 29 '07 #4
I am using db2 v9.1.
I am able to create UDT with a shorter length schema name.
Thanks for your information!

Jan 30 '07 #5

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

Similar topics

3
by: MLH | last post by:
I was running the following code while logged in as a user belonging only to the Users group. Set usrNew = .CreateUser(Me!UserID) 'The user ID is in a control on the form usrNew.PID =...
6
by: mg | last post by:
The code below creates an ImageButton when a LinkButton is clicked. How can I create an event handler for this ImageButton which can't be seen in Design? private void...
9
by: Allan Ebdrup | last post by:
Hi I'm having a discussion with another programmer about a best practice for thrownig exceptions. I want to create a rich class library with many different exception classes in their own...
9
by: Marc Miller | last post by:
Hi all, I have 2 dev. machines, the 1st is Win 2000 with .NET 7.0 and the 2nd is XP Pro with .NET 2003. My Web Server is Win 2000 Server with IIS 5.0. I can create a new project on my test...
10
by: Zack Sessions | last post by:
Has anyone tried to create a SQL7 view using the CREATE VIEW command and ADO.NET? If so, is there a trick in trapping a SQL error when trying to create the view? I have a VB.NET app that, amoung...
3
by: ghat12 | last post by:
Hi, I have created a form containing 5 textfields/combo boxes and a command button to conduct searches for matching records. My results are currently displayed as a separate datasheet which is...
23
by: sandy | last post by:
I need (okay, I want) to make a dynamic array of my class 'Directory', within my class Directory (Can you already smell disaster?) Each Directory can have subdirectories so I thought to put these...
2
by: Diego F. | last post by:
Hello. I'm having an error in a database access. I'm just making a select query to a table and using a DataAdapter to Fill a DataSet. Sometimes it works and sometimes it results in an exception:...
1
by: thebigsquid | last post by:
hi, its me again, so this software obviously has serious problems. now i'm getting this error message when i try to access any of it! any ideas much appreciated thanks the big squid An...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.