Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2003-11-20 : 08:00:29
|
| Kieran Southern writes "Hi,Here's the sp:@intUser int,@intJob int,@intPrice moneyINSERT INTO ClientPrices( userid,jobid,price)values( @intUser,@intJob,@intPrice)when I execute this:addCLientPrices 1,1,22.50the price in the table reads: 2250SQL seems to be removing the decimal places?Funny thing is that if I run the sp from query analyzer, it works and 22.50 goes in. It's when I execute the sp from an .asp page and pass in the values as parameters that I get this error. I've written out the price value just before the sp is executed and it shows 22.50I'm wondering if I need some sort of conversion on the price within the stored procedure.The sql install is us_english.This is driving me crazy, any help greatly appreciated.Kieran" |
|
|
robvolk
Most Valuable Yak
15732 Posts |
Posted - 2003-11-20 : 08:01:58
|
| Yet another reason to avoid Hungarian or prefix notation:@intPrice moneyWithout your ASP code it'll be hard to tell where the problem lies. |
 |
|
|
|
|
|