Unix Technical Forum

Openrowset with Foxpro

This is a discussion on Openrowset with Foxpro within the MS SQL ODBC forums, part of the Microsoft SQL Server category; --> I have taken over an app which uses a SQL server database and links to some dbf files. An ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > MS SQL ODBC

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 09:46 PM
=?Utf-8?B?bWhyMTAw?=
 
Posts: n/a
Default Openrowset with Foxpro

I have taken over an app which uses a SQL server database and links to some
dbf files. An existing proc uses the script below - this works on the live
server

SELECT * FROM OPENROWSET('MSDASQL', 'DRIVER={Microsoft foxpro vfp Driver
(*.dbf)};UID=;Deleted=No;Null=No;Collate=Machine;B ackgroundFetch=No;Exclusive=No;SourceType=DBF;Sour ceDB=c:\abc', 'SELECT * FROM T_MWKNO')

However I cant get this working on a develpment server. The error is:

OLE DB provider 'MSDASQL' reported an error.
[OLE/DB provider returned message: [Microsoft][ODBC Driver Manager] Driver
does not support this function]
OLE DB error trace [OLE/DB Provider 'MSDASQL' IDBInitialize::Initialize
returned 0x80004005: ].

I cant set up a DSN using Microsoft foxpro vfp Driver. This could be a
problem! I have installed the latest updates from the MS site, but no luck

So also tried with the dbase driver - this allowed be to link to the table
using Access. But the Openrowset gave the error

OLE DB provider 'MSDASQL' reported an error.
[OLE/DB provider returned message: [Microsoft][ODBC dBase Driver] The
Microsoft Jet database engine could not find the object 'T_MWKNO'. Make sure
the object exists and that you spell its name and the path name correctly.]
OLE DB error trace [OLE/DB Provider 'MSDASQL' IColumnsInfo::GetColumnsInfo
returned 0x80004005: ].

The file definitely exists.

So, any clues? TReally stumped on this one...

Cheers

--
Mark Robinson
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:51 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com