Question

I have my type "x" of type varchar(50). How can I alter it to varchar(100)? It seems I can't!

Was it helpful?

Solution

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.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top