|   | ![]() |
|
|
How can I change the owner of
an object? With SQL 7.0 there is a stored-procedure (sp_changeobjectowner) to do this, however under SQL 6.5 and earlier there is no supported method to do this. (With 7.0 the sp doesn't work for user-defined types so you'll have to use the direct method). It can be achieved by directly addressing and updating the system table concerned though.
(The last step is necessary as portions of system tables are kept in memory by SQL
Server, and the only way to force these to update is to recycle SQL Server) |
All content on this site, except where noted, represents an original work of Michael R. Hotek and is protected by applicable copyright laws. The SQL Server FAQ is the sole work of Neil Pike. No page, portion of a page, or download may be used for commercial purposes in whole or in part without the express, written permission of the applicable author.