Unix Technical Forum

Seeing Multiple tables from a linked server

This is a discussion on Seeing Multiple tables from a linked server within the MS SQL ODBC forums, part of the Microsoft SQL Server category; --> I'm using Dharma ODBC to create a linked server to a databalse residing on an SCO Unix box. The ...


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, 07:34 PM
Bill Nguyen
 
Posts: n/a
Default Seeing Multiple tables from a linked server

I'm using Dharma ODBC to create a linked server to a databalse residing on
an SCO Unix box. The linked server looks good. However, when I tried to run
select statments (or creating views), the following error messages always
came up:

Server: Msg 7315, Level 16, State 1, Line 1
OLE DB provider 'MSDASQL' contains multiple tables that match the name
'bfl_ar_totals'.
OLE DB error trace [Non-interface error: OLE DB provider contains multiple
tables which match the given name: ProviderName='MSDASQL',
TableName='bfl_ar_totals'].

How can I restrict the ODBC to see only single catalogued table?
Thanks
Bill


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 07:34 PM
Jacco Schalkwijk
 
Posts: n/a
Default Re: Seeing Multiple tables from a linked server

I assume you have to provide the database name and/or the schema/owner name
as well as the table name?

--
Jacco Schalkwijk
SQL Server MVP



"Bill Nguyen" <billn_nospam_please@jaco.com> wrote in message
news:eeaylZxnDHA.2592@TK2MSFTNGP10.phx.gbl...
> I'm using Dharma ODBC to create a linked server to a databalse residing on
> an SCO Unix box. The linked server looks good. However, when I tried to

run
> select statments (or creating views), the following error messages always
> came up:
>
> Server: Msg 7315, Level 16, State 1, Line 1
> OLE DB provider 'MSDASQL' contains multiple tables that match the name
> 'bfl_ar_totals'.
> OLE DB error trace [Non-interface error: OLE DB provider contains

multiple
> tables which match the given name: ProviderName='MSDASQL',
> TableName='bfl_ar_totals'].
>
> How can I restrict the ODBC to see only single catalogued table?
> Thanks
> Bill
>
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 07:34 PM
Bill Nguyen
 
Posts: n/a
Default Re: Seeing Multiple tables from a linked server


This is my sql syntax:

select h.*
from cpro1..dharma.bc h

CPRO1 = linked server name
dharma = catalog
bc = table

The following syntax worked with VIEWs, not tables:

Create View vw_bfl_ar_details as
SELECT bfl.*
FROM cpro1..dharma.bfl_ar_details bfl
go


Any suggestion is greatly appreciated.
Bill

"Jacco Schalkwijk" <NOSPAMjaccos@eurostop.co.uk> wrote in message
news:u%23rSTkynDHA.2772@TK2MSFTNGP12.phx.gbl...
> I assume you have to provide the database name and/or the schema/owner

name
> as well as the table name?
>
> --
> Jacco Schalkwijk
> SQL Server MVP
>
>
>
> "Bill Nguyen" <billn_nospam_please@jaco.com> wrote in message
> news:eeaylZxnDHA.2592@TK2MSFTNGP10.phx.gbl...
> > I'm using Dharma ODBC to create a linked server to a databalse residing

on
> > an SCO Unix box. The linked server looks good. However, when I tried to

> run
> > select statments (or creating views), the following error messages

always
> > came up:
> >
> > Server: Msg 7315, Level 16, State 1, Line 1
> > OLE DB provider 'MSDASQL' contains multiple tables that match the name
> > 'bfl_ar_totals'.
> > OLE DB error trace [Non-interface error: OLE DB provider contains

> multiple
> > tables which match the given name: ProviderName='MSDASQL',
> > TableName='bfl_ar_totals'].
> >
> > How can I restrict the ODBC to see only single catalogued table?
> > Thanks
> > Bill
> >
> >

>
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-27-2008, 07:34 PM
Jacco Schalkwijk
 
Posts: n/a
Default Re: Seeing Multiple tables from a linked server

Not all databases support the four part naming convention (MySQL is one of
them). You can work around this by setting up a linked server and using
OPENQUERY, for example:
Create View vw_bfl_ar_details as
SELECT <column list>
FROM OPENQUERY(<linked sevrer>, 'SELECT <column list> FROM bfl_ar_details')

If this doesn't help you have to check the documentation for the ODBC driver
and the database you are connecting to.

--
Jacco Schalkwijk
SQL Server MVP


"Bill Nguyen" <billn_nospam_please@jaco.com> wrote in message
news:ut$Ud$0nDHA.2272@tk2msftngp13.phx.gbl...
>
> This is my sql syntax:
>
> select h.*
> from cpro1..dharma.bc h
>
> CPRO1 = linked server name
> dharma = catalog
> bc = table
>
> The following syntax worked with VIEWs, not tables:
>
> Create View vw_bfl_ar_details as
> SELECT bfl.*
> FROM cpro1..dharma.bfl_ar_details bfl
> go
>
>
> Any suggestion is greatly appreciated.
> Bill
>
> "Jacco Schalkwijk" <NOSPAMjaccos@eurostop.co.uk> wrote in message
> news:u%23rSTkynDHA.2772@TK2MSFTNGP12.phx.gbl...
> > I assume you have to provide the database name and/or the schema/owner

> name
> > as well as the table name?
> >
> > --
> > Jacco Schalkwijk
> > SQL Server MVP
> >
> >
> >
> > "Bill Nguyen" <billn_nospam_please@jaco.com> wrote in message
> > news:eeaylZxnDHA.2592@TK2MSFTNGP10.phx.gbl...
> > > I'm using Dharma ODBC to create a linked server to a databalse

residing
> on
> > > an SCO Unix box. The linked server looks good. However, when I tried

to
> > run
> > > select statments (or creating views), the following error messages

> always
> > > came up:
> > >
> > > Server: Msg 7315, Level 16, State 1, Line 1
> > > OLE DB provider 'MSDASQL' contains multiple tables that match the name
> > > 'bfl_ar_totals'.
> > > OLE DB error trace [Non-interface error: OLE DB provider contains

> > multiple
> > > tables which match the given name: ProviderName='MSDASQL',
> > > TableName='bfl_ar_totals'].
> > >
> > > How can I restrict the ODBC to see only single catalogued table?
> > > Thanks
> > > Bill
> > >
> > >

> >
> >

>
>



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 12:11 AM.


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