To be quite honest I find this 4 part name guessing game very annoying as
until one works.
Please do not send email directly to this alias. This alias is for newsgroup
"J.H. Chrysler" <opium89@hotmail.com> wrote in message
news:%23ojjPS3rFHA.308@TK2MSFTNGP10.phx.gbl...
> Sue,
>
> I found what I needed here with this...
>
> 1) sp_catalogs 'LinkedServerName' to get list of valid catalogs
> 2) sp_tables_ex 'LinkedServerName' to get list of tables with schema
> name etc.
>
> Found that the sp_catalogs does not work with either the OLEDB driver
> for Foxpro or the one for ODBC. The sp_tables_ex displays the following
> for ODBC:
>
> Catalog: c:\temp (the location of the .dbf files)
> Schema: NULL
> Table Name: MyTables (.dbf's in c:\temp)
>
> If I run it for the Linked Server configured with the Foxpro driver I
> get:
>
> Catalog: NULL
> SCHEMA: NULL
> Tables: My Tables (.dbf's in c:\temp)
>
> Running "Select * FROM OLEDB_VFP...charzip" returns the rows from the
> table as I would expect, but if I run "Select * FROM ODBC_VFP...charzip"
> SQL returns
>
> Server: Msg 7313, Level 16, State 1, Line 1
> Invalid schema or catalog specified for provider 'MSDASQL'.
>
> Same command but adding the catlog name as displayed like this, Select *
> FROM ODBC_VFP.[c:\temp]..charzip, returns:
>
> "Server: Msg 7306, Level 16, State 2, Line 1
> Could not open table '`c:\temp`\`charzip`' from OLE DB provider
> 'MSDASQL'. The specified table does not exist.
> [OLE/DB provider returned message: [Microsoft][ODBC Visual FoxPro
> Driver]Command contains unrecognized phrase/keyword.]
>
>
> I'm baffled and it would be great to have an explanation why one works
> and the other does not and why one returns the catalog as a directory
> and the other displays NULL.
>
>
>
>
>
>
>
>
>
>
> *** Sent via Developersdex
http://www.developersdex.com ***