View Full Version : differnce between Execute and recordset
Bluemonkey
04-07-2003, 02:50 PM
what is the differnce between the "Execute method" and the "Recordset Object"?? and what are the advantages and disadvantages?
thanks for the help
miranda
04-07-2003, 03:56 PM
using execute takes up less server resources and loads faster.
BigDaddy
04-07-2003, 04:14 PM
I believe you'd want to use execute for stuff like inserts, deletes, updates--a one-shot deal, where you don't need to pull info back.
Use a recordset for just that--a recordset of info.
miranda
04-07-2003, 04:27 PM
can also use the execute method to get information like so
Set Rs = oConn.Execute "SELECT * FROM widgets WHERE color='red'"
And this uses less server resources and is faster than creating a recordset object
BigDaddy
04-07-2003, 04:30 PM
Hmm....maybe I need to read up on it a bit more, but I thought you'd only want to use the recordset object for that.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.