Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

ODBC Connection to a linked database
I'd like to set up an ODBC DSN to a table in a linked SQL Server, via
my local SQL Server.

I'm having a few problems:
1. When I use Enterprise Manager to link the remote SQL Server, it
doesn't allow me to select the database in the remote server.  It only
shows one database.

2. When I use the Data Sources program to set up the ODBC DSN, it only
shows databases in the local SQL Server, not in the linked one.  If I
try typing it in: & #91;NAMEOFLINKEDSERV
ER].databasename - it tells me that
it is an invalid table.


Report this thread to moderator Post Follow-up to this message
Old Post
listrecv@gmail.com
01-22-06 08:23 AM


Re: ODBC Connection to a linked database
Thats quite normal, but you are able to use the four part notation,
which will switch to another database if specified.

E.g. ODBC Connection points automatically to Northwind ( as the default
database of the user) you can use

SELECT <columnlist> FROM Linkdservername.Databasename.Objectname

which switches to the other database to select.

HTH, Jens Suessmeyer.


Report this thread to moderator Post Follow-up to this message
Old Post
Jens
01-22-06 12:23 PM


Re: ODBC Connection to a linked database
Jens,

Thank you.

I'd rather not need to change the table names in the MDB.  They just
use the default database of the ODBC Data Source.  How can I set the
ODBC default database to be a database in a linked server?


Report this thread to moderator Post Follow-up to this message
Old Post
listrecv@gmail.com
01-22-06 02:23 PM


Re: ODBC Connection to a linked database
if you are using a DSN, just go in the ODBC Administrator (of Windows)
and change the database to the ones needed.

HTH, jens Suessmeyer.


Report this thread to moderator Post Follow-up to this message
Old Post
Jens
01-22-06 04:23 PM


Re: ODBC Connection to a linked database
Jens,

Thanks - but the ODBC Adminsitrator only shows *local* databases, not
databases on the linked server.  If I try to just type it in, it tells
me that it's not a valid db, and refuses to let me do so!!!


Report this thread to moderator Post Follow-up to this message
Old Post
listrecv@gmail.com
01-23-06 01:23 AM


Re: ODBC Connection to a linked database
How did you register the linked server ? Is it a DSN bind linked server
or was it specified within a conneciton string ? ODBC Administrator
doesn=B4t show only the local databases, it shows the servers/databases
that were specified within the DSN. Look at the server ODBC Admin to
see if connection to your linked server is specified (some people look
on their local DSN rather than looking on the remote DSNs onthe SQL
Server which uses the linked server)

HTH, Jens Suessmeyer.


Report this thread to moderator Post Follow-up to this message
Old Post
Jens
01-23-06 08:23 AM


Sponsored Links





Last Thread Next Thread
Post New Thread

Microsoft SQL Server forum archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 04:05 AM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006