placeorder.asp

来自「《SQL Server 2000课程设计案例精编》-李昆-源代码-3436」· ASP 代码 · 共 27 行

ASP
27
字号

<%


Dim strXML
Dim cmd
Dim con
Const adCmdStoredProc = 4

strXML = Request.QueryString("txtOrder")
Set con = CreateObject("ADODB.Connection")
con.Open "PROVIDER=SQLOLEDB; INTEGRATED SECURITY=SSPI; DATA SOURCE=(local);INITIAL CATALOG=Supplier;"

Set cmd = CreateObject("ADODB.Command")
strXML = Replace(strXML, "encoding=""utf-8""", "")
With cmd
  Set .ActiveConnection = con
  .CommandText = "ImportOrder"
  .CommandType = adCmdStoredProc
  .Parameters(1).Value = strXML
  .Execute
End With

Set cmd = Nothing
Set con = Nothing

%>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?