I have my type "x" of type varchar(50). How can I alter it to varchar(100)? It seems I can't!
+3
A:
you can't. what you can do is
- script all objects that contain the type using OBJECT_DEFINITION.
- drop them.
- recreate type with new length
- recreate the objects.
Mladen Prajdic
2008-12-08 10:33:17
Correct. There is "CREATE TYPE" and "DROP TYPE" but no "ALTER TYPE".
gbn
2008-12-09 18:45:14
You can vote for "ALTER TYPE" syntax on https://connect.microsoft.com/SQLServer/feedback/details/319134/msft-mso-support-alter-type
vasek7
2010-07-04 16:12:11