March 22, 2005 at 2:20 am
The following SQL should allow Exchange Server to be registered as a linked server to SQL Server, and then be queried from SQL Server.
EXEC sp_dropserver 'exchange', 'droplogins'
go
EXEC sp_addlinkedserver 'Exchange', 'Exchange OLE DB provider', 'exoledb.DataSource.1', 'file:\\.\backofficestorage\Server2\Public Folders'
go
EXEC sp_addlinkedsrvlogin 'Exchange', 'false', null, 'Administrator', 'ServerAdminPassword'
go
SELECT convert(nvarchar(30),"urn:schemas:contacts:sn") as LastName
FROM OpenQuery(Exchange, 'SELECT "urn:schemas:contact:sn" FROM SCOPE(''.\Contacts'')')
Unfortunately it gives the following error:
Server: Msg 7304, Level 16, State 2, Line 2
Could not create a new session on OLE DB provider 'exoledb.DataSource.1'.
OLE DB error trace [OLE/DB Provider 'exoledb.DataSource.1' IDBCreateSession::CreateSession returned 0x80070426].
Any ideas? There is very little on the web about this, and nothing I could find was any use whatsoever.
March 23, 2005 at 9:43 am
if you happen to find something useful, let me know. I've tried doing this before, and I recall getting the same message. The annoying thing is that setting up a link to exchange is really easy through Access, but I've never been able to get it to properly work through sql server.
April 26, 2006 at 12:15 pm
The OLE DB provider "exoledb.DataSource.1" has not been registered.
May 1, 2006 at 7:32 am
I suspect the reason it is so 'easy' to link in MS Access, is because both Exchange and Access use the same db jet engine. Try getting your table info inside of Access then Import via DTS to SQL - good luck!
-Marti
September 8, 2011 at 11:22 am
Where did you find the exoledb.DataSource.1 driver? I cannot seem to find where to get it.
November 21, 2011 at 12:46 pm
I have exactly the same issue. I have our SQL server 2008 on a different server from our exchange server and I can not make the connection work. Setting it up in MSAccess is all well and good, but I am looking to get the calendar info - which access links to on the users Documents and Settings on the local PC
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply