Click here to Skip to main content
15,899,679 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
insertPrices_TBL 200 ,1
(
The Error is:
Msg 208, Level 16, State 1, Procedure insertPrices_TBL, Line 6
Invalid object name 'CurrencyTBL'.
)

how Can Use This proc to
SQL
alter proc insertPrices_TBL
@Prices float,
@Currency_ID int
as
begin
insert into Prices_TBL values (@Prices * (select Currency_Value from CurrencyTBL where Currency_ID=@Currency_ID))
end
Posted
Updated 7-Apr-15 21:21pm
v2
Comments
CPallini 8-Apr-15 3:29am    
Check if the CurrencyTBL actually exists. You might have mistyped it.
Member 11280947 8-Apr-15 3:35am    
Thank You
CPallini 8-Apr-15 12:35pm    
You are welcome.
deepankarbhatnagar 8-Apr-15 8:56am    
got it?

1 solution

You have either mistyped the name of your table, or you are using the wrong database (wrong version of the database - has it changed recently?) - the error message is pretty specific!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900