Retrieving Mails from Exchange or from outlook 2010 using TSQL

Hi,
Will you please provide step by step queries to retrieve mails from directly from Exchange Server or else retrieving mails from the outlook 2010 which is connected Exchange Server.
I have SQL Server 2012 developer edition, outlook 2010 and no idea what version of Company Exchange Server available.
I google this solution but not successful. Mostly example i found old Exchange or SQL Server 7.0
Thanks.

Hi Visakh,
Will you please assist here :
EXEC sp_addlinkedserver 'exchange',
'Exchange OLE DB provider',
'exoledb.DataSource.1',
'file:\\.\backofficestorage\localhost\public folders'
- I don't have "Exchange OLE DB Provider"(exoledb.DataSource.1) in my Linked Server connection, from where can I download so that it can view in SQL Server Linked Servers.
Will you please let me know the path('file:\\.\backofficestorage\localhost\public folders'), what exactly it is. Is it .pst/.ost file location.
Thanks.
Best Regards
Kashif Chotu

Similar Messages

  • How do I import mail from Outlook 2010?

    When I try to import my emails from Outlook 2010 I get the following message:
    "An error occurred importing mail from Outlook
    Unable to find mail to import. Check to make sure the mail application is correctly installed on this machine."

    You'll need to do it from a 32bit version - Mail/Live mail do not recongise outlook 2010 64 bit.  Dropping EML files into Outlook folder has always created new messages with attachments - this is nothing new.
    ETA: if you can email the messages as attachments, you can drag them from the message and drop them in the Inbox.  This obviously works best if there aren't hundreds of messages to convert. :)
    There are 3rd party utilties that can make the conversion but they may not work with the 64bit version. See http://www.slipstick.com/config/convmsg.htm for a list of programs that can make the conversion but i don't know if any of them work with 64bit outlook.
    Diane Poremsky [MVP - Outlook]
    Outlook Tips: http://www.outlook-tips.net/
    Outlook & Exchange Solutions Center: http://www.slipstick.com

  • How to retrieve mails from outlook or hotmail?

    Hello all,
    How do I retrieve mails from hotmail or outlook using javamail. I am very new to javamail. Please give some idea.
    Thanks,
    mamata.

    sorry u can't.
    not from hotmail because u don't know the server address of hotmail.
    and not from outlook b'cause that is yet another Mail Transfer Agent like Java mail API.
    hope that helps.
    bye

  • How can I import the adress book and my mails from Outlook 2010?

    I am using Windows 8.1 and I want to change Outlook 2010 for Thunderbird, but I don't know how to import the data from Outlook to Thunderbird.

    http://en.flossmanuals.net/thunderbird/migrating/

  • Deleted messages from Outlook 2010 still appear on iPhone and OWA

    I have a very odd issue.  When I delete e-mails from Outlook 2010, they are deleted fine.  However, when I check my mail on my iPhone, or on the Outlook Web Access, the e-mail is still there.  I'm not sure what is going on.  Our e-mail
    is set up on an Exchange Server.  Is there a setting in Outlook that is not deleting the e-mail from the server?
    Thanks

    Hi Joseph,
    Could the emails be deleted via OWA and not displaying in Outlook?
    Please try to create a new profile and set it to online mode, then test the issue and see if it still appears in OWA.
    If it doesn’t work, I’d recommend you contact with Exchange admin for further troubleshooting.
    Regards,
    Rebecca
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Trouble sending emails from outlook 2010 to Ipad as excel attachments although.  One one recipent can not open the other can!!?? Help

    Please Help!!!
    When sending e-mails from outlook 2010 with excel attachements the recipents can view no problems.  However, a new member has joined but cant read the attachements?
    I'm lost!!!
    Please help
    Scott

    Hi there,
    Can you import the PST file and find the sent items in another Outlook for Windows? If the issue only occurs in Outlook for MAC, I'd suggest you pose the question in the forums below:
    Office for MAC
    http://www.microsoft.com/mac/support
    Support for Microsoft Office for Mac 2011 and 2008
    http://support.microsoft.com/gp/cp_macoffice2008_master
    How to obtain support for Microsoft Outlook for Mac 2011 connectivity problems with Exchange Server
    http://support.microsoft.com/kb/2353366
    Your understanding would be appreciated.
    Fiona Liao
    TechNet Community Support

  • Exchange 2013 with Outlook 2010 anywhere - Public Folders disappear from Outlook favourites

    Hi,
    we have a 3 server Exchange 2013 SP1 DAG published with Forefront TMG. 
    Outlook 2010 anywhere connection works fine (only anywhere connection is possible, there are no clients in the exchange server AD).
    The users are adding public folders to their local Outlook favorites. In about 10% of the Outlook starts, those public folders are missing in the favorites. Local favorites folders are still there, public folders are connected.
    After restarting the Outlook a few times, the favorites are back. 
    Deleting the outlook.xml brought no success, the favorites seem to be saved somewhere on the exchange server.
    Outlook 2010 is up to date, all hotfixes are installed.
    There are no related entries in servers or clients eventlogs, the logs of the TMG server are normal.
    Does anyone have a simular behavior?
    Thanks in advance!

    Hi,
    According to your description,it is clear that something got corrupted, but it is hard to say directly what caused it. However, there are a few troubleshooting steps to determine what caused it and you can also make a backup of your Favorite Folders list
    so you can easily restore it when it still happens.
    Pleaser refer to the following article:
    Favorite Folders empty upon restart
    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot
    make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.
    Hope this helps!
    Thanks.
    If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Niko Cheng
    TechNet Community Support

  • Exchange 2013 Issue: Outlook 2010 auto populating the From Tab when forwarding email

    Exchange 2013 Issue: Outlook 2010 auto populating the From Tab when forwarding email        
    I am running Exchange 2013 and I have an end user who connects to it via Outlook 2010. All was going well till he went to forward an email and he noticed that the From button appeared and auto populated the sender's email address.
    I have clicked the Empty Auto Complete List in Outlook's Send messages... still displayed the From tab when forwarding.
    I recreated the profile in outlook... same thing.
    I created the profile with outlook 2013... same thing.
    There is only one user profile setup in Outlook.
    (I know the from tab usually appears when you have multiple profiles setup in Outlook and/or when you configure the "From" tab.)
    I opened the end user's email in Exch 2013's OWA... what was different here was when I clicked on the email and it opened, it did NOT have the Reply or Forward option... and it displayed as a "Draft" email.
    Does anyone have any ideas?

    So are you saying that the from button is filling the option with the original senders address (eg the person who sent the message to your user), or that it's filling in the your users address (in which case I don't understand what the issue is, since
    it IS going from your user)?

  • How to exchange E-mail from Outlook?

    After an update of the software of the N97 to version 12, I had to install again the exchange option with Outlook. Contacts, Agenda, Tasks, ... works fine, but I can't get the mail exchange working again.
    My purpose is just to load the mails of say 5 days from Outlook into the N97. In the Ovi Suite I have chosen: 
    Nokia PC sync instellingen: I have chosen E-mail, too; folder: Inbox; exclusief e-mails bigger than 200 kb.
    I think I do something wrong on the N97-side (and can't remember what I did right the very first time).
    Is it right to chose a mailbox: @home
    use as a usernaam the name I use in Outlook
    use as a password the password I use in Outlook
    use the same server for incoming mails as I use in Outlook
    use a standardconnection
    Mailboxname: the name after @Home
    use as Mailboxtype the same I use in Outlook: POP3
    use as port: standard?
    First I would like to have this working.
    Even better would be if I could use two mailboxes: 1 for e-mails from Outlook; 2 for e-mails from a different source via internet.
    Message Edited by loriot on 22-Sep-2009 05:08 PM

    As I can't believe that no one here knows the anwser, I think my description and/or title is unclear.
    It's about synchronization between the N97 and Outlook, but the problem I have only with synchronizing E-mails between the N97 and Outlook; synchronizing agenda, contacts, tasks, ... works well. 
    Message Edited by loriot on 23-Sep-2009 07:01 AM

  • Clean install Exchange 2013 on win2012 server and separate win2012 R2 DC not sending mail from Outlook

    Hello,
    I'm struggeling with a problem. I've a clean installed exchange 2013 on a windows 2012 server. The DC is on a separate server. But I can't send a mail from Outlook and the recieve connector is correctly configured. There are no error's and mail in the queue
    Even sending a mail from the OWA ends in the Drafts folder from that user.
    Can somebody help me with this?
    Thanks Michel

    Hello,
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    I'm marking the reply as answer as there has been no update for a couple of days.
    If you come back to find it doesn't work for you, please reply to us and unmark the answer.
    Cara Chen
    TechNet Community Support

  • TS3899 Sending a meeting invite from Exchange 2007 account located in Central Time from Outlook 2010 Email Client located in Eastern Time cause meeting to show up 1 hour early on iPhone

    Sending a meeting invite from Exchange 2007 account located in Central Time from Outlook 2010 Email Client located in Eastern Time cause meeting to show up 1 hour early on iPhone.

    The meeting invite is being sent from a Computer through the Outlook 2010 Email Client. Both Computer and Outlook 2010 are set to Eastern Time. The OWA (Outlook Web Access) for the 2007 account is set to Eastern Time. The Outlook 2010 Email Client is connected to an Exchange 2007 account and the Exchange server for the exchange 2007 account is located in Chicago (Central Time) and is set to Central Time. When the meeting invite is sent from the Outlook 2010 Client the recipient receives the invite on his/her iPhone(set and located in the Eastern Time Zone) and a mime-attachment.ics file is attached to the meeting invite email. There is no info displayed in the subject line or message body. If the iPhone user opens the attachment it displays the meeting date and time and any other info that was sent from Outlook. The Outlook 2010 user sets the meeting for 10:00am to 11:00am. when the meeting invite mime-attachment.ics file is opened on the iPhone the meeting is displayed as 9:00am to 10:00am. if the iPhone user adds the ics file to his/her calendar it adds a meeting event that is scheduled 1 hour earlier than it is supposed to be. I had the iPhone user to set Time Zone support on and off and there is no change.

  • Error: Not able send mail from OWA 2010. When I send mail, the mails go to Drafts Folder.

    Error: Not able to send mail from OWA 2010. When I send mail, the mails go to Drafts Folder. I have installed everything correctly but when I tried to open the OWA and trying to send mail from OWA. The mails do not deliver and mails become saved in Drafts folder. I tried to re-send messaged from Draft also but not able to send. 
    Screen Shot: http://cid-31ba948d0da4d57e.skydrive.live.com/self.aspx/.Public/Error%20-%20Not%20Able%20to%20Send%20Mail%20from%20OWA%202010.docx
    Scenario: I have below configuration of exchange 2010 server Setup:
    1. Windows Domain Controller with Global Catalog on Windows Server 2008 which only for Windows 2008 Server Native.
    Server Name: WDC2010
    Domain: Blazex.Com
    2. Hub/Client Access Server: It is installed on Windows Server 2008. As per Microsoft recommendation, I have just installed Windows Server 2008 and then join this computer to Blazex.com.
    After that installed the Hub/Client Access Exchange role servers.
    Server Name: HC2010.blazex.com (This is not a Addition Member server or ADC)
    Role: Hub and Client Access Server.
    3. Mailbox Server: It is installed on Windows Server 2008. As per Microsoft recommendation, I have just installed Windows Server 2008 and then join this computer to Blazex.com.
    After that installed the Mailbox Exchange role servers.
    Server Name: MBX2010.blazex.com (This is not a Addition Member server or ADC)
    Role: Mailbox Server.
    4. 2nd  Mailbox Server: It is installed on Windows Server 2008. As per Microsoft recommendation, I have just installed Windows Server 2008 and then join this computer to Blazex.com.
    After that installed the Mailbox Exchange role servers.
    Server Name: 2MBX2010.blazex.com (This is not a Addition Member server or ADC)
    Role: Mailbox Server.
    5. Client Windows 7: It is installed on Windows 7 Ultimate Workstation. As per Microsoft recommendation, I have just installed Windows 7 and then join this computer to Blazex.com.
    Workstation Name: WIN7.blazex.com
    Role: Workstation
    Error Description: I have installed everything correctly but when I tried to open the OWA and trying to send mail from OWA. The mails do not deliver and mails become saved in Drafts folder. I tried to re-send messaged from Draft also but not able to send. 
    Screen Shot (Same As Above): http://cid-31ba948d0da4d57e.skydrive.live.com/self.aspx/.Public/Error%20-%20Not%20Able%20to%20Send%20Mail%20from%20OWA%202010.docx
    I don't know what I am missing but I think there is some configuration I need to do on Hub/Client Access Server (HC2010).  I tried to access the mailbox on XP Client system through OWA. I get the same problem as Win7.
    Can someone please help me on this?
    Thanks and Regards
    Shambhu

    Hi Subhash,
    I have done the troubleshooting but I didn't find any problem at server side. I will send you mail also with all EXBPA report and as well DC, HC and Mailbox servers' Application Log and System Log.
    Below are the questions's answers which was asked by you:
    1.     Please check whether you can send email via Outlook.
    I am not able to open the MS Outlook. Please check all details in this thread : http://social.technet.microsoft.com/Forums/en-US/exchange2010/thread/c491c5c7-7d6f-48ff-97fa-6bf83d94e53c
    2.     Please run EXBPA to have a health scan.
    I have run the EXBPA and didn't see any critical Problem. I have took the screen shot and report. Please have a look in below screen shot link:
    a. http://cid-31ba948d0da4d57e.skydrive.live.com/self.aspx/.Public/EXBPA.docx                                                                            - Final Report
    b. http://cid-31ba948d0da4d57e.skydrive.live.com/self.aspx/.Public/ExBPA.BaseLine.200906270226501077.data.xml                        - Baseline Health Check
    c. http://cid-31ba948d0da4d57e.skydrive.live.com/self.aspx/.Public/ExBPA.Connectivity%20Test.200906270223318201.data.xml      - Connectivity Check
    d. http://cid-31ba948d0da4d57e.skydrive.live.com/self.aspx/.Public/ExBPA.Health%20Check.200906270125477730.data.xml            - Health Check with 2 Hr. Baseline option
    e. http://cid-31ba948d0da4d57e.skydrive.live.com/self.aspx/.Public/ExBPA.Permission%20Check.200906270224343377.data.xml      - Permission Report
    The error which I received in EXBPA, that allready ignored by you and told that it is bug in EXBPA. Have a look here: http://social.technet.microsoft.com/Forums/en-US/exchange2010/thread/d4bb03bb-db84-4a8b-83ba-19937d7dcacf
    3.     Please check application log, whether any error event logged there. They could come from ADAccess related error or etc.
    I didn't see any ADAccess event on the server. For this I have left my lab PC open and I will check again.
    4.     We find that if mail .que gets corrupt, then this issue will occur, please try to move the affected user to another store and then test the issue.
    I am facing this problem with all users (7 users). Anyway I moved one user from one server Mailbox Database (2mbx2010) to Other Server Mailbox Database (mbx2010). After that
    a) Rebooted the Workstation
    b) Login successfully with same user.
    c) Delete the Old MS Outlook Profile
    d) Create New profile for same user without any problem.
    e) Tried to login in MS Outlook and got the same error. : http://social.technet.microsoft.com/Forums/en-US/exchange2010/thread/c491c5c7-7d6f-48ff-97fa-6bf83d94e53c
    f) Open the OWA successfully for Same user.
    g) Tried to send mail but again mail went to Drafts Folder.
    5.     I noticed that you test the issue after you close outlook. I recommend you to reboot your pc and then access
    mailbox via OWA to test the issue.
    I tried you suggested option, but sorry it also couldn't help.
    6.  You also check your disk space.
         All Servers have Enough Disk Space. Check the EXBPA Report.
    7. You may run EXTRA to get log information for further troubleshooting.
      Need more time for this.
    8. Please save application log, system log as *.evt file, then send them with EXTRA,EXBPA report to [email protected] .
       I have sent it as your mentioned mail address OR, you can get the mentioned log from below link also:
       a) http://cid-31ba948d0da4d57e.skydrive.live.com/self.aspx/.Public/WDC2010%7C_APPLICATION.evtx           - DC/GC Application Log
       b) http://cid-31ba948d0da4d57e.skydrive.live.com/self.aspx/.Public/WDC2010%7C_SYSTEMEVENT.evtx          - DC/GC System Log
       c) http://cid-31ba948d0da4d57e.skydrive.live.com/self.aspx/.Public/HC2010%7C_APPLICATION.evtx              - Hub/Client Application Log
       d) http://cid-31ba948d0da4d57e.skydrive.live.com/self.aspx/.Public/HC2010%7C_SYSTEM.evtx                      - Hub/Client System Log
       e) http://cid-31ba948d0da4d57e.skydrive.live.com/self.aspx/.Public/MBX2010%7C_Application.evtx                - Mailbox Application Log
       f) http://cid-31ba948d0da4d57e.skydrive.live.com/self.aspx/.Public/MBX2010%7C_System.evtx                      - Mailbox System Log
    There will be some error log you will be that the system is not able to communicate with DC/DC, MBX or HC at everyday around 3 AM or some time 6 PM Evening also. These error came because I have installed VM on Windows 7 Workstation and after 45 min or one hrs. if I don't work on PC, then pc goes to sleep. so you may ignore these alerts.
    I hope my answer will give you some clue and I expect more help from your side.
    With Best Regards
    Shambhu Sharma

  • Can't send or receive mail from Outlook

    just purchased a wireless router and hooked up recently. Can access the internet & outlook express but can't get my mail from outlook which is my main email account. Message says can't find exchange server. I can access Outlook from my laptop wirelessly at work but not at home.
    Any suggestions?

    checked the ip address of the computer when its connected to the router using the command promt.(example.....ip address: 192.168.1.100; Default Gateway:192.168.1.1).
    Open an internet browser (ie, mozilla, netscape,etc.). Type at the address bar the default gateway (192.168.1.1). and you will see a username and password promt for your router. Leave the username blank and use admin for your password, if it doesn't work use the password you setup the router to..
    Once you see the setup page.... you'll be at basic setup sub tab under setup. Look for MTU. Set it to MANUAL and LOWER IT TO 1300.  Save the settings. Check your outlook if its working....If its Does't work do this
    Go to Applications and Gaming tab.
    Look for a port triggering sub tab. type it this way
    Application NameTrigger Port RangeIncoming Port Range
    application       triggered range     forwarded range
    E-mai                 l25 ~ 25                   113 ~ 113
    forwarded range is equevalent to incoming port rage...
    hope this will solve your concern.... 

  • 3138 SQL error opening sqlite db file from Outlook 2010 as attachment

    Has anyone of you tried sending the sqlite db file thru e-mail and then open the file from Outlook 2010?
    I have an air app that can be opened by doubleclicking the sqlite database file (invoke event). The file is sent via e-mail from the app itself, so another user can run the app directly from their e-mail client once he receives the db. Now everything works fine unless you use Outlook 2010 - when I open it I get an sql error 3138 - do you know what can be the problem? Everything is fine when I'm using different e-mail client (the same e-mail account, just other client) like Outlook 2003 or Thunderbird or Opera. I'm guessing Outlook 2010 is using some kind of protection to attachments that is making the file not understandable by the app, but Microsoft seems to ignore my e-mails sent to them with the same question. The db file is not encrypted if that changes anything and saving the file from outlook to desktop and then running does not help. When I do the same using Outlook 2003 everything works as it should, but unfortunatelly my customer upgraded to 2010 :/ Any ideas would be much appreciated.

    This looks like a new behavior of Outlook 2010 and isn't specific to PDFs. You will need to "save as" the document. There is a thread at Microsoft forums about this with some possible workarounds:
    http://social.technet.microsoft.com/Forums/en-US/outlook/thread/927d678d-b55b-4732-93cb-f1 3ed1dacf96/

  • "changes to the public group membership cannot be saved" error from Outlook 2010 users, but no problem with Outlook 2003.

    We have the exact same issue as this but our groups are already universal security group and we still have problem:
    http://social.technet.microsoft.com/Forums/en-NZ/exchangesvrmigration/thread/2c953cb4-5411-4f72-beb9-6b4c16fd6685
    The distribution-groups were upgraded to Exchange 2010.  User A can update the group from Outlook 2003 or OWA 2010 but not from Outlook 2010.  Anyone know the solution?
    thanks

    Hi lilyl,
    For this issue, please refer to this document:
    How to Manage Groups that I already own in Exchange 2010?
    http://blogs.technet.com/b/exchange/archive/2009/11/18/3408844.aspx
    So what does the "Changes to the distribution list membership cannot be saved. You do not have sufficient permission to perform
    this operation on this object." error mean, when you are connecting to an Exchange 2010 server?
    It means Exchange 2010 is doing its job - as designed...
    Thanks,
    Evan
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

Maybe you are looking for

  • Adobe Photoshop Elements 9 as default program

    I have just installed elements 9.  When I upload photos they end up in photoshop and also in my pictures on my computer.  I would like to have them just go into my pictures so I can delete the bad ones and then just transfer the one I want to keep an

  • Cannot change partition size on firewire external drive

    My external firewire drive has three partitions, one of which is used for Time Machine and is out of space; the third one is empty. When I use Disk Utility to try to increase the size of the second partition without erasing its contents, I get the me

  • How to redeem itune gift card

    how to redeem itune gift card

  • FocusLost in a CellEditor

    I am using a cell editor that either uses (1)a jpanel - comprising of several textfields and a button; (2) a textfield; and (3) another jpanel - comprising of several comboboxes and a textfield. Note that the value of each cell has a header that dete

  • FM9: Limited Size of Structure View Panel?

    Hi, I'm using FM 9 on a workstation with two 22" monitors that are rotated 90 deg (portrait orientation). When I try to resize the structure view panel to fill the right monitor (as I could with FM7.2 and FM8) I can drag it to only about 40% of the s