Re: SQLAgent 2005 SP1 failed to run .bat file.
- From: Erland Sommarskog <esquel@xxxxxxxxxxxxx>
- Date: Mon, 26 Mar 2007 21:31:05 +0000 (UTC)
Amber (guxiaobo1982@xxxxxxxxx) writes:
Following is our test steps.
1. Create directory E:\firefly in E:.
2. Create a test file a.txt in E:\firefly.
3. Create E:\firefly\test.bat file with the following commands:
cd E:\firefly
copy a.txt b.txt
Where is SQL Server installed? If it's installed on C:, the CD command
which change the default directory on the E drive, but it will not
change the drive. You need to add this line to the file:
E:
5. Save the job and run it, Management Studio tells the job faild, but
did not tell an error message.
Find the job under SQL Server Agent, right-click and select View History.
For each job execution there is a cross, click on this to expand the
job steps. The read the output for the individual steps.
--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.
- Follow-Ups:
- Re: SQLAgent 2005 SP1 failed to run .bat file.
- From: Amber
- Re: SQLAgent 2005 SP1 failed to run .bat file.
- References:
- SQLAgent 2005 SP1 failed to run .bat file.
- From: Amber
- SQLAgent 2005 SP1 failed to run .bat file.
- Prev by Date: Re: SQL 2005 automatically partitioning?
- Next by Date: Bulk insert error -- "Unknown version of format file"
- Previous by thread: SQLAgent 2005 SP1 failed to run .bat file.
- Next by thread: Re: SQLAgent 2005 SP1 failed to run .bat file.
- Index(es):
Relevant Pages
|