SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SSIS and Import/Export (2008)
 How does DTEXEC find the "local" server
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

gbritton
Aged Yak Warrior

657 Posts

Posted - 10/24/2012 :  10:40:53  Show Profile  Reply with Quote
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"?

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 10/24/2012 :  11:53:33  Show Profile  Reply with Quote
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/

Go to Top of Page

gbritton
Aged Yak Warrior

657 Posts

Posted - 10/24/2012 :  11:57:19  Show Profile  Reply with Quote
"If you omit /Server it sets server context as local instance on machine where you installed dtexec"

That is precisely what does NOT happen. dtexec runs package on a completely different machine. I can reproduce this at will
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 10/24/2012 :  12:50:35  Show Profile  Reply with Quote
quote:
Originally posted by gbritton

"If you omit /Server it sets server context as local instance on machine where you installed dtexec"

That is precisely what does NOT happen. dtexec runs package on a completely different machine. I can reproduce this at will


hmm...are you sure you omitted server detail?

how did you pass package path between?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

gbritton
Aged Yak Warrior

657 Posts

Posted - 10/24/2012 :  13:21:48  Show Profile  Reply with Quote
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).
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000