Morning,
I have come across a bizarre problem in SQL Server 2005 that has me stumped.
I have created a SQL Server Login (ReportReader) that has no server level roles assigned but does have the db_datareader role on a particular database. (The purpose of this account is to eventually be used via Reporting Services)
When I execute a particular query (that accesses a user database) with this login it produces different results to those when I use the sa login. The query is identical.
I tried to troubleshoot this scenario for a good few hours, I even created another SQL Server login “TEST” with exactly the same permissions as ReportReader but this produces the expected results when the query is run.
Has anyone come across this before and can you offer some advice as to how I can troubleshoot this? Yes I can create another SQL Server Login to get around the issue but I want to understand the problem and how it has arisen.
Any help is greatly appreciated.
I have come across a bizarre problem in SQL Server 2005 that has me stumped.
I have created a SQL Server Login (ReportReader) that has no server level roles assigned but does have the db_datareader role on a particular database. (The purpose of this account is to eventually be used via Reporting Services)
When I execute a particular query (that accesses a user database) with this login it produces different results to those when I use the sa login. The query is identical.
I tried to troubleshoot this scenario for a good few hours, I even created another SQL Server login “TEST” with exactly the same permissions as ReportReader but this produces the expected results when the query is run.
Has anyone come across this before and can you offer some advice as to how I can troubleshoot this? Yes I can create another SQL Server Login to get around the issue but I want to understand the problem and how it has arisen.
Any help is greatly appreciated.