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 |
|
arusu
Yak Posting Veteran
60 Posts |
Posted - 2011-12-07 : 15:35:21
|
| Hi,I was just wondering if SQL Server 2008 has a way of generating a script for an existing row. So say I have a Customer table.FirstName: John LastName: Doe SalesId: 5Can I have the first row generated as a script so that I would get:INSERT INTO Customer (FirstName, LastName, SalesId) VALUES ('John', 'Doe', 5)I would be ok to get all the rows scripted but I need to know if I can do this |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
arusu
Yak Posting Veteran
60 Posts |
Posted - 2011-12-07 : 15:48:33
|
| I don't understand this.... I am very new to sql |
 |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
arusu
Yak Posting Veteran
60 Posts |
Posted - 2011-12-07 : 16:32:19
|
| If anyone else needs to know how to do this, I've found an easier waygo to C:\Program Files\Microsoft SQL Server\90\Tools\Publishing\1.2and use the SqlPubWiz.exe tool. It's a wizard, it's very straight forward and it gets the job done plus it scripts out your table for you as well if you need it. |
 |
|
|
|
|
|