OK, I did this and it still does not help.  I don't understand why this is a
problem.

Could by chance is the decimal datatype in the SP be the problem?  I'm going
to check into that, but I don't quite know how to fix the problem if it is.

It basically looks like:


StoredProc TableId as int, Price as decimal, etc....

Is there a way to define the decimal datatype for Price so it has a scale of
2?

Thank you,
 
Matthew Small
Web Developer
American City Business Journals
704-973-1045
[EMAIL PROTECTED]
 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 01, 2005 10:17 AM
To: CF-Talk
Subject: RE: Sql Server DECIMAL datatype

Your problem is Scale 0.  Check out this page:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_
da-db_8rc5.asp

"Precision is the number of digits in a number. Scale is the number of
digits to the right of the decimal point in a number. For example, the
number 123.45 has a precision of 5 and a scale of 2."

If you have a precision of 18 and a scale of 0, that means you are allowed
18 digits total, but zero can be to the right of the decimal point, which
would force your values to be stored as integers.

Change the data type to a scale of 2 or 4 or however many digits you want to
the right of the decimal point, and adjust your precision if necessary to
allow the correct total number of digits.  So, for example, if you want a
maximum of say nine million nine hundred ninety-nine thousand nine hundred
ninety-nine dollars and ninety-nine cents, you would do it like this:

9999999.99  = precision 9, scale 2

Dave

-----Original Message-----
From: Matthew Small [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 01, 2005 10:05 AM
To: CF-Talk
Subject: RE: Sql Server DECIMAL datatype


18.  I previously had the datatype as money, but am in the process of trying
decimal right now. Scale 0.  These are default entries.

 
****************************************************************************
**************
The information contained in this message, including attachments, may
contain 
privileged or confidential information that is intended to be delivered only
to the 
person identified above. If you are not the intended recipient, or the
person 
responsible for delivering this message to the intended recipient, ALLTEL
requests 
that you immediately notify the sender and asks that you do not read the
message or its 
attachments, and that you delete them without copying or sending them to
anyone else. 




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217094
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to