Re: SQL Query return different result for different user



Anhtq,

Is the BUILTIN\Administrators group a sysadmin on your server? If so, then
rights should not be an issue. If not, then try to determine what your
function uses to which the BUILTIN\Administrators have no rights.

The code of your function might suggest why you are having this problem, but
there is nothing inherent to SQL Server to simply explain what you are
seeing. For example:

1. The code builds us a temporary from several selects before returning the
results. One of the intermediate selects needs rights that not all users
have.

2. There is some part of the function that is aware of something about the
logins. For a simple example:

WHERE is_member ('SpecialRole') = 1

RLF

"Anhtq" <Anhtq@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:2C7DCF7F-A9F3-430A-98A7-DFE144860CC3@xxxxxxxxxxxxxxxx
Hi,

I have a query who returns different result for different user.
This query is just a "SELECT" from a view (or a function), like this:

Select * From MyList('12345', '67890')

When I logged in as "sa", it returns > 3000 lines (this is the number
expected)
When I logged in as "BUILTIN\Administrator", it returns only 17 lines !!!

Is there someone who knows how to correct this problem ?

Thanks.



.



Relevant Pages

  • Re: SCW question.
    ... Created a new Server and installed IIS. ... and saw that the default rights for IUSR and IWAM users are there. ... Server to the domain without and GPO's applied...Local Security policy ... rights (which coincides with my Member server GPO settings). ...
    (microsoft.public.windows.server.security)
  • Re: SBS 2003 folder redirection, offline files, ..and more
    ... you log into a shared PC with admin rights and go to Windows Explorer Folder ... documents are redirected to the server. ... without redirection, they wouldn't have been. ...
    (microsoft.public.windows.server.sbs)
  • Re: file rights issue...
    ... Domain Admin has rights to everything so not being able to access the ... The Terminal Server is an entirely different ... of BV we are running uses an SQL DB engine called Pervasive SQL to ... the accounting data on the Windows 2000 server through the pervasive ...
    (microsoft.public.backoffice.smallbiz2000)
  • Re: sbs2003 to (new)server2003 user issue
    ... Meinolf Weber ... This posting is provided "AS IS" with no warranties, and confers no rights. ... sbs server dead sunday night. ... Even if the account in the domain and the local account on the ...
    (microsoft.public.windows.server.active_directory)
  • Re: Using COM OutProc server on WinCE
    ... Microsoft Corporation ... This posting is provided "AS IS" with no warranties, and confers no rights. ... inproc server should be OK on WM5.0 ... nk.exe (kernel process) and you can't popup UI from nk.exe in CE 6.0. ...
    (microsoft.public.windowsce.app.development)