Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Need to call a batch file from a remote server Expand / Collapse
Author
Message
Posted Wednesday, October 10, 2012 1:08 PM


SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Friday, August 1, 2014 2:09 PM
Points: 251, Visits: 224
Hey guys,

I'm creating a SSIS package and one of the first steps is to stop services on a remote server so I created a batch file on the remote server (NET STOP blah blah...) but now I need a way of calling this file. Any help?
Post #1371087
Posted Wednesday, October 10, 2012 1:37 PM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Yesterday @ 1:24 PM
Points: 12,906, Visits: 31,984
it's been a while since i sued it but PSEXEC from the PSTools suite is designed for executing things on a remote system...there might be some permissions issues if you are trying to use it via tSQL, but that's one possibility.:
http://technet.microsoft.com/en-us/sysinternals/bb896649.aspx


Lowell

--There is no spoon, and there's no default ORDER BY in sql server either.
Actually, Common Sense is so rare, it should be considered a Superpower. --my son
Post #1371096
Posted Thursday, October 11, 2012 1:08 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 2:22 AM
Points: 5,035, Visits: 11,773
Yes, this is harder than you might think. PSEXEC is what I have used in the past.


Help us to help you. For better, quicker and more-focused answers to your questions, consider following the advice in this link.

When you ask a question (and please do ask a question: "My T-SQL does not work" just doesn't cut it), please provide enough information for us to understand its context.
Post #1371235
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse