Groups | Blog | Home
all groups > sql server connect > november 2003 >

sql server connect : link a table


xiaowei
11/3/2003 12:50:49 PM
Is there any way in sql server to link a table in ODBC
data source(Access database on our network)?

Allan Mitchell
11/3/2003 9:18:21 PM
Have you looked at Linked Servers in BOL ?

--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


[quoted text, click to view]

Jaime E. Maccou
11/11/2003 8:09:38 AM
Here is a sample using linkserver, replace with your mdb
location
EXEC sp_addlinkedserver @server = access ,
@srvproduct = 'Jet 4.0',
@provider = 'Microsoft.Jet.OLEDB.4.0',
@datasrc = 'c:\test\northwind.mdb',
@location = NULL,
@provstr = NULL,
@catalog = NULL
GO
--Set up login mappings
EXEC sp_addlinkedsrvlogin @rmtsrvname = Access,
@useself = True,
@locallogin = NULL,
@rmtuser = admin,
@rmtpassword = NULL


[quoted text, click to view]
AddThis Social Bookmark Button