Click here to Skip to main content
15,881,898 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I've used a connection string for Outlook 2003 to query my contacts and emails. How can I update my connection string to work with Outlook 2010? I've tried google, but have not found anything that works yet.

To query email,
C++
Provider=Microsoft.JET.OLEDB.4.0;Exchange 4.0;MAPILEVEL=Personal Folders|;PROFILE=Outlook;TABLETYPE=0;DATABASE=C:\temp;Persist Security



To query address book,
C++
Provider=Microsoft.JET.OLEDB.4.0;Exchange 4.0;MAPILEVEL=Outlook Address Book;PROFILE=Outlook;TABLETYPE=1;DATABASE=C:\Documents and Settings\Ted\Local Settings\Application Data\Microsoft\Outlook;Persist Security Info=False
Posted

1 solution

Try these:

Provider=Microsoft.JET.OLEDB.4.0;Exchange 4.0;MAPILEVEL=Personal Folders\;PROFILE=Outlook;TABLETYPE=0;DATABASE=C:\temp;Persist Security<br />
<br />
Provider=Microsoft.JET.OLEDB.4.0;Exchange 4.0;MAPILEVEL=Outlook Address Book\;PROFILE=Outlook;TABLETYPE=1;DATABASE=C:\Documents and Settings\Ted\Local Settings\Application Data\Microsoft\Outlook;Persist Security Info=False.
 
Share this answer
 
Comments
T2102 6-May-11 12:07pm    
Unfortunately that did not work. I replace C:\Temp with C:\Windows\Temp since my fresh copy of Windows 7 does not have that directory.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900