在SQL Serverh中存储过程存在,在ASP.NET运行说找不到存储过程。

t362872460 2014-12-26 06:54:11
...全文
145 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
hepe00 2014-12-28
  • 打赏
  • 举报
回复
引用 4 楼 hepe00 的回复:
可能的是:1)没有创建存储过程Proc_CheckUser 2)进错数据库了。 在你的作业数据库中尝试执行,看看是否成功:
sp_help AddEvent
sp_help Proc_CheckUser
hepe00 2014-12-28
  • 打赏
  • 举报
回复
可能的是:1)没有创建存储过程Proc_CheckUser 2)进错数据库了。 在你的作业数据库中尝试执行,看看是否成功:
sp_help AddEvent
csdnBABYCY 2014-12-28
  • 打赏
  • 举报
回复
Hi t362872460, Besides the suggestion from others, you also need to grant the login account to access to the database. To troubleshoot your issue, you could open SQL Server Management Studio and connect to the SQL Server instance using another login account with sysadmin server role and map the database to the login as the following steps: 1.In Object Explorer, expend 'Security' folder, and then expend 'Login' folder. Right-click the login, and click 'Properties'. 2. In the 'User Mapping' tab, check the checkbox for the database your want to use in the frame 'users mapped to this login', and then check the checkbox for 'db_owner' in the frame 'database role membership'. Next, click OK and check if the issue still occurs.
唐诗三百首 2014-12-26
  • 打赏
  • 举报
回复
检查数据库连接串,是否连接到正确的SQL实例和数据库.
还在加载中灬 2014-12-26
  • 打赏
  • 举报
回复
连接对数据库了吗?用于登录数据库的账户有权限吗

22,207

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server 疑难问题
社区管理员
  • 疑难问题社区
  • 尘觉
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