Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
Luuk123
Yak Posting Veteran
52 Posts |
Posted - 2013-08-08 : 02:38:46
|
Hello,I'm looking for a function/macro or something that will generate an insert script for a specific table in SSMS 2012. So I want something like when I press a hotkey, a popup screen with the parameter 'Table' appears.I know that something like this exists in the context menu of the object explorer, although I would like a hotkey.Does somebody knows a solution?Thanks! |
|
bandi
Master Smack Fu Yak Hacker
2242 Posts |
Posted - 2013-08-08 : 02:49:05
|
Use Ms-Excel and write = concatenate ( "INSERT INTO TableName(col1, col2, col3) VALUES(", A1, ", ", B1, ",", C1, ");") in the D1 Cell and make sure to copy your data to A,B, C columns. And then drag the cursor for remaining records--Chandu |
|
|
|
|
|
|
|