Re: You are not the owner specified for the object 'INFORMATION_SCHEMA'...

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I created the procedure master.dbo.Table_Estimated_Rows, but am now
trying to change ownership from "dbo" to "INFORMATION_SCHEMA".

Why? INFORMATION_SCHEMA is reserved and should not be used for anything else but what is already in there. That is why MS has these checks to prohibit you from creating stuff in there. Also, you seem to be confusing owner and schema (which were the same thing in 2000, but are separate things as of 2005).

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi


"Eric" <ericbragas@xxxxxxxxx> wrote in message news:a3e36600-807f-4250-aff7-2b328eed022a@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I created the procedure master.dbo.Table_Estimated_Rows, but am now
trying to change ownership from "dbo" to "INFORMATION_SCHEMA". When
trying to execute the following statement, I get the following error.
I'm following advice from a SQL Server Central article (http://
preview.tinyurl.com/mmhcm2) on creating utility procedures, but it
doesn't tell how to resolve this error.

What do I need to do in order for the statement to execute
successfully?

EXEC sp_ChangeObjectOwner 'TABLE_ESTIMATED_ROWS', 'INFORMATION_SCHEMA'

gets the following error:

Msg 2710, Level 16, State 1, Line 1
You are not the owner specified for the object 'INFORMATION_SCHEMA' in
this statement (CREATE, ALTER, TRUNCATE, UPDATE STATISTICS or BULK
INSERT).


.



Relevant Pages

  • Re: Execute Persmission denied on object sp_OACreate
    ... > SQL Server is creating a job behind the scenes. ... > permissions. ... > SA account password and gaining access to the database. ... >>> How can get a user permissions to execute these stored procedures ...
    (microsoft.public.sqlserver.security)
  • RE: exec sp_help_job user account rights
    ... wrapper in which u can call original stored procedure sp_help_job using “WITH ... EXECUTE AS “ clause and then give execute permission of external stored ... Database Administrator, SQL Server 2005 ... the sysadmin fixed role can use sp_help_job to view only the jobs he/she owns. ...
    (microsoft.public.sqlserver.security)
  • Re: SSIS - OLE DB Command - how to retrieve query results ???
    ... my side according to your process, and I managed to execute the task. ... Data Destination: <My SQL Server 2005 Instance>.TestDB ... OLE DB Command: ...
    (microsoft.public.sqlserver.dts)
  • RE: xp_cmdshell, ownership chaining, sql 2000
    ... Cross database ownership chaining enabled ... The procedure is called by a crystal report. ... If I log in to SQL Server through SSMS 2005 using the same user as the ... I get the following error when attempting to execute ...
    (microsoft.public.sqlserver.programming)
  • Re: 3 Simple Security SQL Statements
    ... Kalen Delaney, SQL Server MVP ... window and execute. ... Builds a list of text commands. ... EXEC sp_addrolemember 'WebUsersRole', 'WebUser' ...
    (microsoft.public.sqlserver.security)