当前位置: 代码迷 >> Sql Server >> 验证的存储过程中遇到的有关问题
  详细解决方案

验证的存储过程中遇到的有关问题

热度:28   发布时间:2016-04-27 15:23:16.0
验证的存储过程中遇到的问题
Use   company
GO
ALTER   procedure   [dbo].[sp_Login]
(@UserName   nvarchar(20),@PassWord   nvarchar(16))
as
select   UserName   from   denglu
where   [email protected]   and   [email protected]

报错:
消息   208,级别   16,状态   6,过程   sp_denglu,第   4   行
对象名     'dbo.sp_denglu '   无效。
谁帮忙改下,刚学这个,不知道怎么改.

------解决方案--------------------
Use company
GO
--创建存储过程
create procedure [dbo].[sp_Login]
(@UserName nvarchar(20),@PassWord nvarchar(16))
as
select UserName from denglu
where [email protected] and [email protected]

go

--执行存储过程
exec [dbo].[sp_Login] '用户名 ', '密码 '
  相关解决方案