Does anyone know how to simply connect to a FoxPro 6 .dbf file using
ADO.NET's OleDb provider so I can query the data?
Mainly I need to know what the connection string is so I can execute a
query.

Thanks,
Tony

Re: How do I connect to a FoxPro 6 .dbf file using OleDb? by Robbe

Robbe
Fri Jul 29 18:55:53 CDT 2005

I'm not 100% sure this will work with OleDb. However,
it is a valid connection string for classic ADO 2.6 and higher.

oADOCon.Open "DBQ=c:\temp;" _
& "Driver={Microsoft dBase Driver (*.dbf)};" _
& "DriverId=277;FIL=dBase4.0"

--
2004 and 2005 Microsoft MVP C#
Robbe Morris
http://www.masterado.net

Earn $$$ money answering .NET Framework
messageboard posts at EggHeadCafe.com.
http://www.eggheadcafe.com/forums/merit.asp



"Tony" <tonyng2@spacecommand.net> wrote in message
news:eh%23bLXIlFHA.3288@TK2MSFTNGP09.phx.gbl...
> Does anyone know how to simply connect to a FoxPro 6 .dbf file using
> ADO.NET's OleDb provider so I can query the data?
> Mainly I need to know what the connection string is so I can execute a
> query.
>
> Thanks,
> Tony
>



Re: How do I connect to a FoxPro 6 .dbf file using OleDb? by Cindy

Cindy
Sat Jul 30 00:56:45 CDT 2005

Hi Robbe,

The dBase driver will not work with Visual FoxPro tables.

--
Cindy Winegarden MCSD, Microsoft Visual Foxpro MVP
cindy_winegarden@msn.com www.cindywinegarden.com
Blog: http://spaces.msn.com/members/cindywinegarden


"Robbe Morris [C# MVP]" <info@eggheadcafe.com> wrote in message
news:ORbCWjJlFHA.3960@TK2MSFTNGP12.phx.gbl...
> I'm not 100% sure this will work with OleDb. However,
> it is a valid connection string for classic ADO 2.6 and higher.
>
> oADOCon.Open "DBQ=c:\temp;" _
> & "Driver={Microsoft dBase Driver (*.dbf)};" _
> & "DriverId=277;FIL=dBase4.0"
>
> --
> 2004 and 2005 Microsoft MVP C#
> Robbe Morris
> http://www.masterado.net
>
> Earn $$$ money answering .NET Framework
> messageboard posts at EggHeadCafe.com.
> http://www.eggheadcafe.com/forums/merit.asp
>
>
>
> "Tony" <tonyng2@spacecommand.net> wrote in message
> news:eh%23bLXIlFHA.3288@TK2MSFTNGP09.phx.gbl...
>> Does anyone know how to simply connect to a FoxPro 6 .dbf file using
>> ADO.NET's OleDb provider so I can query the data?
>> Mainly I need to know what the connection string is so I can execute a
>> query.
>>
>> Thanks,
>> Tony
>>
>
>



Re: How do I connect to a FoxPro 6 .dbf file using OleDb? by Cindy

Cindy
Sat Jul 30 01:02:18 CDT 2005

Hi Tony,

Download the latest FoxPro and Visual FoxPro OLE DB data provider from
msdn.microsoft.com/vfoxpro/downloads/updates.

The minimum connection string is

' For Visual FoxPro "free" tables
strConn = "Provider=VFPOLEDB.1;Data Source=C:\;"

' For a Visual FoxPro Database Container
' (a DBC file is present)
strConn = "Provider=VFPOLEDB.1;Data Source=C:\MyDBC.dbc;"

Post back if you can't figure it out from there.

--
Cindy Winegarden MCSD, Microsoft Visual Foxpro MVP
cindy_winegarden@msn.com www.cindywinegarden.com
Blog: http://spaces.msn.com/members/cindywinegarden


"Tony" <tonyng2@spacecommand.net> wrote in message
news:eh%23bLXIlFHA.3288@TK2MSFTNGP09.phx.gbl...
> Does anyone know how to simply connect to a FoxPro 6 .dbf file using
> ADO.NET's OleDb provider so I can query the data?
> Mainly I need to know what the connection string is so I can execute a
> query.
>
> Thanks,
> Tony
>



Geez. Should have looked at that closer by Robbe

Robbe
Sat Jul 30 10:19:47 CDT 2005

I saw "2.6" instead of 6.0

--
2004 and 2005 Microsoft MVP C#
Robbe Morris
http://www.masterado.net

Earn $$$ money answering .NET Framework
messageboard posts at EggHeadCafe.com.
http://www.eggheadcafe.com/forums/merit.asp



