Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 xp_fileexist - permission

Author  Topic 

AgaK
Yak Posting Veteran

86 Posts

Posted - 2010-03-12 : 15:23:41
Hi,

Is it possible to execute xp_fileexist with a SQL login without granting sys admin access to the SQL login?

With execute access on xp_fileexist it doesn’t return the correct result.

Thank you

AK

Bustaz Kool
Master Smack Fu Yak Hacker

1834 Posts

Posted - 2010-03-12 : 17:52:37
Per Microsoft:

"If the calling user is ‘sa’ this Stored Procedure is executed in the context of
the SQL Server system account. In all other cases the Stored Procedure will
be executed in the context of the calling user (i.e. the Stored Procedure will
impersonate the user). This impersonation will fail for the case that a SQL
login is used and an empty set will be returned."

So it sounds like you can have a non-sysadmin use the procedure but only if they are using integrated security.

=======================================
There are no passengers on spaceship earth. We are all crew. -Marshall McLuhan, educator and philosopher (1911-1980)
Go to Top of Page
   

- Advertisement -