Connecting to SQL2008 DB's using ODBC

  • Have you checked to see if the VIEW ANY DATABASE permision has been denied or if any other permissions you may take for granted have been denied to the particular user?

    - Tim Ford, SQL Server MVPhttp://www.sqlcruise.comhttp://www.thesqlagentman.com http://www.linkedin.com/in/timothyford

  • Where would I find the security for 'View any database'?

    This maybe my issue.

  • That was the issue, and is fixed.

  • In Management Studio expand Security\Logins\ Right click on the login in question and select Properties from the pop-up window

    Under the securables tab click Search. Select Server.

    In the window that pops up look for anything selected to get an idea of what rights are granted or revoked.

    Alternately you can use T/SQL:

    SELECT SP.[name], SSP.[permission_name], SSP.[state_desc]

    FROM sys.server_principals SP INNER JOIN sys.server_permissions SSP ON SP.[principal_id] = SSP.[grantee_principal_id]

    WHERE SP.[name] = 'foo'

    Replacing 'foo' with the login name in question.

    SELECT SP.[name], SSP.[permission_name], SSP.[state_desc]

    FROM sys.server_principals SP INNER JOIN sys.server_permissions SSP ON SP.[principal_id] = SSP.[grantee_principal_id]

    WHERE SP.[name] = 'foo'

    - Tim Ford, SQL Server MVPhttp://www.sqlcruise.comhttp://www.thesqlagentman.com http://www.linkedin.com/in/timothyford

  • Thank you Tim that was my issue.

    I was trying to eliminate the sys and schema's from displaying on the tables so the users would not get confused.

    Which I still have not figured out!

Viewing 5 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic. Login to reply