How to change database schema to DBO

SELECT 'EXEC(''sp_changeobjectowner @objname = '''''+
ltrim( + '.' + ltrim( + ''''''
+ ', @newowner = dbo'')'
FROM sysobjects s,
sysusers u
WHERE s.uid = u.uid
AND 'dbo'
AND xtype in ('V', 'P', 'U')
order by

Dipesh Monday 17 June 2013 - 8:48 pm | | Default
Used tags: , , ,

No comments

(optional field)
(optional field)

Comment moderation is enabled on this site. This means that your comment will not be visible until it has been approved by an editor.

Remember personal info?
Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.