<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Generate Drop Script &#8211; Database Research &amp; Development</title>
	<atom:link href="https://www.dbrnd.com/tag/generate-drop-script/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dbrnd.com</link>
	<description>BIGData &#124; NoSQL &#124; MSSQL &#124; MySQL &#124; PostgreSQL</description>
	<lastBuildDate>Fri, 07 Sep 2018 11:42:22 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.4</generator>
	<item>
		<title>SQL Server: Generate the DROP Script for Table, Function, Stored Procedure, Schema</title>
		<link>https://www.dbrnd.com/2018/09/sql-server-generate-the-drop-script-for-table-function-stored-procedure-schema/</link>
					<comments>https://www.dbrnd.com/2018/09/sql-server-generate-the-drop-script-for-table-function-stored-procedure-schema/#respond</comments>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Mon, 24 Sep 2018 16:16:02 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[Drop Script]]></category>
		<category><![CDATA[Generate Drop Script]]></category>
		<category><![CDATA[Generate Script Option]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server Administrator]]></category>
		<category><![CDATA[SQL Server Error]]></category>
		<category><![CDATA[SQL Server Monitoring]]></category>
		<category><![CDATA[SQL Server Performance Tuning]]></category>
		<category><![CDATA[SQL Server Programming]]></category>
		<category><![CDATA[SQL Server Tips and Tricks]]></category>
		<category><![CDATA[SSMS]]></category>
		<category><![CDATA[TSQL]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=7489</guid>

					<description><![CDATA[In this post, I am sharing the best method for generating the DROP script for different SQL Server objects like Table, Function, Stored Procedure. A Database Developer may need DROP script for different purposes, and I found different T-SQL scripts which we can use for generating the DROP Script. But while dropping, we should not [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F09%2Fsql-server-generate-the-drop-script-for-table-function-stored-procedure-schema%2F&amp;linkname=SQL%20Server%3A%20Generate%20the%20DROP%20Script%20for%20Table%2C%20Function%2C%20Stored%20Procedure%2C%20Schema" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F09%2Fsql-server-generate-the-drop-script-for-table-function-stored-procedure-schema%2F&amp;linkname=SQL%20Server%3A%20Generate%20the%20DROP%20Script%20for%20Table%2C%20Function%2C%20Stored%20Procedure%2C%20Schema" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F09%2Fsql-server-generate-the-drop-script-for-table-function-stored-procedure-schema%2F&amp;linkname=SQL%20Server%3A%20Generate%20the%20DROP%20Script%20for%20Table%2C%20Function%2C%20Stored%20Procedure%2C%20Schema" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F09%2Fsql-server-generate-the-drop-script-for-table-function-stored-procedure-schema%2F&amp;linkname=SQL%20Server%3A%20Generate%20the%20DROP%20Script%20for%20Table%2C%20Function%2C%20Stored%20Procedure%2C%20Schema" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F09%2Fsql-server-generate-the-drop-script-for-table-function-stored-procedure-schema%2F&amp;linkname=SQL%20Server%3A%20Generate%20the%20DROP%20Script%20for%20Table%2C%20Function%2C%20Stored%20Procedure%2C%20Schema" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F09%2Fsql-server-generate-the-drop-script-for-table-function-stored-procedure-schema%2F&amp;linkname=SQL%20Server%3A%20Generate%20the%20DROP%20Script%20for%20Table%2C%20Function%2C%20Stored%20Procedure%2C%20Schema" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F09%2Fsql-server-generate-the-drop-script-for-table-function-stored-procedure-schema%2F&#038;title=SQL%20Server%3A%20Generate%20the%20DROP%20Script%20for%20Table%2C%20Function%2C%20Stored%20Procedure%2C%20Schema" data-a2a-url="https://www.dbrnd.com/2018/09/sql-server-generate-the-drop-script-for-table-function-stored-procedure-schema/" data-a2a-title="SQL Server: Generate the DROP Script for Table, Function, Stored Procedure, Schema"></a></p><p>In this post, I am sharing the best method for generating the DROP script for different SQL Server objects like Table, Function, Stored Procedure.</p>
<p>A Database Developer may need DROP script for different purposes, and I found different T-SQL scripts which we can use for generating the DROP Script. </p>
<p>But while dropping, we should not forget about the object dependency. In which sequence, we are putting objects in drop script that is very much important.</p>
<blockquote><p>We can do using scripts as well, but I would suggest &#8220;SSMS Generate Script Option&#8221; which automatically checks the dependency and put the objects in proper sequence.</p>
<p>Using this option, you can select the type of object with their properties like indexes, constraints.</p></blockquote>
<p>I shared many SQL DBA/Developer scripts, but in some cases, we should go with the TOOL.</p>
<p><strong>Use SSMS Generate Script Option for generating the DROP Script for objects:</strong></p>
<blockquote><p>Step 1: Open SSMS<br />
Step 2: Right-click on Database and go to Task -&gt; Generate Scripts&#8230;<br />
Step 3: Select type of object or select all objects<br />
Step 4: Select advance option and Select &#8220;Script DROP&#8221; option<br />
Step 5: Included/Remove necessary child objects like Indexes, Constraints<br />
Step 6: Finish</p></blockquote>
<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-7491" src="https://www.dbrnd.com/wp-content/uploads/2018/04/SQL-Server-Drop-Script.png" alt="SQL Server Drop Script" width="720" height="724" srcset="https://www.dbrnd.com/wp-content/uploads/2018/04/SQL-Server-Drop-Script.png 720w, https://www.dbrnd.com/wp-content/uploads/2018/04/SQL-Server-Drop-Script-150x150.png 150w, https://www.dbrnd.com/wp-content/uploads/2018/04/SQL-Server-Drop-Script-679x683.png 679w" sizes="(max-width: 720px) 100vw, 720px" /></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbrnd.com/2018/09/sql-server-generate-the-drop-script-for-table-function-stored-procedure-schema/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
