Permissions issue.

  • Error:

    System.Data.SqlClient.SqlException: Cannot open database "WebData" requested by the login. The login failed.

    Now this should be simple...

    A) checked DB Logins and login SFCC\Staff and Faculty exists and has permissions to the DB Server.

    B) check actual DB permissions: user is set to DB Reader permissions, and execute on several of the stored procedures.

    so what am I missing? feeling I'm missing something small stupid (on my part)....

  • This login is linked to a user in that database, correct? Verify that. The name being the same does not mean they are linked.

  • The users may be orphaned - did you recently restore the database from a backup?

    Run this query -

    EXEC sp_change_users_login 'Report'

    If the logins show up on the list, run

    EXEC sp_change_users_login 'Auto_fix', <username_to_fix>

    and see if that resolves the issue.

  • yes the Staff and Faculty database user is linked to the SFCC\Staff and Faculty DB Server User.

  • exec sp_change_users_login 'Report'

    generates an empty list of Username/UserSID

  • no restore.

  • wondering if it was partially AD. I can get in but can't select out of a specific table. this account has datareader permissions.... can't read?

  • Well, the database could still have per-table permission settings - You might wanna check that. Also, is there more than one schema at play here?

Viewing 8 posts - 1 through 7 (of 7 total)

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