Re: Alter schema on user-defined data type?
- From: Erland Sommarskog <esquel@xxxxxxxxxxxxx>
- Date: Sat, 12 Apr 2008 02:16:39 -0700
David Walker (none@xxxxxxxx) writes:
SQL 2005: How do I alter the schema on a user-defined data type? Is this
possible?
When I try this:
Alter Schema NewSchemaName Transfer DescriptionType;
It fails with
Cannot find the object 'DescriptionType', because it does not exist or you
do not have permission.
While not documented, this seems to work:
Alter Schema NewSchemaName Transfer type::DescriptionType;
This syntax is available with other commands like ALTER AUTHORIZATION,
in which case it's also documented.
--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.
- Follow-Ups:
- Re: Alter schema on user-defined data type?
- From: David Walker
- Re: Alter schema on user-defined data type?
- References:
- Alter schema on user-defined data type?
- From: David Walker
- Alter schema on user-defined data type?
- Prev by Date: Re: Explicit permissions listed twice
- Next by Date: RE: Problem with SQL trusted connection.
- Previous by thread: Alter schema on user-defined data type?
- Next by thread: Re: Alter schema on user-defined data type?
- Index(es):