November 11, 2011 at 10:13 am
hi
ok i found it under database but in different schema,how to change schema to dbo
November 11, 2011 at 10:18 am
ok i found it under database but in different schema,how to change schema to dbo
Did you miss it last time?
If ALTER works, good else recreate it with new SCHEMA NAME.
November 11, 2011 at 10:19 am
sp_changeobjectowner 'wrongschema.procname','dbo'
Lowell
November 11, 2011 at 10:21 am
daveriya (11/11/2011)
hiok i found it under database but in different schema,how to change schema to dbo
DROP and recreate (and specify the schema) or use ALTER SCHEMA to transfer the object.
ALTER Procedure won't work and sp_changeobjectowner is deprecated SQL 2000 syntax that shouldn't be used any longer
The Alter Schema syntax would be
ALTER SCHEMA dbo TRANSFER object::<current schema name>.<procedurename>
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
November 11, 2011 at 11:23 am
thanks everybody,my prob is solved now
Viewing 5 posts - 16 through 19 (of 19 total)
You must be logged in to reply to this topic. Login to reply