Groups | Blog | Home
all groups > sql server dts > january 2005 >

sql server dts : How to link table from another DB


Mike
1/31/2005 10:16:29 AM
Hi all,
I have a DB on SQL Server and I need to create a table that is a link to a
table inside another MsAccess DB. How can I do this?
I'd reply the same behaviour like I do in MsAccess when I run the command
"Link table".
Any help is appreciated.

Regard,
orange
1/31/2005 9:47:55 PM
It is possible to link Access database to SQL as linked server - in
enterprise manager or by sp_addlinkedserver procedure. For detail see BOL.
Regards
Orange

[quoted text, click to view]
Mike
2/1/2005 2:13:03 AM
Could you please give me more detailed explanations? Which are the steps to
follow?
I am new in SQL Server environment: what is BOL?

Thanks a lot.
Mike.

[quoted text, click to view]
Mike
2/1/2005 2:15:03 AM
I,m sorry but could you please give me more details?

Regards,
Mike.

[quoted text, click to view]
Geo
2/1/2005 8:44:31 AM
You can create a link from Access to SQL server using new > link table and
selecting ODBC Databases.
You could also create a view of the MS db table from within SQL server.
Hope this helps.
Geo
[quoted text, click to view]

Geo
2/1/2005 11:57:32 AM
Both these methods are on the assumption that you have administrative access
to both db and they are on the same network.



[Link Table]

If you are going to use the linked table method you would open MS Access
highlight the table you want to link to SQL select new>link table then in
the file types menu select ODBC Databases You will then be prompted to
select a source, select new SQL Server and browse to the server you are
connecting to just follow all the prompts.



[SQL View]

To create a view in SQL it would be something like this.



CREATE VIEW MyView AS
SELECT *
FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0',
'c:\MyAccessdb.mdb';'MyUserName';'MyPassWord', MyTableName)

There is more information at the following URL:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_oa-oz_78z8.asp



Geo


[quoted text, click to view]

AddThis Social Bookmark Button