I\'m creating new login in SQL Server 2008 with following sql script:
CREATE LOGIN [xyz] WITH PASSWORD=\'xyz\',
DEFAULT_DATABASE=[master], DEFAULT_LA
I tried most of the solution but was not able to solve it until I found this URL which says to do the following:
Open SQL Server Management Studio and run the these queries:
sp_configure 'show advanced options', 1;
go
reconfigure
go
sp_configure 'user connections', 0
go
reconfigure
go
The reason why we got this error is that the user connections was reset to 1, so only one user was able to connect with the SQL server. just a simple query worked for. I hope this will work for others as well.