Yes, you can use the Exchange Server as linked server to SQL Server
for example: query to get the
user names.
Following is a guide line tsql code to create a linked server
--The following line creates the linked server:
sp_addlinkedserver 'ADSI', 'Active Directory Service Interfaces',
'ADSDSOObject', 'adsdatasource'
- Please see the MSDN Help for 'ADSDSOObject' provider details.
-Use following query to get the Exchange User Info,
select cn, col2 from openquery(ADSI, 'select cn from
''LDAP://ExchangeServerNam
as adsiName, table1 where table1.col2 = adsiName.cn
go
Main Topics
Browse All Topics





by: RichardCorriePosted on 2006-01-10 at 08:13:00ID: 15661815
In theory you can link to an exchange folder from SQL server.
You need to check that the exchange OLE Db provider is on the server and then Add a linked server and select the Exchange OLE Db provider.
/Richard