May 3, 2008 at 5:20 am
Hi,
Right click on a table and select properties, there's a schema property in the general tab; what does that mean and how it can be set to different schemes in one DB.
Thanks,
May 3, 2008 at 10:07 am
In "old" SQL Server 2000, "schema" was actually called "owner". It's the login or role that owns the object. It's assigned when the object is created and defaults to who ever or what ever role you're logged in as at the time of creation. It should normally be explicitly stated in the creation code.
Ownership can be changed post creation using the sp_changeobjectowner system stored procedure. Of course, anything that refers to the changed object (procs, udfs, etc) will also need to be changed. It also removes ALL permissions from the object which, obviously, will need to be reassigned.
Lookup sp_changeobjectowner in Books Online for more information.
--Jeff Moden
Change is inevitable... Change for the better is not.
May 3, 2008 at 10:04 pm
Thank you 🙂
Does it have the same meaning in SQL2005?
May 4, 2008 at 9:08 am
Yes.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply