|
Posted by Erland Sommarskog on 08/15/07 21:21
mcolson (mcolson1590@gmail.com) writes:
> Sql is setup as a Network Service. I could change it to a local user,
> but would prefer not to. I'm trying to setup a credentials named
> "Matt". In here I have entered the login and password for an accepted
> user of the file. How do I tell the stored procedure to use this
> credential when I am running the bath file?
Have a look at xp_cmdshell and sp_xp_cmdshell_proxy_account in Books
Online. By setting up a proxy account and not run as sysadmin, you may
be able to work around the issue.
--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
Navigation:
[Reply to this message]
|