A connection was successfully established with the server, but then an error occurred during the login process. (Error Number: 233)

后端 未结 14 1523
没有蜡笔的小新
没有蜡笔的小新 2020-12-05 13:03

I am having error while connecting to SQL Server:

Details in Stack Trace are:

===================================

Cannot connect to ServerN         


        
相关标签:
14条回答
  • 2020-12-05 13:26

    You can also get this error, somewhat unhelpfully, if the database name specified in the connection string doesn't exist. Check your Db Name carefully!

    0 讨论(0)
  • 2020-12-05 13:30

    SQL 2016 solution/workaround here (could also work in earlier versions). This may not work or be appropriate in every situation, but I resolved the error by granting my database user read/write schema ownership as follows in SSMS:

    Database > Security > Users > User > Properties > Owned Schemas > check db_datareader and db_datawriter.

    0 讨论(0)
提交回复
热议问题