According to the doc http://msdn.microsoft.com/en-us/library/ms162810 v=sql.105 .aspx if you omit the /Server parameter when running dtexec, it defaults to the local server. But what is the "local" server and how does dtexec find it?
e.g. I started up SQL Server on my machine. Then I opened a CMD window and ran:
dtexec /SQL foo /SU
To my surprise, dtexec did not run on my machine, it ran on another server that I connect to from time to time. So, I'd like to know what dtexec does to find the local server. What is "local"?
local server is default instance of server installed on machine where you run dtexec.
in your dtexec you're asking it to fetch package from SQL Server MSDB database so it gets package from specified server and executes it. If you omit /Server it sets server context as local instance on machine where you installed dtexec
------------------------------------------------------------------------------------------------------ SQL Server MVP http://visakhm.blogspot.com/
Yes, I'm sure I omitted the /Server parameter. I had run it before WITH the /Server parameter pointing to my local server. Then I saw that I could omit that parameter when the server is local. So, I removed it. Imagine my surprise when I saw the activity happening on a different server! (Both my local server and the other one have the same package installed).