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
[quoted text, click to view] 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?
>