[导入]asp.net调用带有输入和输出参数的存储过程

存储过程检测用户名是否重户

create proc checklogin
@username nchar(20),
@pwd nchar(20),
@hasrow int output
as
select @hasrow=count(*) from users where username=@username and pwd=@pwd
GO

存储过程写入数据

create proc adduser
@username nchar(20),
@pwd nchar(20)
as
begin
insert into users (username,pwd)values(@username,@p

阅读全文
类别:学习笔记 查看评论
文章来源:http://hi.baidu.com/honghu3000/blog/item/99a1b473f551831b8701b0be.html
posted @ 2008-12-19 11:59  刘强 cnblogs  阅读(141)  评论(0编辑  收藏  举报