The writing and example of ASP stored procedure

Source: Internet
Author: User

'===========
' Function: Stored procedure
' Function: Query
' Parameters: Set of stored procedure parameters
'================
function Dbstroce (Query_sign,table,outerfield,condition,orderfield,strinsert,isorder)
Set cmd = server. CreateObject ("Adodb.command")
cmd.commandtext= "P_agents_query"
Cmd.commandtype=4
Cmd.prepared = True
Set CMD. ActiveConnection = conn
Cmd.parameters ("@query_sign") =query_sign
Cmd.parameters ("@table") =table
Cmd.parameters ("@outerfield") =outerfield
Cmd.parameters ("@condition") =condition
Cmd.parameters ("@orderfield") =orderfield
Cmd.parameters ("@strInsert") =strinsert
Cmd.parameters ("@strInsert") =strinsert
Cmd.parameters ("@isorder") =isorder
If Query_sign=0 Then
Set Rs=cmd.execute
Else
Cmd.execute
End If
Set cmd = Nothing
End Function

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.