日期:2014-05-17 浏览次数:20643 次
<%
name=session("name")
Set Cmd = Server.CreateObject("ADODB.Command")
Cmd.CommandText="nametest"
Cmd.CommandType=4
CMD.Prepared = true
Cmd.Parameters.Append cmd.CreateParameter("@name",200,1,10,name)
set Cmd = nothing
response.Redirect("1.asp")
%>
USE [数据库名]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[testname]
@name nvarchar(10)
AS
BEGIN
INSERT INTO 表1
(name) VALUES ('@name')
END