all groups > sql server odbc > may 2007 >
You're in the

sql server odbc

group:

Decimal Formatting


Decimal Formatting Jonathan
5/31/2007 1:55:00 AM
sql server odbc: Hi Group,

This is my probelm, I have a SQL view which holds prices to 2 decimal place
in the Management Console they are displayed to two decimal place i.e. 1.99.

However when I run an ODBC report the values are all to mutiple decimal
places i.e. 1.9900000000000000000. I have been told there is a way to format
the vie win SQL to 2 decimal place but don't how is there a KB article or
help file that can oint me in the right direction or is there a way in the
ODBC SQL to force the formatting?

I am using SQL 2000

Re: Decimal Formatting Jonathan
5/31/2007 9:21:01 AM
Thank you Mary I have somehow solved it by using the STR function and a
little but of luck in the client app, but thank you again for your help

Jonathan

[quoted text, click to view]
Re: Decimal Formatting Mary Chipman [MSFT]
5/31/2007 12:11:37 PM
Formatting result sets is best handled in the client UI. If you add a
formatting function on the server side, then it's a separate function
call for every row.

-mary

On Thu, 31 May 2007 01:55:00 -0700, Jonathan
[quoted text, click to view]
AddThis Social Bookmark Button