Hi, I have given a user db_datareader owned_schema and now i what to change it to db_datawriter ,but unable to change because db_datareader is in disabled status , ihave given through SSMS. Can any one please let me known the procedure to change the owned schema. Thanks Koteswar Rao
You can also use the TSQL as per BOL USE AdventureWorks; GO CREATE TYPE Production.TestType FROM [varchar](10) NOT NULL ; GO -- Check the type owner SELECT sys.types.name, sys.types.schema_id, sys.schemas.name FROM sys.types JOIN sys.schemas ON sys.types.schema_id = sys.schemas.schema_id WHERE sys.types.name = 'TestType' ; GO -- Change the type to the Person schema ALTER SCHEMA Person TRANSFER type:roduction.TestType ; GO -- Check the type owner SELECT sys.types.name, sys.types.schema_id, sys.schemas.name FROM sys.types JOIN sys.schemas ON sys.types.schema_id = sys.schemas.schema_id WHERE sys.types.name = 'TestType' ; GO