Stored procedures I recommend using the method to fetch stored procedures, of course, if you know the details of the parameterized command to be used, by creating parameters in the code, it executes faster.
If you do not know the parameterized command to use, I have compiled a copy of the contents of the recordset of the stored procedure by using the parameter (Parameters) object, but the execution speed is not satisfactory.
The code is sorted as follows, you can simply copy the code to the Form1 form for debugging.
Where the function Getdatatype can be modified to its own required processing, where all the code is to test the convenience of all, you can also change to the corresponding processing of their own needs.
"This parameter data type:" & Getdatatype (Adoprm.type), "Please enter parameter value", "")
If Err <> 0 Then
If MsgBox ("The parameter entered is not in conformity with the parameter data type, please re-enter!") Cancels the call that will exit the stored procedure! ", vbOKCancel," warning "= vbcancel Then
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.