Hi Alan,

How about :-
select cast(0 as decimal(8,2)) as newfield into mytable

HTH,

Robbo.

Rob Anderson | Software Engineer | Pegasus, an Infor company |  t: +44
1536 495000 | d: +44 1536 495006 | f: +44 1536 495214 |
[EMAIL PROTECTED]  | www.pegasus.co.uk 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Alan Bourke
Sent: 12 November 2007 10:58
To: profox@leafe.com
Subject: SQL Server aliased column from VFP

Hi

If you're selecting from a VFP table you can say:

Select *, 00000.00 as newfield From MyTable Into Cursor MyCursor
ReadWrite


That will produce a field 'newfield' in the cursor with dimensions of
N(8,2).

How would you reproduce that behaviour in T-SQL ? I only seem to get
back a field with 0.00 in it, which you can't enter anything greater
than 9.99 into, and replacing with something like 1234.56 puts 1235 in.


-- 
  Alan Bourke
  [EMAIL PROTECTED]



[excessive quoting removed by server]

_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to