all groups > sql server programming > february 2005 >
You're in the

sql server programming

group:

looking a method to avoid user run a SP 2 times a day



looking a method to avoid user run a SP 2 times a day souris
2/23/2005 10:12:26 PM
sql server programming: I have an app to download data from mainframe daily.
I am looking for a method to avoid user run the stored procedure 2 times per
day.

I am thinking to have a SystemConfigure table to store Last_update_Date
field.
If the data equal today then do nothing, if less then download from
mainframe.
Update the data to current date after download.

Are there any better solution for this method?

Any information is great appreciated

Souris,


Re: looking a method to avoid user run a SP 2 times a day David Gugick
2/23/2005 11:15:33 PM
[quoted text, click to view]

That sounds like the right choice. Save the last time the routine ran
and only re-run when necessary.

--
David Gugick
Imceda Software
www.imceda.com
Re: looking a method to avoid user run a SP 2 times a day James Goodwin
2/24/2005 3:07:33 PM

[quoted text, click to view]

Could you just schedule a job at a specific time every day?

Good Luck,
Jim

AddThis Social Bookmark Button