<?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>SQL Server Archives | Gleamsol Solutions | AI, Software &amp; Digital Transformation</title>
	<atom:link href="http://www.gleamsol.com/category/sql-server/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.gleamsol.com/category/sql-server/</link>
	<description>Custom Software • AI Solutions • Mobile Apps • Business Automation</description>
	<lastBuildDate>Sun, 29 Jan 2023 14:07:19 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>http://www.gleamsol.com/wp-content/uploads/2019/11/cropped-favicon-32x32.png</url>
	<title>SQL Server Archives | Gleamsol Solutions | AI, Software &amp; Digital Transformation</title>
	<link>https://www.gleamsol.com/category/sql-server/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>What is temporary table and how to implement it in SQL server</title>
		<link>http://www.gleamsol.com/what-is-temporary-table-and-how-to-implement-it-in-sql-server/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=what-is-temporary-table-and-how-to-implement-it-in-sql-server</link>
					<comments>http://www.gleamsol.com/what-is-temporary-table-and-how-to-implement-it-in-sql-server/#respond</comments>
		
		<dc:creator><![CDATA[Gleamsol Solutions]]></dc:creator>
		<pubDate>Sun, 29 Jan 2023 14:07:18 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<guid isPermaLink="false">https://www.gleamsol.com/?p=2780</guid>

					<description><![CDATA[<p>A temporary table in SQL Server is a special type of table that is stored in the tempdb database and exists only for the duration of the connection or the user session. They are used to store intermediate results of complex queries and are not permanent like regular tables. Here is an example of creating...</p>
<p>The post <a href="http://www.gleamsol.com/what-is-temporary-table-and-how-to-implement-it-in-sql-server/">What is temporary table and how to implement it in SQL server</a> appeared first on <a href="http://www.gleamsol.com">Gleamsol Solutions | AI, Software &amp; Digital Transformation</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">A temporary table in SQL Server is a special type of table that is stored in the tempdb database and exists only for the duration of the connection or the user session. They are used to store intermediate results of complex queries and are not permanent like regular tables.</p>



<p class="wp-block-paragraph">Here is an example of creating and using a temporary table in SQL Server:</p>



<p class="wp-block-paragraph"><strong>&#8212; Create a temporary table CREATE TABLE #Employees ( EmployeeID INT, FirstName VARCHAR(50), LastName VARCHAR(50), Salary INT )</strong></p>



<p class="wp-block-paragraph"><strong>&#8212; Insert data into the temporary table INSERT INTO #Employees VALUES (1, &#8216;John&#8217;, &#8216;Doe&#8217;, 50000), (2, &#8216;Jane&#8217;, &#8216;Smith&#8217;, 55000), (3, &#8216;Mark&#8217;, &#8216;Johnson&#8217;, 60000)</strong></p>



<p class="wp-block-paragraph"><strong>&#8212; Select data from the temporary table SELECT * FROM #Employees</strong></p>



<p class="wp-block-paragraph"><strong>&#8212; The result will be: &#8212; EmployeeID FirstName LastName Salary &#8212; 1 John Doe 50000 &#8212; 2 Jane Smith 55000 &#8212; 3 Mark Johnson 60000</strong></p>



<p class="wp-block-paragraph">Note that once the connection is closed or the user session ends, the temporary table will be automatically dropped. To explicitly drop the temporary table, you can use the DROP TABLE statement.</p>
<p>The post <a href="http://www.gleamsol.com/what-is-temporary-table-and-how-to-implement-it-in-sql-server/">What is temporary table and how to implement it in SQL server</a> appeared first on <a href="http://www.gleamsol.com">Gleamsol Solutions | AI, Software &amp; Digital Transformation</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://www.gleamsol.com/what-is-temporary-table-and-how-to-implement-it-in-sql-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is subquery in SQL Server with example</title>
		<link>http://www.gleamsol.com/what-is-subquery-in-sql-server-with-example/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=what-is-subquery-in-sql-server-with-example</link>
					<comments>http://www.gleamsol.com/what-is-subquery-in-sql-server-with-example/#respond</comments>
		
		<dc:creator><![CDATA[Gleamsol Solutions]]></dc:creator>
		<pubDate>Sun, 29 Jan 2023 13:55:26 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<guid isPermaLink="false">https://www.gleamsol.com/?p=2771</guid>

					<description><![CDATA[<p>A subquery in SQL Server is a query within a query. It is used to retrieve data from one table based on the data from another table. Here is an example of a subquery in SQL Server: In this example, the subquery SELECT AVG(Salary) FROM Employees retrieves the average salary of all employees. The main...</p>
<p>The post <a href="http://www.gleamsol.com/what-is-subquery-in-sql-server-with-example/">What is subquery in SQL Server with example</a> appeared first on <a href="http://www.gleamsol.com">Gleamsol Solutions | AI, Software &amp; Digital Transformation</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">A subquery in SQL Server is a query within a query. It is used to retrieve data from one table based on the data from another table.</p>



<p class="wp-block-paragraph">Here is an example of a subquery in SQL Server:</p>



<pre class="wp-block-code"><code>SELECT FirstName, LastName, Salary
FROM Employees
WHERE Salary >= (SELECT AVG(Salary) 
                 FROM Employees)
</code></pre>



<p class="wp-block-paragraph">In this example, the subquery <code>SELECT AVG(Salary) FROM Employees</code> retrieves the average salary of all employees. The main query <code>SELECT FirstName, LastName, Salary FROM Employees WHERE Salary >= (SELECT AVG(Salary) FROM Employees)</code> then retrieves the first name, last name, and salary of all employees who have a salary greater than or equal to the average salary retrieved from the subquery.</p>
<p>The post <a href="http://www.gleamsol.com/what-is-subquery-in-sql-server-with-example/">What is subquery in SQL Server with example</a> appeared first on <a href="http://www.gleamsol.com">Gleamsol Solutions | AI, Software &amp; Digital Transformation</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://www.gleamsol.com/what-is-subquery-in-sql-server-with-example/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Difference between nvarchar vs ntext SQL Server</title>
		<link>http://www.gleamsol.com/difference-between-nvarchar-vs-ntext-sql-server/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=difference-between-nvarchar-vs-ntext-sql-server</link>
					<comments>http://www.gleamsol.com/difference-between-nvarchar-vs-ntext-sql-server/#respond</comments>
		
		<dc:creator><![CDATA[Gleamsol Solutions]]></dc:creator>
		<pubDate>Sat, 21 Jan 2023 11:49:40 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<guid isPermaLink="false">https://www.gleamsol.com/?p=2753</guid>

					<description><![CDATA[<p>In SQL Server, the difference between nvarchar and ntext data types is their maximum storage capacity and their usage. nvarchar is a variable-length, Unicode data type that can store up to 4,000 characters.ntext is a variable-length, Unicode data type that can store large amounts of text data, up to 2^30-1 characters (1 GB).The nvarchar data...</p>
<p>The post <a href="http://www.gleamsol.com/difference-between-nvarchar-vs-ntext-sql-server/">Difference between nvarchar vs ntext SQL Server</a> appeared first on <a href="http://www.gleamsol.com">Gleamsol Solutions | AI, Software &amp; Digital Transformation</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image"><img decoding="async" src="https://www.risual.com/wp-content/uploads/sql-logo.png" alt="SQL Server Audit Tips to Monitor Database Usage - risual"/></figure>



<p class="wp-block-paragraph">In <a href="https://www.microsoft.com/en-in/sql-server/" target="_blank" rel="noreferrer noopener">SQL Server</a>, the difference between nvarchar and ntext data types is their maximum storage capacity and their usage.</p>



<p class="wp-block-paragraph">nvarchar is a variable-length, Unicode data type that can store up to 4,000 characters.<br>ntext is a variable-length, Unicode data type that can store large amounts of text data, up to 2^30-1 characters (1 GB).<br>The nvarchar data type is generally used for storing smaller amounts of text data, such as names, addresses, and descriptions. The ntext data type is typically used for storing large amounts of text data, such as articles, blog posts, and product descriptions.</p>



<p class="wp-block-paragraph">It&#8217;s worth noting that ntext is no longer recommended for use, instead varchar(max) and nvarchar(max) is preferable.</p>
<p>The post <a href="http://www.gleamsol.com/difference-between-nvarchar-vs-ntext-sql-server/">Difference between nvarchar vs ntext SQL Server</a> appeared first on <a href="http://www.gleamsol.com">Gleamsol Solutions | AI, Software &amp; Digital Transformation</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://www.gleamsol.com/difference-between-nvarchar-vs-ntext-sql-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
