0

I want use 1000 separator(,) for numeric values.

how can i format strings with T-Sql Functions?

2
  • 4
    SQL Server is about storing data - the formatting for display should be done in your front-end application (web app or whatever). SQL Server / T-SQL doesn't have any extensive formatting capabilities. Commented Nov 13, 2011 at 15:05
  • 1
    Whilst it is absolutely the case that one should do conversion formatting as late as possible - as close to the "user" as possible - it is also the case that there may well be a good reason to need to do so in a query in this case - therefore the comment as written (i.e. without asking for clarification/justification) is not really a positive contribution and certainly NOT a great comment. Commented Nov 13, 2011 at 15:19

1 Answer 1

4
select convert(varchar(10), cast(1234.333 as money), 1)
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.