webForumDet fria alternativet

Utan adovbs.inc?

ASP

2 svar · 167 visningar · startad av bassebhu

Medlem sedan nov. 20016 480 inlägg
Frågan#1

Går det att skriva om den här kodsnutten så jag inte behöver adovbs.inc?

<%SQL = "select Count(*) AS klo from tabell"
Set RS_klo = Connect.execute(SQL)
Randomize

SQL = "Select * from tabell"

RecSet.cursorlocation = aduseclient
RecSet.cachesize = 5
RecSet.open SQL, Connect, 3,3
RecSet.move Int(Rnd*RS_klo("klo"))%>

TACK!!

Medlem sedan dec. 200012 464 inlägg
#2
Const aduseclient = 3
RecSet.cursorlocation = aduseclient
Medlem sedan nov. 20016 480 inlägg
#3

tack ;)

503 ms totalt · 4 externa anrop · v20260731065814-full.6fe65c25
373 ms — deklarationer (db)
0 ms — hämta statistik (cache)
126 ms — hämta tråd, inlägg och bilagor (db)
366 ms — ändringar (db)