Greetings, I am using a sql view to extract a list based on a zip code input. This works but it's slow because of the enormous amount of records the query has to look through. Is there a better way to do this and if so, how? I am not familiar with stored procedures or how to write one or call one. Here's my query:
Any thoughts would be greatly appreciated. Many thanks in advance.
Code:
if request.form("zip")>"" then
set rs=objConn.execute ("select * from Schedule where cadZip='" & request.form("zip") & "'")
if not rs.eof then
response.write rs("prgName")
end if
end if