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.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2001-03-19 : 23:32:59
|
Ron writes "When I added an instert statement in my sqlscript to backup a Transaction log I get a syntax error. The scipt is being run through a sql agent job osql -E -i h:\DBAScripts\cc3_test_rgg.sql -o h:\DBAScripts...
before : backup transaction cc3 to disk = 'E:\daily_backups\cc3_transaction.bkp' with noinit
-- the above ran fine. ---------------------------------------------------------- new logic : use cc3 Insert into work_prod_job_history (jobname, schedule, Completion_date, Status) Values ('CC3_rgg_Test', 'Daily ', getdate(), 'Started') Go backup transaction cc3 to disk = 'E:\daily_backups\cc3_transaction.bkp' with noinit go
gives me a : Incorrect syntax near 'backup'. error
If i just do the insert,it runs fine. Or do an insert after the backup, it seems to run fine, but I can't seem to mix them together.
We are running sql server 7.0
Thanks for any help" |
|
|
|
|
|