Microsoft SQL Server
--
Questions
--
Followers
Top Experts
@echo off
REM
dtsrun /server1 /Uuserhere /Ppasswordhere /NDTSpackagehere
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
file.bat is on Server1
SQL Server and DTS Package are on Server1
file.bat is being run remotely from Server2
Sorry if my initial post wasn't very clear.
Thanks.
The bat file should be able to be run from any pc within the network that has the SQL Client Tools installed.






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
But the bat file is executed locally on server2
So the DTSRUN.exe must exists on server2 in order to be able to run.
It's like having on server1 installed the Visual Studio, and you have created a bat file that opens the Visual Studio.
When you call the bat from the server2 the code of the bat file is executed locally on server2
So the OS tries to locate the Visual studio on server2.
You have to understand that the call of the BAT file is not a RPC (Remote Procedure Call) is actually a local call on the server2

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
Microsoft SQL Server
--
Questions
--
Followers
Top Experts
Microsoft SQL Server is a suite of relational database management system (RDBMS) products providing multi-user database access functionality.SQL Server is available in multiple versions, typically identified by release year, and versions are subdivided into editions to distinguish between product functionality. Component services include integration (SSIS), reporting (SSRS), analysis (SSAS), data quality, master data, T-SQL and performance tuning.