Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
HiI am using MS SQL 2000 database. My transactoin log file is getting full so i am creating a job in ms sql 2000 which backup the transaction log file.I want to modify the query BACKUP LOG PRD TO DISK = 'S:\BackupLogs\PRDbklog.BAK' to include the timestamp at the filename. for example BACKUP LOG PRD TO DISK = 'S:\BackupLogs\PRDbklog<timestamp>.BAK So how could i append the timestamp to the filename? Thanks
Hi Kristen Thanks a lot.It is working when i run the query in the SQL QUERY ANALYZER tool. I am trying to create a job from Enterprise Manager -> <Server> -> SQL Server Agent -> Job When i copied the same query in the job step and tried to run it gets fail. How could i make the query to run from job? Again Thanks a lotRegardsRob
Kristen
Test
22859 Posts
Posted - 2005-08-18 : 15:25:10
I would build a Stored Procedure, and call the SProc from the jobKristen
madhivanan
Premature Yak Congratulator
22864 Posts
Posted - 2005-08-19 : 01:44:15
Or Paste that query in the Command section of Job stepsMadhivananFailing to plan is Planning to fail
robman
Starting Member
6 Posts
Posted - 2005-08-19 : 15:55:43
Hi I have created the stored prodecure and call the procedure from the job and it is working fine now. Thanks Kristen for your helpBye