If this is a SQL Server-based login and you restored the database to DIFFERENT SQL Server than where it was originally included, then the answer to paleontology is a way to transfer logins. If the source SQL Server is not available, you can create a SQL Server account on the new SQL Server and use sp_change_users_login to synchronize the login and user. The book "Internet Books" describes how to do this.
If the login was a Windows domain account and you changed the SQL servers, you just need to add the login to the new SQL Server, and the login and user will be synchronized. The SID in SQL Srver for Windows-based login comes from the SID of the account at the server or domain level.
If you return to the same SQL Server, check to see if the default login database is valid. Logon is stored in the main database, so restoring the database for the application should not have affected this. That is, if you have not recently changed the login used to connect.
Otherwise, if you could provide more details about how you log in to SQL Server and the exact error message, this can help diagnose the problem.
source share