If your default database other than master, You need to revert to master. More commonly this issues seen when the default database will be offline or not exists.
Login to Microsoft SQL Server with windows authentication.Enable SQL Server and windows authentication.Microsoft SQL Server error 233 Solution for Microsoft SQL Server error 233