The SELECT permission on the object 'data' (Database 'xxx', owner 'dbo') is denied.
Solution:
Remove the check box of db_denydatareader from the corresponding user permissions in the database. Many beginners always think that the more database permissions they select, the more permissions they have. This is actually wrong! Db_denydatareader is a denial of access.
User 'sa 'login failed, this user is not associated with a trusted SQL Server connection _ Solution
User 'sa 'Login Failed. This user is not associated with a trusted SQL Server connection. Solution:
When using SQL2005, you can log on normally in Windows Authentication mode, but every time you log on as an SQL Server user, the following message is displayed:
User 'sa 'Login Failed. This user is not associated with a trusted SQL Server connection.
Cause: When SQL2005 is installed, the default authentication mode is Windows. You can modify the Authentication Mode to solve this problem.
Method: log on to the sql2005 management manager in windows Authentication mode, right-click the server name, select properties, and select security on the page. Select two authentication modes for server authentication on the right. don't forget to restart the SQL server service !!