{ character (open curly bracket) causes failed login attempts



It seems like SQL Server's DSN/login/connection methods choke if a user's SQL
Logon password begins with an "open curly bracket character" ( { ).

Although it correctly and accurately sets the SQL password to the specified
value (as verified using the undocumented sp_pwdcompare() SQL function),
attempts to login the SQL server fail when using this password. This has
been tested by attempting to connect using an Inhouse application , MS Query
Analyzer and MS Enterprise Manager. It seems this is related to how the
connection string is being built.

I checked, but could not locate any Microsoft (or other) documentation on
this finding. Has anyone else ever encountered this? I considered a "patch"
to sp_password() to fail if the leading character is a '{', but there's got
to be some better solution.


To Reproduce
----------------

1) Open Query Analyzer (QA), connected as 'sa'
2) Change a valid user's password to '{test' (I used the login ID 'allen'
on one of our servers)
e.g. sp_password NULL, '{test', 'allen'
3) Connect to the server using Query Analyzer and that login ID and password

You will get an error:

Unable to connect to server <servername>:
[Microsoft][ODBC SQL Server Driver]Neither DSN nor SERVER keyword supplied

.



Relevant Pages

  • Re: SQL User SID format?
    ... When you move databases to another server, you can remap users to logins ... capability to remap a user to a login with new ALTER USER syntax - I ... The new ALTER USER syntax works for remapping both SQL and Windows ... this means you already have access to a SID from the syslogins catalog; ...
    (microsoft.public.sqlserver.security)
  • Re: SQL Server on XP Home Network
    ... The sa account is the system administrator "God" account witihin SQL ... This account is a SQL-Server login. ... You might be able to use Enterprise Manager to go in and create a new SQL ... Select the "SQL Server Authentication" ...
    (microsoft.public.sqlserver.setup)
  • Re: SQL Server 2000 Replication Agents Credentials
    ... the snapshot agent IS using sql login to connect to the ... The pull distribution agent IS using sql ... Do you know where SQL Server 2000 saves the sql ...
    (microsoft.public.sqlserver.replication)
  • Re: Can you update/process AS2005 cube with AMO and SQL authentica
    ... We have cases where the AS server and the Data Source server reside on 2 ... The data source is properly secured using SQL Server ... login and no serious client will accept the login with no password. ...
    (microsoft.public.sqlserver.olap)
  • RE: Fulltext failure on a 2 node cluster
    ... Server full-text search resource online: "SQL Cluster Resource 'Full Text' ...
    (microsoft.public.sqlserver.clustering)