Hello,
another ODBC question; can I change the date format for queries via
ODBC?

In fox itself I'd use DATE=BRITISH in the config.fpw or SET DATE BRITISH in
code. Can I do anything similar via ODBC?

In fact, is there a good resource/document on using ODBC with fox? I'm using
the VFP ODBC driver that came with MDAC 2.6 on FPW2.6 tables.

--
TIA
Andrew Howell

RE: ODBC Date format by Leemi

Leemi
Thu Jan 29 10:46:39 CST 2004

Hi Andrew:

Yes, you can issue a SET DATE command via the ODBC driver. See this
article for an example:

259192 PRB: Updating a Table with DTOC() in an Index Using ODBC
http://support.microsoft.com/?id=259192

As far as a resource, look for a VFPODBC.TXT file on your machine. The file
will probably be in the Windows\System32 folder. There is also a Drvvfp.hlp
in the same folder.

We removed some VFP commands and functions from the ODBC driver for
security purposes. Here is a list for you to look at:

246660 PRB: Certain Commands & Functions Removed from Visual FoxPro ODBC
Driver
http://support.microsoft.com/?id=246660


I hope this helps.

This posting is provided "AS IS" with no warranties, and confers no rights.

Sincerely,
Microsoft FoxPro Technical Support
Lee Mitchell

*-- VFP8 HAS ARRIVED!! --*
Read about all the new features of VFP8 here:
http://www.universalthread.com/VisualFoxPro/News/VFP8Release.asp
Purchase VFP8 here:
http://shop.microsoft.com/Referral/Productinfo.asp?siteID=11518

Keep an eye on the product lifecycle for Visual FoxPro here:
http://support.microsoft.com/default.aspx?id=fh;[ln];lifeprodv
- VFP5 Mainstream Support retired June 30th, 2003
- VFP6 Mainstream Support retires Sept. 30th, 2003


>Hello,
> another ODBC question; can I change the date format for queries via
>ODBC?

>In fox itself I'd use DATE=BRITISH in the config.fpw or SET DATE BRITISH in
>code. Can I do anything similar via ODBC?

>In fact, is there a good resource/document on using ODBC with fox? I'm
using
>the VFP ODBC driver that came with MDAC 2.6 on FPW2.6 tables.

>--
>TIA


Re: ODBC Date format by Anders

Anders
Sat Jan 31 05:33:24 CST 2004

Hi Andrew
All dates are stored in the same way in a database. All dates can be
exchanged through ODBC in standardized formats. Display formats like
British, American, or ANSI dates are clientside settings.
-Anders

"Andrew Howell" <ajh@work> wrote in message
news:uL8jd$n5DHA.1664@TK2MSFTNGP11.phx.gbl...
> Hello,
> another ODBC question; can I change the date format for queries via
> ODBC?
>
> In fox itself I'd use DATE=BRITISH in the config.fpw or SET DATE BRITISH
in
> code. Can I do anything similar via ODBC?
>
> In fact, is there a good resource/document on using ODBC with fox? I'm
using
> the VFP ODBC driver that came with MDAC 2.6 on FPW2.6 tables.
>
> --
> TIA
> Andrew Howell
>
>


Re: ODBC Date format by Anders

Anders
Fri Jan 30 18:46:15 CST 2004

drvvfp.hlp

-Anders


"Andrew Howell" <ajh@work> wrote in message
news:uL8jd$n5DHA.1664@TK2MSFTNGP11.phx.gbl...
> Hello,
> another ODBC question; can I change the date format for queries via
> ODBC?
>
> In fox itself I'd use DATE=BRITISH in the config.fpw or SET DATE BRITISH
in
> code. Can I do anything similar via ODBC?
>
> In fact, is there a good resource/document on using ODBC with fox? I'm
using
> the VFP ODBC driver that came with MDAC 2.6 on FPW2.6 tables.
>
> --
> TIA
> Andrew Howell
>
>


Re: ODBC Date format by Andrew

Andrew
Tue Feb 03 04:56:09 CST 2004

Andrew Howell wrote:
> Hello,
> another ODBC question; can I change the date format for queries
> via ODBC?
>
> In fox itself I'd use DATE=BRITISH in the config.fpw or SET DATE
> BRITISH in code. Can I do anything similar via ODBC?
>
> In fact, is there a good resource/document on using ODBC with fox?
> I'm using the VFP ODBC driver that came with MDAC 2.6 on FPW2.6
> tables.

Thanks for the answers all, they look good.

--
Best regards
Andrew Howell



Re: ODBC Date format by Andrew

Andrew
Tue Feb 03 05:34:00 CST 2004

Andrew Howell wrote:
> Andrew Howell wrote:
>> Hello,
>> another ODBC question; can I change the date format for queries
>> via ODBC?
>>
>> In fox itself I'd use DATE=BRITISH in the config.fpw or SET DATE
>> BRITISH in code. Can I do anything similar via ODBC?
>>
>> In fact, is there a good resource/document on using ODBC with fox?
>> I'm using the VFP ODBC driver that came with MDAC 2.6 on FPW2.6
>> tables.
>
> Thanks for the answers all, they look good.

small update:

Now I've found the helpfile I've managed to query tables in a different path
to the connection's data directory:
Use the full path. This may sound obvious but that's the benefit of
hindsight.

--
Thanks again,
Andrew Howell