If I am selecting a whole row from the Results pane of the SQL Server Management Studio 2008, is there a way to create an INSERT statement script automatically that can INSERT a new row with the selected row’s values?
Idea is, when I delete that row, I can use the generated INSERT statement to re-insert the same row again.
Basically instead of creating a blank INSERT, create a script with VALUES (val1,val2,val3...) where the values comes from the selected row.
No this isn’t possible.
Closest thing to this that I am aware of is the SSMS Tools Pack Addin “Script Grid Results” feature.
This will generate
INSERTstatements to a#temptable for the whole results grid.