|
When a non-sysadmin fixed server role member (non-DBA user) creates a new database object in the query analyzer or program (asp, vb, etc.), the owner of the database object is the current logged-in user. If the program is changed to run as a DBA or other identity the next time, it will prompt that the database object cannot be found.
For example: If the user Andrew is not a member of the fixed server role sysadmin, but only a member of the fixed database role db_owner, and creates the table T1, then T1 belongs to Andrew and is limited to Andrew.T1. Other users need to add the owner in front of the table when using SQL statements in the query analyzer or program to access the table:
select * from Andrew.T1
But not directly
select * from T1
Otherwise, you will be prompted that the table object cannot be found.
In the [Enterprise Console] window-[Tree] sub-window-[Security] sub-tree-[Login] item, set the default database of the login user you use to the database you use.
Server role: system administrator cannot be checked, otherwise the owner must be added when querying the table. (Select * from Andrew.T1) |
|