﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2005 / T-SQL (SS2K5)  / Generate Insert script / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Sat, 25 May 2013 18:30:12 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Generate Insert script</title><link>http://www.sqlservercentral.com/Forums/Topic547323-338-1.aspx</link><description>In case you miss is, article [url=http://www.sqlservercentral.com/articles/T-SQL/66987/]Generating Insert Statements[/url] is republished today.Also, there is my own article, [url=http://www.sqlservercentral.com/articles/scripting/64884/]Scripting INSERTs[/url], which is intended to do address a slight different issue - where you want to script individual bits of tables, perhaps subject to conditions on the records - and also you can edit the script more easily if you aren't just looking for a straight copy. It doesn't support some of the more exotic datatypes though.I think both are subject to the provisos about IDENTITY fields etc, although I guess if you can just turn IDENTITY_INSERT on for the table in that particular case.Tony</description><pubDate>Fri, 14 May 2010 02:41:39 GMT</pubDate><dc:creator>Tony Webster</dc:creator></item><item><title>RE: Generate Insert script</title><link>http://www.sqlservercentral.com/Forums/Topic547323-338-1.aspx</link><description>[quote][b]toprprasad (8/6/2008)[/b][hr]Hi...I need a script which can generate insert statements for all the records in a table. for eg: if a table abc has 2 records, then on executing this script, it should generate 2 insert statements with column names and values.thxraj[/quote]See the method in the link in my signature below.</description><pubDate>Wed, 06 Aug 2008 08:34:58 GMT</pubDate><dc:creator>Jeff Moden</dc:creator></item><item><title>RE: Generate Insert script</title><link>http://www.sqlservercentral.com/Forums/Topic547323-338-1.aspx</link><description>I'm lazy, I use ApexSQL Edit.... =)</description><pubDate>Wed, 06 Aug 2008 08:23:26 GMT</pubDate><dc:creator>Anders Pedersen</dc:creator></item><item><title>RE: Generate Insert script</title><link>http://www.sqlservercentral.com/Forums/Topic547323-338-1.aspx</link><description>That doesnot matter... Ultimately ,  i need insert statement for each record in the table.</description><pubDate>Wed, 06 Aug 2008 02:54:51 GMT</pubDate><dc:creator>toprprasad</dc:creator></item><item><title>RE: Generate Insert script</title><link>http://www.sqlservercentral.com/Forums/Topic547323-338-1.aspx</link><description>There may be the possibilities that table either contains Primary / Identity Field or may not contains any ke, so in that case how do you insert the record ?</description><pubDate>Wed, 06 Aug 2008 02:42:50 GMT</pubDate><dc:creator>Abhijit More</dc:creator></item><item><title>Generate Insert script</title><link>http://www.sqlservercentral.com/Forums/Topic547323-338-1.aspx</link><description>Hi...I need a script which can generate insert statements for all the records in a table. for eg: if a table abc has 2 records, then on executing this script, it should generate 2 insert statements with column names and values.thxraj</description><pubDate>Wed, 06 Aug 2008 02:37:49 GMT</pubDate><dc:creator>toprprasad</dc:creator></item></channel></rss>