如何在ASP中調用SQL存儲過程

<%set connection1 = Server.CreateObject("ADODB.Connection")
connection1.open ... '聯接
set command1=Server.CreateObject("ADODB.command")
set command1.activeconnection=connection1
command1.commandtype=4
command1.commandtext="sp_1"  'SP 名
command1.parameters(1)=... '參數值
command1.parameters(2)=...
set recordset1=command1.execute()
%> 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章