|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Single to Integer
I am trying to send a 'single' data type to a sql server db cell that is formatted for 'decimal' from asp/ado code and it is converting it to an integer. Should I be using some other data type in sql server?
Thanks! |
|
#2
|
|||
|
|||
|
How are you passing the variable? Are you using a stored procedure or an SQL statement? Have you verified that the data is not being implicitly casted?
|
|
#3
|
|||
|
|||
|
Actually, ...
I got it solved. The problem was that when you use a decimal type in sql server you need to set the scale property (which defaults to 0) to the number of decimal points you are interested in. Once I did that it worked fine.
Thanks for your help! |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Single to Integer |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|