astrodestino
IS-IT--Management
Hi!
I got a website that has some asp pages that receives more o less 12.000 hits per day.
In that page I show only one recordset which date is equal to the current date.
Here is my sql:
I do code visual basic net applications but I'm not into sql server. I was told that I can free sqlserver resources by creating a stored procedure and by calling it instead of using the code above.
Can anyone give me a hand about how do I create it, where should I put it and how to call it? Or give me some example so I can edit the resto of the site's sql.
Thank you very much!!
I got a website that has some asp pages that receives more o less 12.000 hits per day.
In that page I show only one recordset which date is equal to the current date.
Here is my sql:
Code:
varDate = date()
varDay = DatePart("d",varDate)
varMonth = DatePart("m", varDate)
varYear = DatePart("yyyy", varDate)
sqlstm="SELECT * FROM efemerides where mes="&varmonth&" and dia=" &varday&" and anofecha="&varYear
I do code visual basic net applications but I'm not into sql server. I was told that I can free sqlserver resources by creating a stored procedure and by calling it instead of using the code above.
Can anyone give me a hand about how do I create it, where should I put it and how to call it? Or give me some example so I can edit the resto of the site's sql.
Thank you very much!!