Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dtsRun syntax

Status
Not open for further replies.

SteveWilson

Programmer
Joined
Oct 9, 2003
Messages
2
Location
GB
Following on from previous thread - (but now different topic) Thanks for reply from JamesLean

I am having trouble trying to run the following dtsRun comand at the dos prompt

dtsRun S SERVER01444 /U MyUserName /P MyPassword /N DBName.dbo.dtsTest

I am receiving a message that A package name must be supplied? Can anyone help??

Tahnks
 
Firstly, I'm sure it's a typo but you're missing a / before the S switch.

Secondly, you don't need to qualify the name of your DTS package - they are stored in a table within the msdb database. Just specify the package name you saved it as. If the package name has spaces then surround it with double quotes:

Code:
/N"test dts package"

--James
 
I dont think you need the spaces after each switch either.

dtsRun /SSERVER01444 /UMyUserName /PMyPassword /N"dts package" /Aglobalvar_name:8="globalvar value"


Make sure you have persmissions on the Box to run command lines

hope that helps
--bygs
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top