Saya telah membuat tabel testtabledi dalam database testbaseyang memiliki struktur berikut:
product_no (int, not null)
product_name (varchar(30), not null)
price (money, null)
expire_date (date, null)
expire_time (time(7), null)
yang saya gunakan Microsoft SQL Server 2008 Management Studio.
Saya membuat prosedur tersimpan testtable_pricesmallersebagai berikut
use testbase
go
create procedure testtable_pricesmaller
@pricelimit money
as
select * from testtable where price = @pricelimit;
go
dan dapat melihat Prosedur Tersimpan di Object Explorerdari Microsoft SQL Server Management Studio. (Terdaftar dalam struktur pohon berikut Object Explorer)
Databases
+ testbase
+ Tables
+ dbo.testtable
+ Programmability
+ Stored Procedures
+ dbo.testtable_pricesmaller
Saya merasa sangat aneh ketika saya menerima kesalahan berikut:
Could not find the stored procedure 'dbo.testtable_pricesmaller'.
ketika saya menjalankan pernyataan SQL berikut:
execute dbo.testtable_pricesmaller 50
Apa yang bisa hilang?
USEpernyataan tetapi itu memberi saya kesalahan.
IntelliSense Segarkan Cache lokal harus memperbaikinya