Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > Sybase > How to extend the length of user defined datatype

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-04-07, 05:59
bonson bonson is offline
Registered User
 
Join Date: Jul 2006
Posts: 13
How to extend the length of user defined datatype

Hi all,

I have a user defined datatype which is mapped to char(15). After the system running for several months, it is found that the length of this type should be extended. But as there is several tables using this type, it is not a good idea to drop this datatype and re-create it. Would you share your experience to handle this case please? Many thanks
Reply With Quote
  #2 (permalink)  
Old 12-05-07, 06:28
trvishi trvishi is offline
Registered User
 
Join Date: Sep 2003
Location: Switzerland
Posts: 371
Hmm interesting. Im not big at sql, but i looked it up and there doesnt seem to be an option.

you can't modify an exisitng user defined datatype, you can create a new user defined datatype and then use the 'alter table' command to change the datatype definition of a column from one datatype to another (presumably from the old user defined datatypre to the new one).

Assuming you are just using the same datatype and its bigger ofcourse.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On