You are here: Re: Using sql to execute a batch file, xp_cmdshell « MsSQL Server « IT news, forums, messages
Re: Using sql to execute a batch file, xp_cmdshell

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация