I have sql server 2012 express and just installed the latest version of ssms tools from http://www.ssmstoolspack.com/Download
With sql server 2008 express and ssms tools I was able to right click on a table and see an ssms tools option that allowed me to generate insert statements for a table but now I don't see it? Anyone know how I can generate the insert statements for a table?
Steps To Auto Generate INSERT StatementsFrom the right-click menu, go to Tasks >> Generate Scripts... In the Generate and Publish Scripts pop-up window, press Next to choose objects screen. Now, the choose objects screen, choose Select specific database objects and choose the tables you want to script.
Right click on the database > Tasks > Generate Scripts. Next. Select "Select specific database objects" and check the table you want scripted, Next. Click Advanced > in the list of options, scroll down to the bottom and look for the "Types of data to script" and change it to "Data Only" > OK.
You can script data natively with SSMS 2012 without using plugins such as SSMS Tools Pack, although the functionality is hidden away.
See this blog post for more details, which is where I found out about this feature: http://raresql.com/2012/09/30/generating-insert-statements-in-sql-server-2012/
Note that unlike SSMS Tools Pack, this will generate an INSERT statement for every single row you are trying to script. If you have a large number of rows that you need to move around then you may want to pursue alternatives. However, for scripting small configuration tables this is perfect.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With