Formatting is controlled by your client application, not by SQL Server. Ask
this question in a forum for the app or programming language you are using.
Certainly you could get SQL to return a string instead of a number but why
would you want to do that with the obvious disadvantages for performance,
complexity and special handling at the client?
--
David Portas
SQL Server MVP
--
[quoted text, click to view] "dapdap" wrote:
> while selecting the field, I want it to be display with commas.
> for example,
> 10000 become 10,000
> without decimal placed at the end.
[quoted text, click to view] >> selecting the field, I want it to be display with commas. <<
Let's get back to the basics of an RDBMS. Rows are not records; fields
are not columns; tables are not files. In a tiered architecture, the
display formatting is done in the front end and never in the database.
[quoted text, click to view] >> have tried using smallmoney format but there is decimal places. <<
A good SQL programmer avoids proprietary datatypes.