STORE SQLCONNECT('PubsODBC') TO m.gnConnHandle IF m.gnConnHandle <= 0 = MESSAGEBOX('Cannot make connection', 16, 'SQL Connect Error') RETURN ENDIF LOCAL m.lnPercentage, m.lnElapsed m.lnPercentage = 30 sqlprepare(m.gnConnHandle,"select au_id from titleauthor where titleauthor.royaltyper = ?lnpercentage") a=seconds() FOR m.X = 1 TO 10000 sqlexec(m.gnConnHandle,"select au_id from titleauthor where titleauthor.royaltyper = ?lnpercentage","c_ByRoyalty") ENDFOR m.X m.lnElapsed = seconds() - m.a ?"Dynamic SQL",m.lnElapsed a=seconds() FOR m.X = 1 TO 10000 sqlexec(m.gnConnHandle,"sp_byroyalty ?lnpercentage","c_ByRoyalty") ENDFOR m.X m.lnElapsed = seconds() - m.a ?"SP Call",m.lnElapsed = SQLDISCONNECT(m.gnConnHandle)The dynamic SQL is 2 times faster than the SP. Can you guys confirm this?