TorrediPisa
Programmer
Good Morning to everyone.
I simply want to create a new record in a SQL Server DB Table (protocol ADO).
I have written, for example, this code:
....
rsADO.Open "TABLE", cnADO, adOpenStatic, adLockOptimistic
rsADO.AddNew
....
Well I note that if the Table contains a great number of records, a certain amount of Time (7 secs) is elapsed from the Open sentence and the AddNew sentence.
But if I replace "TABLE" with "SELECT * FROM TABLE WHERE ID = 0" (Where ID is a Column of The Table and 0 is a already recorded value of it) then there is no appreciable elapsed time between the two sentences.
Do you know whether this could be a valid way to speed up the table opening or maybe there are more professional solutions?
Thank you very much for Yr Time.
Regards
TdP
I simply want to create a new record in a SQL Server DB Table (protocol ADO).
I have written, for example, this code:
....
rsADO.Open "TABLE", cnADO, adOpenStatic, adLockOptimistic
rsADO.AddNew
....
Well I note that if the Table contains a great number of records, a certain amount of Time (7 secs) is elapsed from the Open sentence and the AddNew sentence.
But if I replace "TABLE" with "SELECT * FROM TABLE WHERE ID = 0" (Where ID is a Column of The Table and 0 is a already recorded value of it) then there is no appreciable elapsed time between the two sentences.
Do you know whether this could be a valid way to speed up the table opening or maybe there are more professional solutions?
Thank you very much for Yr Time.
Regards
TdP