"Cindy Winegarden" <cindy_winegarden@msn.com> wrote in message
news:eTLdHxMlFHA.3312@tk2msftngp13.phx.gbl...
> Hi Robbe,
>
> The dBase driver will not work with Visual FoxPro tables.
>
> --
> Cindy Winegarden MCSD, Microsoft Visual Foxpro MVP
> cindy_winegarden@msn.com www.cindywinegarden.com
> Blog: http://spaces.msn.com/members/cindywinegarden
>
>
> "Robbe Morris [C# MVP]" <info@eggheadcafe.com> wrote in message
> news:ORbCWjJlFHA.3960@TK2MSFTNGP12.phx.gbl...
>> I'm not 100% sure this will work with OleDb. However,
>> it is a valid connection string for classic ADO 2.6 and higher.
>>
>> oADOCon.Open "DBQ=c:\temp;" _
>> & "Driver={Microsoft dBase Driver (*.dbf)};" _
>> & "DriverId=277;FIL=dBase4.0"
>>
>> --
>> 2004 and 2005 Microsoft MVP C#
>> Robbe Morris
>> http://www.masterado.net
>>
>> Earn $$$ money answering .NET Framework
>> messageboard posts at EggHeadCafe.com.
>> http://www.eggheadcafe.com/forums/merit.asp
>>
>>
>>
>> "Tony" <tonyng2@spacecommand.net> wrote in message
>> news:eh%23bLXIlFHA.3288@TK2MSFTNGP09.phx.gbl...
>>> Does anyone know how to simply connect to a FoxPro 6 .dbf file using
>>> ADO.NET's OleDb provider so I can query the data?
>>> Mainly I need to know what the connection string is so I can execute a
>>> query.
>>>
>>> Thanks,
>>> Tony
>>>
>>
>>
>
>



Re: How do I connect to a FoxPro 6 .dbf file using OleDb? by Tony

Tony
Mon Aug 01 03:19:36 CDT 2005

I tried the OleDb provider you suggested and it worked fine. Thanks for the
info.

BUT, I would rather be able to access the table via Jet if at all possible,
since installing the OleDb driver requires admin privileges on the client
machine and you know those corporate IT Nazi's when it comes to installing
anything on a client machine...!

Is there another option?

Tony

"Cindy Winegarden" <cindy_winegarden@msn.com> wrote in message
news:%2393Hd0MlFHA.3288@TK2MSFTNGP09.phx.gbl...
> Hi Tony,
>
> Download the latest FoxPro and Visual FoxPro OLE DB data provider from
> msdn.microsoft.com/vfoxpro/downloads/updates.
>
> The minimum connection string is
>
> ' For Visual FoxPro "free" tables
> strConn = "Provider=VFPOLEDB.1;Data Source=C:\;"
>
> ' For a Visual FoxPro Database Container
> ' (a DBC file is present)
> strConn = "Provider=VFPOLEDB.1;Data Source=C:\MyDBC.dbc;"
>
> Post back if you can't figure it out from there.
>
> --
> Cindy Winegarden MCSD, Microsoft Visual Foxpro MVP
> cindy_winegarden@msn.com www.cindywinegarden.com
> Blog: http://spaces.msn.com/members/cindywinegarden
>
>
> "Tony" <tonyng2@spacecommand.net> wrote in message
> news:eh%23bLXIlFHA.3288@TK2MSFTNGP09.phx.gbl...
>> Does anyone know how to simply connect to a FoxPro 6 .dbf file using
>> ADO.NET's OleDb provider so I can query the data?
>> Mainly I need to know what the connection string is so I can execute a
>> query.
>>
>> Thanks,
>> Tony
>>
>
>



Re: How do I connect to a FoxPro 6 .dbf file using OleDb? by Cindy

Cindy
Mon Aug 01 14:14:52 CDT 2005

Hi Tony,

The only other alternative is ODBC (downloadable from the same location).
Jet will not work with the new data features added in Visual FoxPro.

--
Cindy Winegarden MCSD, Microsoft Visual Foxpro MVP
cindy_winegarden@msn.com www.cindywinegarden.com
Blog: http://spaces.msn.com/members/cindywinegarden


"Tony" <tonyng2@spacecommand.net> wrote in message
news:uha$AHnlFHA.2860@TK2MSFTNGP15.phx.gbl...
>I tried the OleDb provider you suggested and it worked fine. Thanks for the
>info.
>
> BUT, I would rather be able to access the table via Jet if at all
> possible, since installing the OleDb driver requires admin privileges on
> the client machine and you know those corporate IT Nazi's when it comes to
> installing anything on a client machine...!
>
> Is there another option?



Re: How do I connect to a FoxPro 6 .dbf file using OleDb? by Tony

Tony
Tue Aug 02 15:23:15 CDT 2005

ODBC requires a driver to be installed also - appears to be the same issue.
Thanks for the info.
Tony

"Cindy Winegarden" <cindy_winegarden@msn.com> wrote in message
news:%237jYb24lFHA.1412@TK2MSFTNGP09.phx.gbl...
> Hi Tony,
>
> The only other alternative is ODBC (downloadable from the same location).
> Jet will not work with the new data features added in Visual FoxPro.
>
> --
> Cindy Winegarden MCSD, Microsoft Visual Foxpro MVP
> cindy_winegarden@msn.com www.cindywinegarden.com
> Blog: http://spaces.msn.com/members/cindywinegarden
>
>
> "Tony" <tonyng2@spacecommand.net> wrote in message
> news:uha$AHnlFHA.2860@TK2MSFTNGP15.phx.gbl...
>>I tried the OleDb provider you suggested and it worked fine. Thanks for
>>the info.
>>
>> BUT, I would rather be able to access the table via Jet if at all
>> possible, since installing the OleDb driver requires admin privileges on
>> the client machine and you know those corporate IT Nazi's when it comes
>> to installing anything on a client machine...!
>>
>> Is there another option?
>
>