Q:

Error occurred while connecting to SQL Server 2012: Cannot open user database. Login failed. (Microsoft SQL Server, Error: 4064)

I unknowingly deleted SA user from the SQL Server 2012. Now i cannot be able to connect to the sever. It shows an error : 
Cannot open user database. Login failed. Login failed for the user 'username'.(Microsoft SQL Server, Error: 4064)
Now i don't know what to do?
Help me please
Thanks

A:

When ever get this error,we have to create a new user with server authentication to connect the data base
We can create login for data base under security tab-->create new login under it

