How to change the table owner in Sql Server

Use the sp_changeobjectowner stored procedure.

Synstax:

sp_changeobjectowner ‘OldUser.tableName’, ‘NewUser’

Example

In Domain User

  1. sp_changeobjectowner '[Domain\Username].[tblTableProperty]', 'dbo'

Local User

  1. sp_changeobjectowner '[Username].[tblTableProperty]', 'dbo'

, ,

  1. No comments yet.
(will not be published)
Submit Comment

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Subscribe to comments feed
  1. No trackbacks yet.

SetPageWidth