<?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>General - MSSQL Query</title>
	<atom:link href="https://mssqlquery.com/category/general/feed" rel="self" type="application/rss+xml" />
	<link>https://mssqlquery.com</link>
	<description>MSSQL and TSQL Programming and TSQL Examples</description>
	<lastBuildDate>Fri, 07 Apr 2023 19:10:50 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.3.1</generator>

<image>
	<url>https://mssqlquery.com/wp-content/uploads/2023/06/cropped-mssql-query-icon-32x32.png</url>
	<title>General - MSSQL Query</title>
	<link>https://mssqlquery.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Difference Between Count and Count_Big Functions in SQL Server</title>
		<link>https://mssqlquery.com/difference-between-count-and-count_big-functions-in-sql-server</link>
		
		<dc:creator><![CDATA[Yavuz Selim Kart]]></dc:creator>
		<pubDate>Sat, 05 Mar 2022 14:20:52 +0000</pubDate>
				<category><![CDATA[Functions]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Count and Count_Big Function]]></category>
		<category><![CDATA[Count and Count_Big Functions in SQL Server]]></category>
		<category><![CDATA[Difference Between Count and Count_Big Functions]]></category>
		<guid isPermaLink="false">https://mssqlquery.com/?p=774</guid>

					<description><![CDATA[<p>Hello everyone, In this article, I will give information about the difference between Count and Count_Big functions in SQL Server. There is no difference in functionality between Count and Count_Big. They are almost the same. The only difference is the data type they return and the indexing on the view.&#46;&#46;&#46;</p>
<p>The post <a href="https://mssqlquery.com/difference-between-count-and-count_big-functions-in-sql-server">Difference Between Count and Count_Big Functions in SQL Server</a> first appeared on <a href="https://mssqlquery.com">MSSQL Query</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Hello everyone,</p>
<p>In this article, I will give information about the difference between Count and Count_Big functions in SQL Server.</p>
<p>There is no difference in functionality between Count and Count_Big. They are almost the same. The only difference is the data type they return and the indexing on the view.</p>
<p>When you use the COUNT(*) function, it returns the data type as INT (range: -2^31 (-2.147.483.648) to 2^31-1 (2.147.483.647) and storage 4 bytes), while using COUNT_BIG(*) it returns data as BIGINT type (range: -2^63 (-9,223,372,036,854,775,808) to 2^63-1 (9,223,372,036,854,775,807) and storage 8 bytes).</p>
<p>Good luck to everyone in business and life.</p>
<div class='epvc-post-count'><span class='epvc-eye'></span>  <span class="epvc-count"> 140</span><span class='epvc-label'> Views</span></div><p>The post <a href="https://mssqlquery.com/difference-between-count-and-count_big-functions-in-sql-server">Difference Between Count and Count_Big Functions in SQL Server</a> first appeared on <a href="https://mssqlquery.com">MSSQL Query</a>.</p>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Generating the Code to Remove All Procedures in SQL Server</title>
		<link>https://mssqlquery.com/generating-the-code-to-remove-all-procedures-in-sql-server</link>
		
		<dc:creator><![CDATA[Yavuz Selim Kart]]></dc:creator>
		<pubDate>Tue, 22 Feb 2022 17:31:59 +0000</pubDate>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Stored Procedures]]></category>
		<category><![CDATA[Generating the Code]]></category>
		<category><![CDATA[Generating the Code to Remove All Procedures]]></category>
		<category><![CDATA[Remove All Procedures in SQL Server]]></category>
		<guid isPermaLink="false">https://mssqlquery.com/?p=672</guid>

					<description><![CDATA[<p>Hello everyone, In this article, I will talk about how to dynamically generate code for removing all procedures in SQL Server. In SQL Server, in some cases, instead of removing the procedures by manually writing the code, we can remove the relevant procedures by dynamically generating code. You can see&#46;&#46;&#46;</p>
<p>The post <a href="https://mssqlquery.com/generating-the-code-to-remove-all-procedures-in-sql-server">Generating the Code to Remove All Procedures in SQL Server</a> first appeared on <a href="https://mssqlquery.com">MSSQL Query</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Hello everyone,</p>
<p>In this article, I will talk about how to dynamically generate code for removing all procedures in SQL Server.</p>
<p>In SQL Server, in some cases, instead of removing the procedures by manually writing the code, we can remove the relevant procedures by dynamically generating code.</p>
<p>You can see the relevant code below.</p>
<pre class="line-numbers"><code class="language-sql">SELECT 'DROP PROC ' + '[' + ROUTINE_SCHEMA + ']' + '.' + '[' + ROUTINE_NAME + ']'
FROM INFORMATION_SCHEMA.ROUTINES
WHERE ROUTINE_TYPE = 'PROCEDURE';</code></pre>
<p>When we run the relevant code on the Northwind database, you will see the following result.</p>
<p><img decoding="async" fetchpriority="high" class="alignnone wp-image-674 size-full" src="https://mssqlquery.com/wp-content/uploads/2022/02/generating-the-code-to-remove-all-procedures-in-sql-server-1.jpg" alt="Generating the Code to Remove All Procedures in SQL Server" width="700" height="419" srcset="https://mssqlquery.com/wp-content/uploads/2022/02/generating-the-code-to-remove-all-procedures-in-sql-server-1.jpg 700w, https://mssqlquery.com/wp-content/uploads/2022/02/generating-the-code-to-remove-all-procedures-in-sql-server-1-300x180.jpg 300w" sizes="(max-width: 700px) 100vw, 700px" /></p>
<p>As you can see, the following codes were generated.</p>
<pre class="line-numbers"><code class="language-sql">DROP PROC [dbo].[Ten Most Expensive Products];
DROP PROC [dbo].[Employee Sales by Country];
DROP PROC [dbo].[Sales by Year];
DROP PROC [dbo].[CustOrdersDetail];
DROP PROC [dbo].[CustOrdersOrders];
DROP PROC [dbo].[CustOrderHist];
DROP PROC [dbo].[SalesByCategory];
DROP PROC [dbo].[sp_upgraddiagrams];
DROP PROC [dbo].[sp_helpdiagrams];
DROP PROC [dbo].[sp_helpdiagramdefinition];
DROP PROC [dbo].[sp_creatediagram];
DROP PROC [dbo].[sp_renamediagram];
DROP PROC [dbo].[sp_alterdiagram];
DROP PROC [dbo].[sp_dropdiagram];
DROP PROC [dbo].[ScriptCreateTableKeys];
DROP PROC [dbo].[ScriptCreateTableKeys2];</code></pre>
<p>You can run whatever you want according to your needs, or you can run them all together and remove all procedures.</p>
<p>Good luck to everyone in business and life.</p>
<div class='epvc-post-count'><span class='epvc-eye'></span>  <span class="epvc-count"> 132</span><span class='epvc-label'> Views</span></div><p>The post <a href="https://mssqlquery.com/generating-the-code-to-remove-all-procedures-in-sql-server">Generating the Code to Remove All Procedures in SQL Server</a> first appeared on <a href="https://mssqlquery.com">MSSQL Query</a>.</p>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
