How to copy SSMS and paste into OneNote 365 while maintaining the formatting, as in the example below?

Ricardo Marcondes 0 Reputation points
2024-06-22T12:18:18.63+00:00
When copying a query made in SSMS and pasting it into OneNote, the text becomes simple. If you paste it into the body of the Microsoft Outlook email, copy it again and paste it into OneNote, you will have the query formatting.

ctrl_v_onenote.png
image example: in the first part the query was copied from SSMS and pasted directly into OneNote

In the second part it was copied from SSMS, pasted into the body of the Microsoft Outlook email, copied again and pasted into OneNote
OneNote
OneNote
A family of Microsoft products that enable users to capture, organize, and reuse notes electronically.
176 questions
Office
Office
A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.
1,420 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jiajing Hua-MFST 6,990 Reputation points Microsoft Vendor
    2024-06-24T09:19:11.15+00:00

    Hi @Ricardo Marcondes

    OneNote does not support RTF format. It loses the text format when you paste RTF text.

    You may copy the SSMS to Word first, then copy it from Word to OneNote as a workaround. The last part in following image is the SSMS copied from Word.

    User's image

    Or you can use 3rd-party add-in to Paste Rich Text.

    Thanks for your understanding.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    0 comments No comments