sql-server-2008 – “无法找到存储过程”,即使已在MS SQL Server Management Studio中创建了存储过程

前端之家收集整理的这篇文章主要介绍了sql-server-2008 – “无法找到存储过程”,即使已在MS SQL Server Management Studio中创建了存储过程前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我在数据库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.f2er.com/mssql/79596.html

猜你在找的MsSQL相关文章