如何建立和使用sql server 2005存储过程

来源:互联网 发布:微山湖武工队淘宝店 编辑:程序博客网 时间:2024/05/17 05:07

[b]怎样使用如下存储过程[/b](我是在sql server 2005 的新建查询里输入的下面的代码,但是始终报错说:“消息 208,级别 16,状态 6,过程 UserReg,第 11 行对象名 'dbo.UserReg' 无效。”)
set ANSI_NULLS ON
set QUOTED_IDENTIFLER ON
go
ALTER PROCEDURE [dbo].[UserReg]
@useraccount Nvarchar(15),
@userpassword Nvarchar(15),
@sex int,
@qq int(9),
@email Nvarchar(50)
AS
begin
set NOCOUNT ON;
Insert into userinformation
(
useraccount,
userpassword,
sex,
qq,
email
)
Values
(
@useraccount,
@userpassword,
@sex,
@qq,
@email
)
end

原创粉丝点击