1.OpenRowSet方式
SELECT * FROM OpenRowSet('Microsoft.Jet.OLEDB.4.0',';database=C:abc.mdb','select * from student where id=1')
update OpenRowSet('microsoft.jet.oledb.4.0',';database=C:abc.mdb','select * from student where id=1') set name='张三'
2.OpenDataSource方式
select * from OpenDataSource('Microsoft.Jet.OLEDB.4.0','Data Source=C:abc.mdb')...student
update OpenDataSource('microsoft.jet.oledb.4.0','Data Source=C:abc.mdb')...student set name='张三' WHERE id=1
3.链接服务器方式
EXEC sp_addlinkedserver
@server = N'serTest',
@provider = N'Microsoft.Jet.OLEDB.4.0',
@srvproduct = N'OLE DB Provider for Jet',
@datasrc = N'C:abc.mdb';
EXEC sp_addlinkedsrvlogin 'serTest'
EXEC sp_helpserver
--EXEC sp_dropserver N'serTest'
go
UPDATE serTest...student SET name='张三' WHERE id=1
SELECT * FROM serTest...student WHERE id=1