我在数据库testbase中创建了一个表testtable,它具有以下结构:
product_no (int,not null) product_name (varchar(30),not null) price (money,null) expire_date (date,null) expire_time (time(7),null)
我使用的是Microsoft sql Server 2008 Management Studio.
我创建了一个存储过程testtable_pricesmaller,如下所示
use testbase go create procedure testtable_pricesmaller @pricelimit money as select * from testtable where price = @pricelimit; go
并能够在Microsoft sql Server Management Studio的对象资源管理器上查看存储过程. (它在对象资源管理器的以下树结构中列出)
Databases + testbase + Tables + dbo.testtable + Programmability + Stored Procedures + dbo.testtable_pricesmaller
当我收到以下错误时,我觉得很奇怪:
Could not find the stored procedure 'dbo.testtable_pricesmaller'.
当我执行以下sql语句时:
execute dbo.testtable_pricesmaller 50
它会丢失什么?
解决方法
IntelliSense刷新本地缓存应该修复它
原文地址:https://www.jb51.cc/mssql/79596.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。