Forum Discussion

ACarrera1971's avatar
ACarrera1971
Copper Contributor
Jun 09, 2022

SQL Server fails login with password having semicolon

Hi,    It looks like that SQL Server is not able to login when the password used contains a semicolon. I was able to create/update a user to the server defining the password with semicolon in it, h...
  • Ronen_Ariely's avatar
    Jun 10, 2022

    Hi ACarrera1971 

    It can help if you provide us with the queries you run, because the mind reading ability of some of us does not work well. When you have an issue, then first of all you should describe what you did and as possible provide the tool to reproduce the case.

     

    In general BY DEFAULT there is no issue in using semicolon in password. You can use any UNICODE character as well and not just English - Note that "can" DONT NOT mean "should"!

     

     

    USE master
    GO
    CREATE LOGIN [RonenרונןWithsemicolon;] WITH PASSWORD = '[PassWithsemicolon;AndHebrewעברית]';
    GO

     

    The above code uses semicolon and Hebrew characters and it run without any issue.

     

    Note! It is highly recommend NOT to use special characters in the LOGIN name, but for password it is a good idea to do so, with that said using non-English characters is not recommended if you cannot confirm that you will have option to use such chars anyway and everywhere. 

Share