dbTalk Databases Forums  

Execute Process Task in dts package

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Execute Process Task in dts package in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Greg Barnes
 
Posts: n/a

Default Execute Process Task in dts package - 06-25-2004 , 09:57 AM






I am having a problem running bat or cmd files in my dts
packages. Whenever I first create a new package which
runs a bat file, the package runs fine. However, if I log
out of Enterprise Manager or schedule to run the package
later, the bat file is never able to run. From what I can
tell, it is asking for a parameter to be set. I can run
the bat file from a command prompt or Windows explorer all
day long without a parameter. ?????
Thanks,
Greg

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Execute Process Task in dts package - 06-25-2004 , 11:55 AM






What makes you think it is asking for a parameter to be set?
What does the bat file contain?

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Greg Barnes" <Greg.Barnes (AT) psc (DOT) state.ms.us> wrote

Quote:
I am having a problem running bat or cmd files in my dts
packages. Whenever I first create a new package which
runs a bat file, the package runs fine. However, if I log
out of Enterprise Manager or schedule to run the package
later, the bat file is never able to run. From what I can
tell, it is asking for a parameter to be set. I can run
the bat file from a command prompt or Windows explorer all
day long without a parameter. ?????
Thanks,
Greg



Reply With Quote
  #3  
Old   
Greg Barnes
 
Posts: n/a

Default Re: Execute Process Task in dts package - 06-25-2004 , 12:42 PM



I have several different bat files that run in packages.
I have the same problem with all of them. One of them
ftps a file to our server, one of them deletes a file from
a previous run and renames a file.
I think it may be asking for a parameter because if you
run the package from Enterprise Manager, you can see the
cmd prompt screen flash by & it looks like the screen you
get when you type help cmd from the prompt.
Quote:
-----Original Message-----
What makes you think it is asking for a parameter to be
set?
What does the bat file contain?

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Greg Barnes" <Greg.Barnes (AT) psc (DOT) state.ms.us> wrote in
message
news:2112e01c45ac4$b4ce3800$a601280a (AT) phx (DOT) gbl...
I am having a problem running bat or cmd files in my dts
packages. Whenever I first create a new package which
runs a bat file, the package runs fine. However, if I
log
out of Enterprise Manager or schedule to run the package
later, the bat file is never able to run. From what I
can
tell, it is asking for a parameter to be set. I can run
the bat file from a command prompt or Windows explorer
all
day long without a parameter. ?????
Thanks,
Greg


.


Reply With Quote
  #4  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Execute Process Task in dts package - 06-25-2004 , 01:27 PM



It may weel be flashing up an error.

Try putting pause after significant steps and see whether that tells you the
problem

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Greg Barnes" <Greg.Barnes (AT) psc (DOT) state.ms.us> wrote

Quote:
I have several different bat files that run in packages.
I have the same problem with all of them. One of them
ftps a file to our server, one of them deletes a file from
a previous run and renames a file.
I think it may be asking for a parameter because if you
run the package from Enterprise Manager, you can see the
cmd prompt screen flash by & it looks like the screen you
get when you type help cmd from the prompt.
-----Original Message-----
What makes you think it is asking for a parameter to be
set?
What does the bat file contain?

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Greg Barnes" <Greg.Barnes (AT) psc (DOT) state.ms.us> wrote in
message
news:2112e01c45ac4$b4ce3800$a601280a (AT) phx (DOT) gbl...
I am having a problem running bat or cmd files in my dts
packages. Whenever I first create a new package which
runs a bat file, the package runs fine. However, if I
log
out of Enterprise Manager or schedule to run the package
later, the bat file is never able to run. From what I
can
tell, it is asking for a parameter to be set. I can run
the bat file from a command prompt or Windows explorer
all
day long without a parameter. ?????
Thanks,
Greg


.




Reply With Quote
  #5  
Old   
Greg Barnes
 
Posts: n/a

Default Re: Execute Process Task in dts package - 06-25-2004 , 03:44 PM



I put in a pause and was able to figure out what was going
on. In my bat files, I wasn't putting the etire path when
referencing other files. Apparently if you don't specify
the full path in your bat files, DTS looks for them in
C:\Program Files\Microsoft SQL Server\80\Tools\BINN. I
changed the bat files to include the entire path and
everything is working fine now. Thanks for your help.
Greg
Quote:
-----Original Message-----
It may weel be flashing up an error.

Try putting pause after significant steps and see whether
that tells you the
problem

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Greg Barnes" <Greg.Barnes (AT) psc (DOT) state.ms.us> wrote in
message
news:215f901c45adb$b804b370$a301280a (AT) phx (DOT) gbl...
I have several different bat files that run in packages.
I have the same problem with all of them. One of them
ftps a file to our server, one of them deletes a file
from
a previous run and renames a file.
I think it may be asking for a parameter because if you
run the package from Enterprise Manager, you can see the
cmd prompt screen flash by & it looks like the screen
you
get when you type help cmd from the prompt.
-----Original Message-----
What makes you think it is asking for a parameter to be
set?
What does the bat file contain?

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Greg Barnes" <Greg.Barnes (AT) psc (DOT) state.ms.us> wrote in
message
news:2112e01c45ac4$b4ce3800$a601280a (AT) phx (DOT) gbl...
I am having a problem running bat or cmd files in my
dts
packages. Whenever I first create a new package
which
runs a bat file, the package runs fine. However, if
I
log
out of Enterprise Manager or schedule to run the
package
later, the bat file is never able to run. From what
I
can
tell, it is asking for a parameter to be set. I can
run
the bat file from a command prompt or Windows
explorer
all
day long without a parameter. ?????
Thanks,
Greg


.



.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.