I'm wondering which is better in term of speed and performance.
SQL$ = " select * myTable where 1=0 "
Set myrecordset= New Recordset
myrecordset.Open RecSource$, MainDb, adOpenStatic, adLockOptimistic
myrecordset.AddNew
myrecordset.Fields("name") = "James"
myrecordset.Update
myrecordset.Close
OR
SQL$ = "INSERT INTO myTable(name) VALUES('James')"
myrecordset.Open SQL$, MainDb, adOpenStatic, adLockOptimistic
Please give views and opinions. Thankx.
vb6 sql
Feb 14 2006, 02:44 PM, updated 20y ago
Quote
0.0119sec
1.56
6 queries
GZIP Disabled