肯定不对啥,yonghu这个表有s_id,s_password这两个字段吧
存储过程改一下
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
GO
ALTER proc [dbo].[login_staff]
@s_id int,
@s_password varchar(16)
as
select s_id,s_password,r_name from yonghu where s_id=@s_id and s_password=@s_password ------解决方案-------------------- 没有这个表,你的存储过程里面怎么还Select * From staff?肯定对象名无效啊。