Re: Data style?
From: Steve Kass (skass_at_drew.edu)
Date: 02/03/05
- Next message: mark.laffey: "RE: Describing a table structure"
- Previous message: Wendy W: "Re: Data style?"
- In reply to: Wendy W: "Re: Data style?"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 03 Feb 2005 01:24:41 -0500
Wendy,
You will have to provide the data as character-based data,
preformatted as needed. You could try various solutions such
as these, shown with an integer variable @int and the getdate() function
instead of an entire table::
declare @int integer
set @int = 32476
select parsename(convert(varchar(20),cast(@int as money), 1),2)
select convert(char(10),getdate(),101)
select convert(char(10),getdate(),121)
Steve Kass
Drew University
Wendy W wrote:
>>Hi Wendy,
>>
>>The formatting of the output of a query is entirely up
>>
>>
>to the client. If
>
>
>>you access the same data using Query Analyser,
>>
>>
>Enterprise Manager, Access
>
>
>>and some other tools, you'll already see a variety in
>>
>>
>formats used, as
>
>
>>each of these tools has it's own defaults.
>>
>>Best, Hugo
>>--
>>
>>
>
>
>Thanks, Hugo but my situation is slightly different here.
>I'm supposed to display records in a data grip (ASP.NET)
>using the SQL statement. I can't format the data grid
>column to my desired format, the grid is dynamic.
>Therefore I need to format the fields in SQL statement.
>
>How can this be solved?
>
>
- Next message: mark.laffey: "RE: Describing a table structure"
- Previous message: Wendy W: "Re: Data style?"
- In reply to: Wendy W: "Re: Data style?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|