dbTalk Databases Forums  

Connecting to a linked sever with ODBC

comp.databases.olap comp.databases.olap


Discuss Connecting to a linked sever with ODBC in the comp.databases.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Pippen
 
Posts: n/a

Default Connecting to a linked sever with ODBC - 02-10-2004 , 10:11 PM






I'm currently trying to access data from a Cache DB using MSSQL. I have
linked the
Cache server through an ODBC connection. I can see in the Linked Server
expansion
all the tables in Cache for the File(?) I want to access.

Here is my problem: Normally to access a linked sever I would do the
following:

select *
from ServerName.DatabaseName.dbo.TableName

I have tried

select *
from ServerName.DSN.dbo.TableName

select *
from ServerName.DSN.SQLUser.TableName ("SQLUser" is the owner in Cache)

None have worked (error no such object...)

What is the syntax to select data on a linked sever via an ODBC connection?

In the Linked server set up I have also check the RPC and RPC Out options...
My ultimate goal is join tables in Cache and MSSQL into MSSQL.

Any help would be greatly appreciated!

Thanks,

-p



Reply With Quote
  #2  
Old   
Pippen
 
Posts: n/a

Default Re: Connecting to a linked sever with ODBC - 02-10-2004 , 10:23 PM






Oops, should have posted on comp.databases.ms-sqlserver...

-p

"Pippen" <123 (AT) hotmail (DOT) com> wrote

Quote:
I'm currently trying to access data from a Cache DB using MSSQL. I have
linked the
Cache server through an ODBC connection. I can see in the Linked Server
expansion
all the tables in Cache for the File(?) I want to access.

Here is my problem: Normally to access a linked sever I would do the
following:

select *
from ServerName.DatabaseName.dbo.TableName

I have tried

select *
from ServerName.DSN.dbo.TableName

select *
from ServerName.DSN.SQLUser.TableName ("SQLUser" is the owner in Cache)

None have worked (error no such object...)

What is the syntax to select data on a linked sever via an ODBC
connection?

In the Linked server set up I have also check the RPC and RPC Out
options...
My ultimate goal is join tables in Cache and MSSQL into MSSQL.

Any help would be greatly appreciated!

Thanks,

-p





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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.