set connection = server
connection
Connection
\
connection
set connection = nothing
set connection = server
connection
set rs = server
rs
\
rs
connection
set rs = nothing
set connection = nothing
首先說明
儲這些值的變量名稱需要在調用參數中先行指定
這個例子要處理多種參數
存儲過程如下
use pubs
GO
create procedure sp_PubsTest
@au_lname varchar (
@intID int
@intIDOut int OUTPUT
AS
SELECT @intIDOut = @intID +
SELECT *
FROM authors
WHERE au_lname LIKE @au_lname + \
RETURN @intID +
From:http://tw.wingwit.com/Article/program/net/201311/13686.html