<?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 - Info Spot</title>
	<atom:link href="https://info-spot.net/tag/sql-server/feed/" rel="self" type="application/rss+xml" />
	<link>https://info-spot.net/tag/sql-server/</link>
	<description>Info Spot blog</description>
	<lastBuildDate>Fri, 06 Dec 2024 08:48:33 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.2</generator>

<image>
	<url>https://info-spot.net/wp-content/uploads/2024/11/cropped-icon-32x32.png</url>
	<title>sql server Archives - Info Spot</title>
	<link>https://info-spot.net/tag/sql-server/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to Uninstall one or multiple Instances of SQL Server? (with demo)</title>
		<link>https://info-spot.net/uninstall-instances-sql-server/</link>
					<comments>https://info-spot.net/uninstall-instances-sql-server/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Fri, 06 Dec 2024 08:35:15 +0000</pubDate>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[remove instance]]></category>
		<category><![CDATA[sql server]]></category>
		<category><![CDATA[uninstall instance]]></category>
		<guid isPermaLink="false">https://info-spot.net/?p=842</guid>

					<description><![CDATA[<p>You must have local administrator permissions in order to uninstall SQL Server. Next, Make a backup of your&#8230;</p>
<p>The post <a href="https://info-spot.net/uninstall-instances-sql-server/">How to Uninstall one or multiple Instances of SQL Server? (with demo)</a> appeared first on <a href="https://info-spot.net">Info Spot</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>You must have local administrator permissions in order to uninstall SQL Server. Next, Make a backup of your data. You can either manually move the.mdf and.ldf files to a different location or make complete copies of all databases, including system databases. Additionally, halt all SQL Server services before uninstalling.</p>



<ol class="wp-block-list"></ol>



<p>Go to the Control Panel and choose Programs and Features to begin the uninstallation process from Windows Server versions 2008 and 2012. Select Uninstall from the menu when you right-click Microsoft SQL Server (Version) (Bit).</p>



<p>Go to Settings from the Start menu, then select Apps to begin the removal process from Windows 10, Windows Server 2016, and Windows Server 2019. In the search box, type SQL, then choose Microsoft SQL Server (Version) (Bit). For instance, the 64-bit version of Microsoft SQL Server 2016 is displayed below:</p>


<div class="wp-block-image">
<figure class="aligncenter is-resized"><img decoding="async" src="https://media.geeksforgeeks.org/wp-content/uploads/20210603154452/remove-660x526.png" alt="" style="width:385px;height:auto"/></figure></div>


<p>Choose &#8220;Uninstall.&#8221; then choose Remove to start the Microsoft SQL Server wizard in the SQL Server pop-up dialog box.</p>


<div class="wp-block-image">
<figure class="aligncenter is-resized"><img decoding="async" src="https://media.geeksforgeeks.org/wp-content/uploads/20210603154616/step1.png" alt="" style="width:777px;height:auto"/></figure></div>


<ul class="wp-block-list">
<li>Choose Instance from the drop-down menu, mark the name of the SQL Server instance, or choose to eliminate just the administrative tools and shared features of SQL Server. Click Next to proceed.</li>



<li>Select the features that need to be deleted from the SQL Server instance on the Select Features screen.</li>
</ul>


<div class="wp-block-image">
<figure class="aligncenter is-resized"><img decoding="async" src="https://media.geeksforgeeks.org/wp-content/uploads/20210603154842/step2.png" alt="" style="width:719px;height:auto"/></figure></div>


<ul class="wp-block-list">
<li>View the list of features and components that will be removed on the Remove page. To begin the uninstallation process, click Remove.</li>
</ul>


<div class="wp-block-image">
<figure class="aligncenter is-resized"><img decoding="async" src="https://media.geeksforgeeks.org/wp-content/uploads/20210603154943/step3.png" alt="" style="width:594px;height:auto"/></figure></div>


<p>To confirm that the SQL Server instance has been successfully uninstalled, try refreshing the Apps and Features box in Windows 10, Windows Server 2016, Windows Server 2019, or Programs and Features in Windows Server 2008, Windows Server 2012, and Windows 2012 R2.</p>



<p>You can watch this process in the below video</p>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe title="How to remove/uninstall one or multiple SQL Server instances" width="1380" height="776" src="https://www.youtube.com/embed/pSe5VfA831s?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div></figure>
<p>The post <a href="https://info-spot.net/uninstall-instances-sql-server/">How to Uninstall one or multiple Instances of SQL Server? (with demo)</a> appeared first on <a href="https://info-spot.net">Info Spot</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://info-spot.net/uninstall-instances-sql-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>MS SQL Server &#8211; How to get Date only from the datetime value?</title>
		<link>https://info-spot.net/sql-get-date-from-datetime/</link>
					<comments>https://info-spot.net/sql-get-date-from-datetime/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 03 Dec 2024 16:51:51 +0000</pubDate>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[convert date]]></category>
		<category><![CDATA[get date only]]></category>
		<category><![CDATA[sql cast]]></category>
		<category><![CDATA[sql dateadd]]></category>
		<category><![CDATA[sql server]]></category>
		<guid isPermaLink="false">https://info-spot.net/?p=792</guid>

					<description><![CDATA[<p>To get the current date and time: And we have a datetime value: 2024-12-03 18:13:07.271 From the datetime&#8230;</p>
<p>The post <a href="https://info-spot.net/sql-get-date-from-datetime/">MS SQL Server &#8211; How to get Date only from the datetime value?</a> appeared first on <a href="https://info-spot.net">Info Spot</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>To get the current date and time:</p>



<pre class="wp-block-code"><code>SELECT getdate();</code></pre>



<p>And we have a datetime value: 2024-12-03 18:13:07.271</p>



<p>From the datetime value above, you want to extract the date value only. There are several ways to do that:</p>



<ul class="wp-block-list">
<li><strong>Use CONVERT to VARCHAR:</strong></li>
</ul>



<p>CONVERT syntax:</p>



<pre class="wp-block-code"><code>CONVERT ( data_type &#91; ( length ) ] , expression &#91; , style ] )  </code></pre>



<p>In this case, date only, you we are gonna run this query:</p>



<pre class="wp-block-code"><code>SELECT CONVERT(VARCHAR(10), getdate(), 111);</code></pre>



<p>It returns <code>2024/12/03</code> for my test.</p>



<p>The style we used just now is 111, which is yyyy/mm/dd. There are many other style you can choose from. Here are some common types:</p>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>Style</th><th>How it’s displayed</th></tr></thead><tbody><tr><td>101</td><td>mm/dd/yyyy</td></tr><tr><td>102</td><td>yyyy.mm.dd</td></tr><tr><td>103</td><td>dd/mm/yyyy</td></tr><tr><td>104</td><td>dd.mm.yyyy</td></tr><tr><td>105</td><td>dd-mm-yyyy</td></tr><tr><td>110</td><td>mm-dd-yyyy</td></tr><tr><td>111</td><td>yyyy/mm/dd</td></tr><tr><td>106</td><td>dd mon yyyy</td></tr><tr><td>107</td><td>Mon dd, yyyy</td></tr></tbody></table></figure>



<p>Because each type generates a different length, so you should define the right varchar length then.</p>



<ul class="wp-block-list">
<li><strong>You can also convert to date:</strong></li>
</ul>



<pre class="wp-block-code"><code>SELECT CONVERT(date, getdate());</code></pre>



<p>It will return the current date value along with starting value for time. For example, the result for my case is:</p>



<pre class="wp-block-code"><code>Dec  3 2024 12:00:00:AM</code></pre>



<p>For older version than SQL Server 2008, you should use this instead:</p>



<pre class="wp-block-code"><code>SELECT DATEADD(dd, 0, DATEDIFF(dd, 0, GETDATE()));</code></pre>



<p>And it returns the same result.</p>



<ul class="wp-block-list">
<li><strong>Use CAST</strong></li>
</ul>



<p>CAST syntax:</p>



<pre class="wp-block-code"><code>CAST ( expression AS data_type &#91; ( length ) ] )  </code></pre>



<p>For the example above, you can use:</p>



<pre class="wp-block-code"><code>SELECT CAST(getdate() AS date);</code></pre>



<p>Or you can cast it to varchar:</p>



<pre class="wp-block-code"><code>SELECT CAST(getdate() AS varchar(10));</code></pre>
<p>The post <a href="https://info-spot.net/sql-get-date-from-datetime/">MS SQL Server &#8211; How to get Date only from the datetime value?</a> appeared first on <a href="https://info-spot.net">Info Spot</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://info-spot.net/sql-get-date-from-datetime/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Database engine service failed in SQL server 2022 in windows 11</title>
		<link>https://info-spot.net/service-failed-sql-2022-win11/</link>
					<comments>https://info-spot.net/service-failed-sql-2022-win11/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Mon, 02 Dec 2024 07:32:50 +0000</pubDate>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[database engine failed]]></category>
		<category><![CDATA[sql 2022]]></category>
		<category><![CDATA[sql server]]></category>
		<guid isPermaLink="false">https://info-spot.net/?p=741</guid>

					<description><![CDATA[<p>Method 1 You can try to uninstall it cleanly and install it again. Please follow the below steps&#8230;</p>
<p>The post <a href="https://info-spot.net/service-failed-sql-2022-win11/">Database engine service failed in SQL server 2022 in windows 11</a> appeared first on <a href="https://info-spot.net">Info Spot</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading">Method 1</h3>



<p>You can try to uninstall it cleanly and install it again.</p>



<p>Please follow the below steps to remove all components of previous installed SQL Server completely:</p>



<ol class="wp-block-list">
<li>Remove all SQL Server components from &#8216;Programs and Features&#8217;</li>



<li>Backup the registry</li>



<li>Delete the following keys in regedit:</li>
</ol>



<p>&#8211;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server</p>



<p>&#8211;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer</p>



<ol start="4" class="wp-block-list">
<li>Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall and delete all the sub-keys referencing SQL Server</li>



<li>Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services and delete all the keys referencing SQL Server</li>



<li><strong>Reboot</strong> the machine</li>
</ol>



<p>In addition, please use an administrator account to reinstall SQL Server on your computer(Right click-&gt;run as administrator).</p>



<p>You can check the installation conditions before installation by referring to the following link.</p>



<p>refer to below link on Microsoft website for more information</p>



<p><a target="-blank" href="https://learn.microsoft.com/en-us/answers/questions/1193890/how-do-i-fix-mssql-server-2022-database-engine-ser">https://learn.microsoft.com/en-us/answers/questions/1193890/how-do-i-fix-mssql-server-2022-database-engine-ser</a></p>



<h3 class="wp-block-heading">Method 2</h3>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="709" height="278" src="https://info-spot.net/wp-content/uploads/2024/12/image-3.png" alt="" class="wp-image-749" srcset="https://info-spot.net/wp-content/uploads/2024/12/image-3.png 709w, https://info-spot.net/wp-content/uploads/2024/12/image-3-300x118.png 300w" sizes="(max-width: 709px) 100vw, 709px" /></figure>
<p>The post <a href="https://info-spot.net/service-failed-sql-2022-win11/">Database engine service failed in SQL server 2022 in windows 11</a> appeared first on <a href="https://info-spot.net">Info Spot</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://info-spot.net/service-failed-sql-2022-win11/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
