anyone know a way to see how a stored procedure is more efficient than the sql string that was running? "Where's the Ka-Boom? There's supposed to be an Earth-shattering Ka-Boom!"
Marvin the Martian
create a table with ten columns VARCHAR(255)
populate 250,000 rows of data
run these:
inlineSQL.asp:[tt]
<%
set cn = Server.CreateObject("adodb.connection"
cn.open "connection string to my db"
for x = 1 to 100
set rs = cn.execute("select * from myHugeTable"
response.write("inline loop " & x & " - " & now() & "<br/>"
next
cn.close()
set cn = nothing
%>[/tt]
storedProc.asp:[tt]
<%
set cn = Server.CreateObject("adodb.connection"
cn.open "connection string to my db"
for x = 1 to 100
set rs = cn.execute("exec getAllFromHugeTable_sp"
response.write("SP loop " & x & " - " & now() & "<br/>"
next
cn.close()
set cn = nothing
%>[/tt] =========================================================
while (!succeed) try();
-jeff
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.