Quick and Easy way:
- Right click database
- Point to
tasks
In SSMS 2017 you need to ignore step 2 - the generate scripts options is at the top level of the context menu
Thanks to Daniel for the comment to update. - Select
generate scripts
- Click next
- Choose tables
- Click next
- Click advanced
- Scroll to
Types of data to script
– Calledtypes of data to script
in SMSS 2014 Thanks to Ellesedil for commenting - Select
data only
- Click on ‘Ok’ to close the advanced script options window
- Click next and generate your script
I usually in cases like this generate to a new query editor window and then just do any modifications where needed.