<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://sqlblog.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>“Add as object” or “Add as script”? [SSDT]</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2013/01/04/add-as-object-or-add-as-script-ssdt.aspx</link><description>In SQL Server Data Tools (SSDT) one way to create a new object is to right click on a folder in Solution Explorer and point to Add. Doing so will display this menu: A number of options are offered for creating a brand new object (“function”, “table”,</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>re: “Add as object” or “Add as script”? [SSDT]</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2013/01/04/add-as-object-or-add-as-script-ssdt.aspx#47010</link><pubDate>Fri, 04 Jan 2013 16:28:04 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:47010</guid><dc:creator>Kyle Hale</dc:creator><description>&lt;p&gt;When I right click and choose Add Script, the Add New Item dialog box gives me 4 options in SSDT:&lt;/p&gt;
&lt;p&gt;Post-Deployment Script&lt;/p&gt;
&lt;p&gt;Pre-Deployment Script&lt;/p&gt;
&lt;p&gt;Script (Build)&lt;/p&gt;
&lt;p&gt;Script (Not in Build)&lt;/p&gt;
&lt;p&gt;And as you can imagine, choosing each one changes the Build Action property accordingly.&lt;/p&gt;
&lt;p&gt;Do you not get that dialog when you choose Add-&amp;gt;Script?&lt;/p&gt;
</description></item><item><title>re: “Add as object” or “Add as script”? [SSDT]</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2013/01/04/add-as-object-or-add-as-script-ssdt.aspx#47011</link><pubDate>Fri, 04 Jan 2013 16:35:46 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:47011</guid><dc:creator>jamiet</dc:creator><description>&lt;p&gt;Kyle,&lt;/p&gt;
&lt;p&gt;Good point, yes, you do get those 4 options. My point, not explained too well I guess, is that if you choose the default option (which I suspect many will do - because I've seen many colleagues do it) then it won't be in the build.&lt;/p&gt;
&lt;p&gt;Thanks for allowing me to clarify.&lt;/p&gt;
&lt;p&gt;-J&lt;/p&gt;
</description></item><item><title>re: “Add as object” or “Add as script”? [SSDT]</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2013/01/04/add-as-object-or-add-as-script-ssdt.aspx#47013</link><pubDate>Fri, 04 Jan 2013 21:01:42 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:47013</guid><dc:creator>AlexK</dc:creator><description>&lt;p&gt;This is a typical example of GUI killing productivity. The task of coalescing text files into a single script and/or building a database is trivial - it is about 100 lines of C# code in two simple classes. It took me less than an hour to write, and it just works without issues for several years. It would probably take me more time to write a blog post like yours than to develop a working solution from scratch in C#. More to the point, if I want to change the way I work with sql scripts, I can do it right away...&lt;/p&gt;
</description></item><item><title>re: “Add as object” or “Add as script”? [SSDT]</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2013/01/04/add-as-object-or-add-as-script-ssdt.aspx#47123</link><pubDate>Fri, 11 Jan 2013 22:22:08 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:47123</guid><dc:creator>Bill Anton</dc:creator><description>&lt;p&gt;interesting approach. I also prefer handcrafting the DDL for each object...and the table designer GUI is a pain in the arse. &amp;nbsp;Instead of starting with a script object, I change the default editor from...&lt;/p&gt;
&lt;p&gt;Microsoft SQL Server Data Tools, Editor Selector&lt;/p&gt;
&lt;p&gt;to...&lt;/p&gt;
&lt;p&gt;Microsoft SQL Server Data Tools, T-SQL Editor&lt;/p&gt;
&lt;p&gt;To do this, just right click on a table file in the object explorer and select &amp;quot;Open With&amp;quot;...then click/select the &amp;quot;Microsoft SQL Server Data Tools, T-SQL Editor&amp;quot; and set as default. &amp;nbsp;Screenshot: &lt;a rel="nofollow" target="_new" href="http://byobi.com/blog/wp-content/uploads/2013/01/Open-With....png"&gt;http://byobi.com/blog/wp-content/uploads/2013/01/Open-With....png&lt;/a&gt;&lt;/p&gt;
</description></item></channel></rss>