How to Delete "SQL Server Authentication" dropdown in Authentication tab in SSMS(SQL SERVER MANAGEMENT STUDIO)

sourav dutta 231 Reputation points
2023-07-13T12:00:14.5333333+00:00

Hello,

Is there any option to delete the "SQL Server Authentication" dropdown in SSMS(SQL SERVER MANAGEMENT STUDIO).

Please find the screen shot attached.

SSMS

Windows for business | Windows Server | User experience | Other
SQL Server | Other
{count} votes

Answer accepted by question author
  1. Erland Sommarskog 128.7K Reputation points MVP Volunteer Moderator
    2023-07-13T13:04:40.9+00:00

    We install SQL Server in mixed mode. SQL authentication is used in application level. For security perspective I want to provide only windows authentication to all developers with limited access. The concern is developer also have the application server access and it is easy to them to see the database userid and password from application config file. So, if "SQL Server Authentication" dropdown is deleted then they can only able to login through "windows authentication".

    First, no, you cannot remove that from the dropdown. And furthermore, if it would be possible, it would be something that is done locally, nothing you can enforce from SQL Server. And even if you could, developers could write their own application (ab)using that username and password.

    What you possibly could to is to create a logon trigger, that only accepts logons from the application account from the IP address of the application server. But if developers have access to the application server, guess what, they can still log in.

    Let's look at this from another way: why would it be a problem if developers log in with the application login? In a proper environment, I would more or less expect developers to have higher permissions than the application login. For instance, they are likely to have access to create stored procedures. The application login, on the other hand...Ideally it should only have permission to run stored procedures, nothing more. But not all applications use stored procedures exclusively, and there may be no alternative than to grant SELECT permissions and maybe also INSERT, UPDATE and DELETE permissions to the application login. But that's where it stops. You should never grant more. If the application needs to do more advanced operations, this should be handled by packaging the permissions in signed stored procedures that carefully only applies the permission for the exact operation.


1 additional answer

Sort by: Most helpful
  1. Olaf Helper 47,586 Reputation points
    2023-07-13T12:13:02.0733333+00:00

    You can't modify the pre-given authentification modes.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.