I have a situation where a query might be called multiple times from multiple users, but I only want it to run once (per week) against the database. The environment is SQL Server Express so scheduling via SQL Server Agent is not an option. It needs to be 2005 compatible. I’d like to make it as lightweight as possible too, so I’m asking for suggestions. Ideally a database wide declared variable – but I don’t think that SQL Server supports such a beast? Thanks
Share
Try something like this:
You can create indexes you need for the WeeklyTable.