Created a simple stored procedure that creates 2 tables by pulling local data from corporate linkedserver database. I will create an agent to run this every 24 hours.
I have 10 different sql queries that I run manually that return sometimes single pieces of information based on those two tables. For instance
SELECT MAX(EventDate) AS LRI
WHERE (inrCode = 'HS3') OR (inrCode = 'HS4') OR (inrCode = 'HS5') OR (inrCode = 'HS6') OR (inrCode = 'HS7') OR (inrCode = 'HS9')
This will land on an ASP page on the intranet. The client doesn't feel that it is necessary to do the query in ASP because of the number of times the page will be hit daily, and nearly all of the information will not change in 24 hours. I am not secure in my knowledge to argue for or against.
My feeling is that I can build the SP to run each of these queries and build views which in turn will be pulled for the web page. Is that the proper way to go? Client is using SQL 2008.