denisenkom / go-mssqldb

Microsoft SQL server driver written in go language
BSD 3-Clause "New" or "Revised" License
1.82k stars 499 forks source link

mssql: login error: Cannot open database "1" that was requested by the login. Using the user default database "master" instead. #789

Open sjchoen opened 1 year ago

sjchoen commented 1 year ago

mssql: login error: Cannot open database "1" that was requested by the login. Using the user default database "master" instead.

I can see the text, but it's not actually used as a concatenation instead. Is it a bug? or is it a sqlserver configuration issue? If there is no problem with sqlserver settings, can it be used instead? If I do not enter a database name, the default database is used. If I enter the name of a database that does not exist as part, I see the text above and it does not connect to the default database.

Please let me know if it's a bug or some concept I don't know about.