﻿<?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 2008 / T-SQL (SS2K8)  / Is it possible to create a script that will generate a create table script for all tables in a database at once? / 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>Thu, 23 May 2013 02:23:44 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Is it possible to create a script that will generate a create table script for all tables in a database at once?</title><link>http://www.sqlservercentral.com/Forums/Topic1383156-392-1.aspx</link><description>You can use the Genereate Scripts option as shown in the following link: [url=http://blog.sqlauthority.com/2011/05/07/sql-server-2008-2008-r2-create-script-to-copy-database-schema-and-all-the-objects-data-schema-stored-procedure-functions-triggers-tables-views-constraints-and-all-other-database-objects/][b]Generating Scripts in sql server[/b][/url]</description><pubDate>Mon, 12 Nov 2012 02:22:33 GMT</pubDate><dc:creator>vinu512</dc:creator></item><item><title>RE: Is it possible to create a script that will generate a create table script for all tables in a database at once?</title><link>http://www.sqlservercentral.com/Forums/Topic1383156-392-1.aspx</link><description>In SSMS you can right click on the database and use Tasks-&amp;gt; Generate Scripts...That will give you plenty of options to generate the scripts for all or some of the objects of your database.</description><pubDate>Fri, 09 Nov 2012 11:27:15 GMT</pubDate><dc:creator>Luis Cazares</dc:creator></item><item><title>RE: Is it possible to create a script that will generate a create table script for all tables in a database at once?</title><link>http://www.sqlservercentral.com/Forums/Topic1383156-392-1.aspx</link><description>I ended up using the Transfer SQL Server Objects task in ssis to copy the tables over without the data which is exactly what I needed.</description><pubDate>Fri, 09 Nov 2012 11:24:18 GMT</pubDate><dc:creator>dndaughtery</dc:creator></item><item><title>Is it possible to create a script that will generate a create table script for all tables in a database at once?</title><link>http://www.sqlservercentral.com/Forums/Topic1383156-392-1.aspx</link><description>Say I have a database called MyDB with 100 tables. I need to create these tables on another db. Is there a TSQL script that will return the create table scripts for all tables on MyDB?</description><pubDate>Fri, 09 Nov 2012 11:09:31 GMT</pubDate><dc:creator>dndaughtery</dc:creator></item></channel></rss>