Unix Technical Forum

Linked Server to DBC Data

This is a discussion on Linked Server to DBC Data within the MS SQL ODBC forums, part of the Microsoft SQL Server category; --> Hi All, I'm having trouble setting up a linked server OR using an OpenRowset operation from SQL Server against ...


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

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 09:12 PM
REM7600
 
Posts: n/a
Default Linked Server to DBC Data

Hi All,

I'm having trouble setting up a linked server OR using an OpenRowset operation from SQL Server against once of the DBC files from one of our vendors.

I can get connected through a DSN using Microsoft Access without trouble but when trying to set up a linked server on the same DSN I get the following error...

************************************************** ****************
Server: Msg 7399, Level 16, State 1, Line 1
OLE DB provider 'MSDASQL' reported an error.
[OLE/DB provider returned message: [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed]
[OLE/DB provider returned message: [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed]
[OLE/DB provider returned message: [Microsoft][ODBC Visual FoxPro Driver]Cannot open file c:\data\MyDB.dbc.]
OLE DB error trace [OLE/DB Provider 'MSDASQL' IDBInitialize::Initialize returned 0x80004005: ].
************************************************** ****************

Can someone advise?

Thanks!

Travis
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 09:12 PM
REM7600
 
Posts: n/a
Default Re: Linked Server to DBC Data

Sorry, for clarification, a DBC file is a FoxPro Data file.
"REM7600" <rem7600@hotmail.com> wrote in message news:%23mkG6JLiGHA.4044@TK2MSFTNGP03.phx.gbl...
Hi All,

I'm having trouble setting up a linked server OR using an OpenRowset operation from SQL Server against once of the DBC files from one of our vendors.

I can get connected through a DSN using Microsoft Access without trouble but when trying to set up a linked server on the same DSN I get the following error...

************************************************** ****************
Server: Msg 7399, Level 16, State 1, Line 1
OLE DB provider 'MSDASQL' reported an error.
[OLE/DB provider returned message: [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed]
[OLE/DB provider returned message: [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed]
[OLE/DB provider returned message: [Microsoft][ODBC Visual FoxPro Driver]Cannot open file c:\data\MyDB.dbc.]
OLE DB error trace [OLE/DB Provider 'MSDASQL' IDBInitialize::Initialize returned 0x80004005: ].
************************************************** ****************

Can someone advise?

Thanks!

Travis
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 09:12 PM
Cindy Winegarden
 
Posts: n/a
Default Re: Linked Server to DBC Data

Hi Travis,

You haven't posted which version of SQL Server you are using or the code
you're using in the OpenRowset statement.

First, be sure you have the latest FoxPro and Visual FoxPro OLE DB data
provider, downloadable from msdn.microsoft.com/vfoxpro/downloads/updates.

I've successfully set up linked servers with code like this:

EXEC master.dbo.sp_addlinkedserver
@server = N'VFP_Northwind',
@srvproduct=N'Microsoft Visual FoxPro OLE DB Data Provider',
@provider=N'VFPOLEDB',
@datasrc=N'C:\Program Files\Microsoft Visual FoxPro
9\Samples\Northwind\Northwind.dbc',
@provstr=N'VFPOLEDB.1'

After that you can access data with the four-part naming convention:

Select * From VFP_Northwind...Customers


--
Cindy Winegarden MCSD, Microsoft Most Valuable Professional
cindy@cindywinegarden.com


"REM7600" <rem7600@hotmail.com> wrote in message
news:%23mkG6JLiGHA.4044@TK2MSFTNGP03.phx.gbl...
Hi All,

I'm having trouble setting up a linked server OR using an OpenRowset
operation from SQL Server against once of the DBC files from one of our
vendors.

I can get connected through a DSN using Microsoft Access without trouble but
when trying to set up a linked server on the same DSN I get the following
error...

************************************************** ****************
Server: Msg 7399, Level 16, State 1, Line 1
OLE DB provider 'MSDASQL' reported an error.
[OLE/DB provider returned message: [Microsoft][ODBC Driver Manager] Driver's
SQLSetConnectAttr failed]
[OLE/DB provider returned message: [Microsoft][ODBC Driver Manager] Driver's
SQLSetConnectAttr failed]
[OLE/DB provider returned message: [Microsoft][ODBC Visual FoxPro
Driver]Cannot open file c:\data\MyDB.dbc.]
OLE DB error trace [OLE/DB Provider 'MSDASQL' IDBInitialize::Initialize
returned 0x80004005: ].
************************************************** ****************


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-27-2008, 09:12 PM
REM7600
 
Posts: n/a
Default Re: Linked Server to DBC Data

Cindy,

Thanks for the reply... I've definitely seen your name a time or two around
the web in my search. As it turns out, I believe it to be related to
security. And how our network (Linux/Samba based shares) handles
authentication. I could be wrong but I've given up... Locally I can make
it work fine, on a share NO GO...

Regardless, I've taken a different direction on the solution and it looks
like I'm going to be able to come out with my "goaled for" end result.

Thanks for the reply.

TR



> you're using in the OpenRowset statement.
>
> First, be sure you have the latest FoxPro and Visual FoxPro OLE DB data
> provider, downloadable from msdn.microsoft.com/vfoxpro/downloads/updates.
>
> I've successfully set up linked servers with code like this:
>
> EXEC master.dbo.sp_addlinkedserver
> @server = N'VFP_Northwind',
> @srvproduct=N'Microsoft Visual FoxPro OLE DB Data Provider',
> @provider=N'VFPOLEDB',
> @datasrc=N'C:\Program Files\Microsoft Visual FoxPro
> 9\Samples\Northwind\Northwind.dbc',
> @provstr=N'VFPOLEDB.1'
>



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 10:35 AM.


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