Re: Missing Format() - Function
- From: Hugo Kornelis <hugo@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 15 Apr 2005 21:06:18 +0200
On Fri, 15 Apr 2005 01:33:00 -0700, nieurig wrote:
>Hi folks,
>i have to translate SQL-Statements from Access 2000 to SQL
>Server 2000. There was a lot of Access-Functions used
>(mid, str, iif ...) and i convert them to SQL-Server
>Syntax, but i dont found a way to simulate the results of
>the Format-Function with was used for numeric data
>as "##0.##" or "##0 %" and so on ...
>
>What is the best way to substitute the FORMAT() function
>at SQL Server?
>
>Thanks for any help.
>Niels
Hi Niels,
The best way is to return unformatted data to the client and let the
client handle the formatting. Formatting is not a task that the server
is ideally suited for.
If you must do it at the server, then start by looking into functions
such as CONVERT, CAST and STR. If they don't do what you need, then post
some examples of unformatted data and how you want it to look, so that I
(and others) can look into it and try to come up with something.
Best, Hugo
--
(Remove _NO_ and _SPAM_ to get my e-mail address)
.
- Follow-Ups:
- Re: Missing Format() - Function
- From: nieurig
- Re: Missing Format() - Function
- References:
- Missing Format() - Function
- From: nieurig
- Missing Format() - Function
- Prev by Date: Re: Format Date in GroupBy query
- Next by Date: Re: Manipulate duplicate rows
- Previous by thread: Missing Format() - Function
- Next by thread: Re: Missing Format() - Function
- Index(es):
Relevant Pages
|
|