I'm looking to insert data into the database only once per day. The problem is that I want the sql query to check this (as the code is untouchable)
Currently any time anyone goes to a certain web page it calls the spInsertRate procedure.
INSERT INTO dbo.LU_ExchangeRates
(exch_Date,exch_Currency,exch_Rate)
VALUES(@exchDATE,@exchCurrency,@exchRate)
I'm guessing I have to do a select statement first, and if the select statements does not return a row, that means to run the insert statement. I just can't figure out how to code for this.