petermeachem
Programmer
I'm sure this is going to be easy, but I've been trying to see what's wrong for ages now. Could some kind soul help me out.
I have some sql that consists of two INSERTS and 2 DELETES
i.e.
INSERT INTO ...
GO
DELETE FROM ...
GO
INSERT INTO ...
GO
DELETE FROM ...
GO
This works just fine in isql
Now, I want to run this weekly, so I put
CREATE PROCEDURE stuff AS
on the front and removed the GO's
Then I created a job consisting of
EXEC stuff
When I start the job, nothing appears to happen and certainly the tables are unaffected.
I have looked for a simple explanation, but, as I say, am well stuck here.
sql 7 by the way
I have some sql that consists of two INSERTS and 2 DELETES
i.e.
INSERT INTO ...
GO
DELETE FROM ...
GO
INSERT INTO ...
GO
DELETE FROM ...
GO
This works just fine in isql
Now, I want to run this weekly, so I put
CREATE PROCEDURE stuff AS
on the front and removed the GO's
Then I created a job consisting of
EXEC stuff
When I start the job, nothing appears to happen and certainly the tables are unaffected.
I have looked for a simple explanation, but, as I say, am well stuck here.
sql 7 by the way