Re: Run Batch Files with SQL Server Agent
From: DeeJay Puar (deejaypuar_at_yahoo.com)
Date: 02/23/04
- Next message: DeeJay Puar: "how to monitor users login failure - exactly from which computer was made an login with bad password?"
- Previous message: Alan Brewer [MSFT]: "Re: Russian Language support in SQL SERVER"
- In reply to: Hari Prasad: "Re: Run Batch Files with SQL Server Agent"
- Next in thread: Guru: "Re: Run Batch Files with SQL Server Agent"
- Reply: Guru: "Re: Run Batch Files with SQL Server Agent"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 23 Feb 2004 10:39:30 -0800
Hi
Thanks, but that's exactly how I have been trying to run
it, but it does not work.
I am running the job with an administrative account that
has the required permissions.
I have tested the script by running is manually on the
server and it works fine.
I wonder what gives.
DeeJay
>-----Original Message-----
>Hi,
>
>In SQL Agent Jobs -- Step option, after
selecting 'Operating System Command
>(CmdExec)' , In the command window you can type
>
>e:\sqlbackups\delete.bat
>
>(This will call the batch file delete.bat based on the
schedule interval)
>
>Thanks
>Hari
>MCDBA
>
>"DeeJay Puar" <deejaypuar@yahoo.com> wrote in message
>news:14f3201c3fa33$599d4120$a001280a@phx.gbl...
>> Hi,
>>
>> I am trying to run a batch file using the SQL Server
Agent
>> (I have scheduled a job). I have chosen the step type to
>> be 'Operating System Command (CmdExec)'. But I am not
sure
>> how to code the actual command.
>>
>> The batch file is located at: e:\sqlbackups\delete.bat.
>>
>> How do specify the Agent to call this batch file?
>>
>> Thanks,
>>
>> DeeJay
>>
>
>
>.
>
- Next message: DeeJay Puar: "how to monitor users login failure - exactly from which computer was made an login with bad password?"
- Previous message: Alan Brewer [MSFT]: "Re: Russian Language support in SQL SERVER"
- In reply to: Hari Prasad: "Re: Run Batch Files with SQL Server Agent"
- Next in thread: Guru: "Re: Run Batch Files with SQL Server Agent"
- Reply: Guru: "Re: Run Batch Files with SQL Server Agent"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|