What login is in use?

  • hello,

    I'm using Windows authentication to connect an SQL 2008 R2 SQL server. I've created two logins based upon two different windows groups (these are groups of my domain). Here comes my question: If an user belongs to the two groups, what login it will use by default? Can I specify in the string connection the login that I want to use?

    Thanks for advance

  • Whatever account the user is logged in at the time, will be passed to the SQL Server for authentication by default, with windows authentication (pass through).

    You can of course mask this using a stored connection or odbc or similar, and specify a connection account.

  • This will also probably help answer your query in regards to the 2 AD groups;

    http://www.sqlservercentral.com/Forums/Topic368179-6-1.aspx#bm951922

    The user will normally retain the highest level of permission I believe, in that scenario, although it is best-practise to avoid any permission conflicts.

  • Ok, thank you for the help.

Viewing 4 posts - 1 through 3 (of 3 total)

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