Re: SQL 2005, sysobjects and security



Marius Horak (nobody@xxxxxx) writes:
We have a reporting tool that needs to access sysobjects.
This tool is used by most of our users but now it does not work on SQL
Server 2005 as the security is different. Not even sa can see
sysobjects. What should I do to allow sa (or any other user) to access
sysobjects?

Security is indeed different. Users no longer see all metadata by default,
only to objects they have access to.

If you users need to acecss metadata through the reporting tool, you
can address with this command

GRANT VIEW DEFINITION TO <user>

Where <user> can be an individual user, a role or "public" to include
everyone, just as you see fit.

All users can still access sysobjects, which no longer is a table, but a
compatibility view. The new system tables are indeed invisible to everyone,
including sa.

So when you say that sa can't access sysobjects, I need to ask how you
have arrived at this conclusion, and particular what error messages you
see, as well which commands that yielded those messages.


--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.



Relevant Pages

  • Re: Borland is neglecting Delphi for Win32 badly
    ... Today in SQL ... Server 2000 you can write server extensions as COM objects and call them via ... SQLCLR allows CLR ... The security benefits are also tremendous and we could discuss for a long ...
    (borland.public.delphi.non-technical)
  • Re: SQL Permissions
    ... In advanced security the site server machine account has to be a member ... of the site server to sql connection group. ...
    (microsoft.public.sms.setup)
  • RE: Users Logins
    ... On the sql ... server machine, go to start, programs, SQL Server, then choose the icon for ... For information about the Microsoft Strategic Technology ... Protection Program and to order your FREE Security Tool Kit, ...
    (microsoft.public.sqlserver.security)
  • Re: SQL permission problem when installing SMS2003 in 2003 network
    ... Scenarios and Procedures for SMS 2003: Security ... >> I may need to put this post in an SQL newsgroup, ... >> install SMS2003 on ServerB. ... >> "Either the SQL Server is in a Windows NT 4 domain or this computer's ...
    (microsoft.public.sms.setup)
  • Re: Web and SQL Security
    ... If SQL server is the same box of IIS, you may consider disable TCP and ... named pipes protocals so that it is not possible to access SQL server from ... | Thread-Topic: Web and SQL Security ...
    (microsoft.public.sqlserver.security)