<?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/"
	xmlns:media="http://search.yahoo.com/mrss/" >

<channel>
	<title>SQL Server &#8211; SQL Server Guides</title>
	<atom:link href="https://sqlserverguides.com/category/sql-server/feed/" rel="self" type="application/rss+xml" />
	<link>https://sqlserverguides.com</link>
	<description>Tutorials on SQL Server</description>
	<lastBuildDate>Wed, 22 Apr 2026 10:28:40 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://sqlserverguides.com/wp-content/uploads/2023/10/sqlserverguides-150x150.png</url>
	<title>SQL Server &#8211; SQL Server Guides</title>
	<link>https://sqlserverguides.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>SSMS vs pgAdmin</title>
		<link>https://sqlserverguides.com/ssms-vs-pgadmin/</link>
		
		<dc:creator><![CDATA[Bijay Kumar Sahoo]]></dc:creator>
		<pubDate>Wed, 22 Apr 2026 10:22:28 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SSMS vs pgAdmin]]></category>
		<guid isPermaLink="false">https://sqlserverguides.com/?p=23319</guid>

					<description><![CDATA[Today, we are looking at the two heavyweights of the GUI world: SQL Server Management Studio (SSMS) and pgAdmin. Understanding the nuances between these two is critical. In this comprehensive article, I’ll walk you through the strengths, weaknesses, and modern 2026 features of both, helping you decide which one deserves a spot in your dev ... <a title="SSMS vs pgAdmin" class="read-more" href="https://sqlserverguides.com/ssms-vs-pgadmin/" aria-label="Read more about SSMS vs pgAdmin">Read more</a>]]></description>
										<content:encoded><![CDATA[
<p>Today, we are looking at the two heavyweights of the GUI world: <strong>SQL Server Management Studio (<a href="https://sqlserverguides.com/what-is-ssms/" target="_blank" rel="noreferrer noopener">SSMS</a>)</strong> and <strong>pgAdmin. </strong>Understanding the nuances between these two is critical. In this comprehensive article, I’ll walk you through the strengths, weaknesses, and modern 2026 features of both, helping you decide which one deserves a spot in your dev environment.</p>



<h2 class="wp-block-heading">SSMS vs pgAdmin</h2>



<h3 class="wp-block-heading">What is SSMS? (The Microsoft Powerhouse)</h3>



<p><strong>SQL Server Management Studio (SSMS)</strong> is the native integrated environment for managing any SQL Server infrastructure. Developed by Microsoft, it is widely considered the gold standard for administrative tooling. It’s not just a query editor; it’s a full-scale command center.</p>



<h4 class="wp-block-heading">Key Features of SSMS in 2026:</h4>



<ul class="wp-block-list">
<li><strong>Object Explorer:</strong> A highly intuitive tree view for managing databases, security, and server objects.</li>



<li><strong>Intelligent Query Processing:</strong> Native AI-driven suggestions (now bolstered by GitHub Copilot integration) that help write T-SQL faster.</li>



<li><strong>XEvent Profiler:</strong> Advanced monitoring that has largely replaced the old SQL Profiler for real-time troubleshooting.</li>



<li><strong>Integration Services (SSIS):</strong> Built-in support for managing complex ETL packages.</li>
</ul>



<h3 class="wp-block-heading">What is pgAdmin? (The Open Source Champion)</h3>



<p>On the other side of the ring, we have <strong>pgAdmin</strong>, the most popular open-source management tool for <strong>PostgreSQL</strong>. While SSMS is tied to Windows and SQL Server, pgAdmin is the &#8220;citizen of the world.&#8221; It’s cross-platform, web-based, and built by the community for the community.</p>



<h4 class="wp-block-heading">Key Features of pgAdmin in 2026:</h4>



<ul class="wp-block-list">
<li><strong>Web-Based Architecture:</strong> It can run as a standalone desktop app or as a web service on a server.</li>



<li><strong>Query Tool with Auto-Commit:</strong> A sleek interface for writing and executing asynchronous queries.</li>



<li><strong>Dashboarding:</strong> Real-time visual monitoring of server sessions, transactions per second, and locks.</li>



<li><strong>ERD Tool:</strong> A built-in Entity Relationship Diagram creator that is surprisingly robust for a free tool.</li>
</ul>



<h3 class="wp-block-heading">Head-to-Head Comparison: The &#8220;Must-Know&#8221; Differences</h3>



<p>Before we dive into the tutorial, let’s look at the cold, hard facts. I’ve compiled this comparison table based on my experience managing high-traffic clusters.</p>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><td><strong>Feature</strong></td><td><strong>SQL Server Management Studio (SSMS)</strong></td><td><strong>pgAdmin 4</strong></td></tr></thead><tbody><tr><td><strong>Primary Target</strong></td><td>Microsoft SQL Server / Azure SQL</td><td>PostgreSQL / EDB Postgres</td></tr><tr><td><strong>Operating System</strong></td><td>Windows Only (Native)</td><td>Windows, macOS, Linux, Web</td></tr><tr><td><strong>Cost</strong></td><td>Free (but requires SQL Server License)</td><td>100% Free (Open Source)</td></tr><tr><td><strong>User Interface</strong></td><td>Heavyweight, Desktop-native (WPF)</td><td>Modern, Web-based (Python/JS)</td></tr><tr><td><strong>AI Support</strong></td><td>Native Copilot &amp; AI Tuning</td><td>Plugin-based / Third-party</td></tr><tr><td><strong>Resource Usage</strong></td><td>High RAM/CPU footprint</td><td>Moderate (Browser-dependent)</td></tr><tr><td><strong>Extensibility</strong></td><td>Limited to Visual Studio-style plugins</td><td>Highly extensible via Python/Web tech</td></tr></tbody></table></figure>



<h3 class="wp-block-heading">First-Person Tutorial: Navigating Your First Session</h3>



<h4 class="wp-block-heading">Part 1: Setting the Stage in SSMS</h4>



<p>When I open SSMS, the first thing I do is connect to my <strong>Object Explorer</strong>.</p>



<ol start="1" class="wp-block-list">
<li><strong>Connecting:</strong> I use Windows Authentication for local dev, but for production, I’m always using <strong>Azure Active Directory</strong> (now Microsoft Entra) with Multi-Factor Authentication.</li>



<li><strong>The Environment:</strong> I immediately head to <em>Tools > Options</em> to enable &#8220;Line Numbers&#8221; and &#8220;Check for updates on startup.&#8221;</li>



<li><strong>Writing a Query:</strong> I hit <code class="">Ctrl+N</code> for a new query window. The T-SQL IntelliSense in SSMS is incredibly snappy. If I&#8217;m working on a slow-running report, I right-click the query and select <strong>&#8220;Include Actual Execution Plan.&#8221;</strong> > <strong>Note:</strong> The graphical execution plan in SSMS is, in my opinion, the best in the business. It shows exactly which index is missing and even offers a &#8220;Missing Index&#8221; suggestion in green text at the top.</li>
</ol>



<h4 class="wp-block-heading">Part 2: Moving to the Open Side with pgAdmin</h4>



<p>Now, let&#8217;s say my project requires a PostgreSQL backend for a mobile app. I fire up pgAdmin 4.</p>



<ol start="1" class="wp-block-list">
<li><strong>The Dashboard:</strong> Unlike SSMS, pgAdmin drops you into a <strong>Dashboard</strong> first. I love this. I can immediately see the &#8220;Transactions per second&#8221; and &#8220;Server sessions.&#8221; If a dev in the San Francisco office left a transaction hanging, I see it here instantly.</li>



<li><strong>Server Registration:</strong> I right-click &#8220;Servers&#8221; and choose &#8220;Register.&#8221; One thing to watch for here: pgAdmin is very strict about SSL modes. If you’re connecting to an AWS RDS instance, make sure your &#8220;SSL Mode&#8221; is set to &#8216;Require&#8217; or &#8216;Verify-Full.&#8217;</li>



<li><strong>The Query Tool:</strong> I click the lightning bolt icon. The pgAdmin query tool feels more like a modern code editor (think VS Code light). One feature I use constantly is the <strong>&#8220;Filter&#8221;</strong> on the data output grid—it allows me to filter results without rewriting the <code class="">WHERE</code> clause.</li>
</ol>



<h3 class="wp-block-heading">Performance and Usability: An Honest Assessment</h3>



<h4 class="wp-block-heading">SSMS: </h4>



<p>SSMS is built for the long haul. It can handle thousands of tables and complex schemas without breaking a sweat. However, it is <strong>resource-heavy</strong>. If you are running it on a laptop with only 8GB of RAM while also hosting a Zoom call and a Docker container, you’re going to feel the lag.</p>



<h4 class="wp-block-heading">pgAdmin: </h4>



<p>pgAdmin is agile. Because it’s web-based, I can actually host it on a central server and my entire team can access it via a URL—no installation required on their local machines. This is a game-changer for remote teams spread across different time zones.</p>



<p>However, pgAdmin can sometimes feel &#8220;clunky&#8221; when dealing with massive data exports. If I&#8217;m trying to view a result set of 100,000 rows, pgAdmin’s browser-based rendering can struggle compared to the native rendering of SSMS.</p>



<h3 class="wp-block-heading">Which Tool Should You Choose?</h3>



<h4 class="wp-block-heading">Choose SSMS if:</h4>



<ul class="wp-block-list">
<li>You are primarily working in a <strong>Windows-centric</strong> environment.</li>



<li>You manage <strong>SQL Server Integration Services (SSIS)</strong> or Analysis Services (SSAS).</li>



<li>You need the most advanced <strong>graphical execution plan</strong> analysis available.</li>



<li>Your company relies on <strong>Active Directory</strong> for granular security.</li>
</ul>



<h4 class="wp-block-heading">Choose pgAdmin if:</h4>



<ul class="wp-block-list">
<li>You are building <strong>cloud-native applications</strong> on PostgreSQL.</li>



<li>You work on <strong>macOS or Linux</strong> (SSMS won&#8217;t even install there).</li>



<li>You want a <strong>free, open-source tool</strong> that is updated frequently by the community.</li>



<li>You prefer a <strong>web-based interface</strong> that can be shared across a team.</li>
</ul>



<h3 class="wp-block-heading">Expert Tips for More Productivity</h3>



<ul class="wp-block-list">
<li><strong>Dark Mode:</strong> Both tools finally have excellent dark modes. Save your eyes during those late-night deployment windows!</li>



<li><strong>Keyboard Shortcuts:</strong> Learn them. In SSMS, <code class="">Alt+F1</code> on a table name gives you its schema. In pgAdmin, <code class="">F5</code> executes the query. These seconds add up.</li>



<li><strong>Version Control:</strong> Don&#8217;t just write queries in the GUI. Both tools now have better integration with <strong>Git</strong>. Always commit your migration scripts to a repository like GitHub or GitLab.</li>



<li><strong>AI Integration:</strong> Use the new AI assistants. If a query is slow, ask the integrated AI to &#8220;Explain this plan in plain English.&#8221; You&#8217;d be surprised how often it points out a simple casting error or a missing join predicate.</li>
</ul>



<h2 class="wp-block-heading">Final Thoughts</h2>



<p>In the battle of <strong>SSMS vs. pgAdmin</strong>, there is no loser—only different use cases.</p>



<p>If I’m working for a traditional bank, I’m probably using SSMS. It’s robust, secure, and integrated. If I’m at a tech startup in Boulder, CO, building a scalable web app, pgAdmin (or even a CLI like <code class="">psql</code>) is my go-to.</p>



<p>The beauty of the 2026 data landscape is that these tools are becoming more alike. pgAdmin is getting more &#8220;enterprise-grade&#8221; features, and SSMS is becoming more &#8220;cloud-aware.&#8221;</p>



<p>You may also like the following articles:</p>



<ul class="wp-block-list">
<li><a href="https://sqlserverguides.com/ssms-vs-azure-data-studio/" target="_blank" rel="noreferrer noopener">SSMS vs Azure Data Studio</a></li>



<li><a href="https://sqlserverguides.com/rename-database-ssms/" target="_blank" rel="noreferrer noopener">Rename Database SSMS</a></li>



<li><a href="https://sqlserverguides.com/ssms-22-new-features/" target="_blank" rel="noreferrer noopener">SSMS 22 New Features</a></li>



<li><a href="https://sqlserverguides.com/ssms-latest-version/" target="_blank" rel="noreferrer noopener">SSMS Latest Version</a></li>
</ul>
<div class="saboxplugin-wrap" itemtype="http://schema.org/Person" itemscope itemprop="author"><div class="saboxplugin-tab"><div class="saboxplugin-gravatar"><img alt='Bijay Kumar Sahoo' src='https://secure.gravatar.com/avatar/18a79d27129a98c6530098c50aef09aa901fced58315025237441af82a0fa179?s=100&#038;d=mm&#038;r=g' srcset='https://secure.gravatar.com/avatar/18a79d27129a98c6530098c50aef09aa901fced58315025237441af82a0fa179?s=200&#038;d=mm&#038;r=g 2x' class='avatar avatar-100 photo' height='100' width='100' itemprop="image"/></div><div class="saboxplugin-authorname"><a href="https://sqlserverguides.com/author/fewlines4biju/" class="vcard author" rel="author"><span class="fn">Bijay Kumar Sahoo</span></a></div><div class="saboxplugin-desc"><div itemprop="description"><p>After working for more than 15 years in the Software field, especially in Microsoft technologies, I have decided to share my expert knowledge of SQL Server. Check out all the SQL Server and related database tutorials I have shared here. Most of the readers are from countries like the United States of America, the United Kingdom, New Zealand, Australia, Canada, etc. I am also a <a href="https://mvp.microsoft.com/en-us/PublicProfile/5000972" rel="noopener" target="_blank">Microsoft MVP</a>. Check out more <a href="https://sqlserverguides.com/about/" rel="noopener">here</a>.</p>
</div></div><div class="saboxplugin-web "><a href="https://sqlserverguides.com" target="_self">sqlserverguides.com</a></div><div class="clearfix"></div><div class="saboxplugin-socials "><a title="Facebook" target="_self" href="https://www.facebook.com/fewlines4biju" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-facebook" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 264 512"><path fill="currentColor" d="M76.7 512V283H0v-91h76.7v-71.7C76.7 42.4 124.3 0 193.8 0c33.3 0 61.9 2.5 70.2 3.6V85h-48.2c-37.8 0-45.1 18-45.1 44.3V192H256l-11.7 91h-73.6v229"></path></svg></span></a><a title="Linkedin" target="_self" href="https://www.linkedin.com/in/fewlines4biju/" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-linkedin" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M100.3 480H7.4V180.9h92.9V480zM53.8 140.1C24.1 140.1 0 115.5 0 85.8 0 56.1 24.1 32 53.8 32c29.7 0 53.8 24.1 53.8 53.8 0 29.7-24.1 54.3-53.8 54.3zM448 480h-92.7V334.4c0-34.7-.7-79.2-48.3-79.2-48.3 0-55.7 37.7-55.7 76.7V480h-92.8V180.9h89.1v40.8h1.3c12.4-23.5 42.7-48.3 87.9-48.3 94 0 111.3 61.9 111.3 142.3V480z"></path></svg></span></a><a title="Twitter" target="_self" href="https://twitter.com/fewlines4biju" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-twitter" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"><path d="M26.37,26l-8.795-12.822l0.015,0.012L25.52,4h-2.65l-6.46,7.48L11.28,4H4.33l8.211,11.971L12.54,15.97L3.88,26h2.65 l7.182-8.322L19.42,26H26.37z M10.23,6l12.34,18h-2.1L8.12,6H10.23z" /></svg></span></a><a title="Pinterest" target="_self" href="https://in.pinterest.com/fewlines4biju/" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-pinterest" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path fill="currentColor" d="M496 256c0 137-111 248-248 248-25.6 0-50.2-3.9-73.4-11.1 10.1-16.5 25.2-43.5 30.8-65 3-11.6 15.4-59 15.4-59 8.1 15.4 31.7 28.5 56.8 28.5 74.8 0 128.7-68.8 128.7-154.3 0-81.9-66.9-143.2-152.9-143.2-107 0-163.9 71.8-163.9 150.1 0 36.4 19.4 81.7 50.3 96.1 4.7 2.2 7.2 1.2 8.3-3.3.8-3.4 5-20.3 6.9-28.1.6-2.5.3-4.7-1.7-7.1-10.1-12.5-18.3-35.3-18.3-56.6 0-54.7 41.4-107.6 112-107.6 60.9 0 103.6 41.5 103.6 100.9 0 67.1-33.9 113.6-78 113.6-24.3 0-42.6-20.1-36.7-44.8 7-29.5 20.5-61.3 20.5-82.6 0-19-10.2-34.9-31.4-34.9-24.9 0-44.9 25.7-44.9 60.2 0 22 7.4 36.8 7.4 36.8s-24.5 103.8-29 123.2c-5 21.4-3 51.6-.9 71.2C65.4 450.9 0 361.1 0 256 0 119 111 8 248 8s248 111 248 248z"></path></svg></span></a></div></div></div>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Rename Database SSMS</title>
		<link>https://sqlserverguides.com/rename-database-ssms/</link>
		
		<dc:creator><![CDATA[Bijay Kumar Sahoo]]></dc:creator>
		<pubDate>Tue, 21 Apr 2026 14:00:21 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Rename Database SSMS]]></category>
		<guid isPermaLink="false">https://sqlserverguides.com/?p=23314</guid>

					<description><![CDATA[In this article, I will walk you through professional ways to rename a database in SQL Server Management Studio (SSMS). We will cover the graphical interface, the robust T-SQL approach, and the critical &#8220;gotchas&#8221; that can take your applications offline if you aren&#8217;t careful. Rename Database SSMS Method 1: The Graphical User Interface (GUI) Way ... <a title="Rename Database SSMS" class="read-more" href="https://sqlserverguides.com/rename-database-ssms/" aria-label="Read more about Rename Database SSMS">Read more</a>]]></description>
										<content:encoded><![CDATA[
<p>In this article, I will walk you through professional ways to rename a database in <strong>SQL Server Management Studio (SSMS)</strong>. We will cover the graphical interface, the robust T-SQL approach, and the critical &#8220;gotchas&#8221; that can take your applications offline if you aren&#8217;t careful.</p>



<h2 class="wp-block-heading">Rename Database SSMS</h2>



<h3 class="wp-block-heading">Method 1: The Graphical User Interface (GUI) Way</h3>



<p>For most day-to-day tasks in dev environments, the SSMS GUI is the most intuitive path.</p>



<h4 class="wp-block-heading">Step-by-Step GUI Rename:</h4>



<ol start="1" class="wp-block-list">
<li>Open <strong>SQL Server Management Studio</strong> and connect to your instance.</li>



<li>Expand the <strong>Databases</strong> node in the <strong>Object Explorer</strong>.</li>



<li><strong>Crucial Step:</strong> Ensure no one is using the database. (See the &#8220;Single User Mode&#8221; section below if you get an error).</li>



<li>Right-click the target database and select <strong>Rename</strong>.</li>



<li>Type the new name and press <strong>Enter</strong>.</li>



<li>Right-click the <strong>Databases</strong> folder and select <strong>Refresh</strong> to verify the change. Check out the screenshot below for your reference.</li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img fetchpriority="high" decoding="async" width="304" height="573" src="https://sqlserverguides.com/wp-content/uploads/2026/04/RENAME-DATABASE-SSMS.jpg" alt="RENAME DATABASE SSMS" class="wp-image-23315" srcset="https://sqlserverguides.com/wp-content/uploads/2026/04/RENAME-DATABASE-SSMS.jpg 304w, https://sqlserverguides.com/wp-content/uploads/2026/04/RENAME-DATABASE-SSMS-159x300.jpg 159w" sizes="(max-width: 304px) 100vw, 304px" /></figure>
</div>


<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p id="p-rc_6f707b67082f5e1d-106"><strong>Expert Insight:</strong> If you see an error stating &#8220;The database could not be exclusively locked,&#8221; it means there are active sessions.<sup></sup> I personally prefer Method 2 (T-SQL) for production servers because it allows me to force-close those sessions.</p>
</blockquote>



<h3 class="wp-block-heading">Method 2: The Professional T-SQL Script (Recommended)</h3>



<p>When I am working on a mission-critical server, I never use the GUI. I use a script. Why? Because a script is repeatable, documented, and far more powerful at handling active connections.</p>



<h4 class="wp-block-heading">The &#8220;Force Rename&#8221; Script</h4>



<p>This script does three things: it kicks everyone out, changes the name, and lets everyone back in.</p>



<p>SQL</p>



<pre class="wp-block-code"><code>USE master;
GO

-- 1. Set the database to Single User mode and kick everyone out immediately
ALTER DATABASE &#91;Old_DB_Name] 
SET SINGLE_USER WITH ROLLBACK IMMEDIATE;
GO

-- 2. Perform the actual rename
ALTER DATABASE &#91;Old_DB_Name] 
MODIFY NAME = &#91;New_DB_Name];
GO

-- 3. Set the database back to Multi User mode
ALTER DATABASE &#91;New_DB_Name] 
SET MULTI_USER;
GO
</code></pre>



<p>After executing the query above, I received the expected output, as shown in the screenshot below.</p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img decoding="async" width="1024" height="552" src="https://sqlserverguides.com/wp-content/uploads/2026/04/how-to-rename-database-name-in-sql-1024x552.jpg" alt="how to rename database name in sql" class="wp-image-23316" srcset="https://sqlserverguides.com/wp-content/uploads/2026/04/how-to-rename-database-name-in-sql-1024x552.jpg 1024w, https://sqlserverguides.com/wp-content/uploads/2026/04/how-to-rename-database-name-in-sql-300x162.jpg 300w, https://sqlserverguides.com/wp-content/uploads/2026/04/how-to-rename-database-name-in-sql-768x414.jpg 768w, https://sqlserverguides.com/wp-content/uploads/2026/04/how-to-rename-database-name-in-sql.jpg 1182w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>
</div>


<h4 class="wp-block-heading">Why &#8220;ROLLBACK IMMEDIATE&#8221;?</h4>



<p>In a busy office in <strong>Austin</strong>, a user might have a transaction open. <code>ROLLBACK IMMEDIATE</code> tells SQL Server to terminate those transactions and disconnect the users instantly so the rename can happen without waiting for them to finish their lunch break.</p>



<h3 class="wp-block-heading">The &#8220;Physical File&#8221; Dilemma: Renaming .mdf and .ldf</h3>



<p>After a rename, you might notice that your files on the <code>C:</code> or <code>D:</code> drive still have the old names. For a truly clean environment, you may want the physical files to match the logical name.</p>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><td><strong>Feature</strong></td><td><strong>ALTER DATABASE Rename</strong></td><td><strong>Detach/Attach Rename</strong></td></tr></thead><tbody><tr><td><strong>Logical Name Change</strong></td><td>Yes</td><td>Yes</td></tr><tr><td><strong>Physical File Rename</strong></td><td><strong>No</strong></td><td><strong>Yes</strong></td></tr><tr><td><strong>Downtime Required</strong></td><td>Minimal</td><td>Significant</td></tr><tr><td><strong>Risk Level</strong></td><td>Low</td><td>Medium</td></tr></tbody></table></figure>



<h4 class="wp-block-heading">How to Rename Physical Files:</h4>



<ol start="1" class="wp-block-list">
<li><strong>Detach</strong> the database in SSMS.</li>



<li>Go to the Windows folder and manually rename the <code>.mdf</code> and <code>.ldf</code> files.</li>



<li><strong>Attach</strong> the database in SSMS, pointing to the new file names and specifying the new database name.</li>
</ol>



<h3 class="wp-block-heading">Troubleshooting: Common SSMS Rename Errors</h3>



<p>Here is how to scale them:</p>



<h4 class="wp-block-heading">1. Msg 5030: Database could not be exclusively locked</h4>



<ul class="wp-block-list">
<li><strong>The Cause:</strong> Someone (or a background service) is connected.</li>



<li><strong>The Fix:</strong> Use the <code>SET SINGLE_USER</code> script provided above.</li>
</ul>



<h4 class="wp-block-heading">2. Error: Login failed for user</h4>



<ul class="wp-block-list">
<li><strong>The Cause:</strong> After a rename, your application’s connection string is still looking for the old name.</li>



<li><strong>The Fix:</strong> You must update all <code>.config</code> files, <code>.env</code> files, and <strong>SQL Server Agent Jobs</strong> to point to the new name.</li>
</ul>



<h4 class="wp-block-heading">3. &#8220;The database is a system database&#8221;</h4>



<ul class="wp-block-list">
<li><strong>The Warning:</strong> You cannot rename <code>master</code>, <code>model</code>, <code>tempdb</code>, or <code>msdb</code>. Don&#8217;t even try—it will break the entire SQL instance.</li>
</ul>



<h2 class="wp-block-heading">Conclusion</h2>



<p>Renaming a database in <strong>SSMS</strong> is a task that requires both precision and a plan. Whether you use the quick GUI method for a local project or the authoritative T-SQL script for a production cluster, always ensure you have exclusive access and a recent backup.</p>



<p>You may also like the following articles:</p>



<ul class="wp-block-list">
<li><a href="https://sqlserverguides.com/sql-join-example-with-where-clause/" target="_blank" rel="noreferrer noopener">SQL Join Example With Where Clause</a></li>



<li><a href="https://sqlserverguides.com/ssms-keyboard-shortcuts/" target="_blank" rel="noreferrer noopener">SSMS Keyboard Shortcuts</a></li>



<li><a href="https://sqlserverguides.com/how-to-find-sql-server-instance-name-in-ssms/" target="_blank" rel="noreferrer noopener">How to find SQL Server instance name in SSMS</a></li>



<li><a href="https://sqlserverguides.com/how-to-insert-data-in-ssms/" target="_blank" rel="noreferrer noopener">How To Insert Data In SSMS</a></li>
</ul>
<div class="saboxplugin-wrap" itemtype="http://schema.org/Person" itemscope itemprop="author"><div class="saboxplugin-tab"><div class="saboxplugin-gravatar"><img alt='Bijay Kumar Sahoo' src='https://secure.gravatar.com/avatar/18a79d27129a98c6530098c50aef09aa901fced58315025237441af82a0fa179?s=100&#038;d=mm&#038;r=g' srcset='https://secure.gravatar.com/avatar/18a79d27129a98c6530098c50aef09aa901fced58315025237441af82a0fa179?s=200&#038;d=mm&#038;r=g 2x' class='avatar avatar-100 photo' height='100' width='100' itemprop="image"/></div><div class="saboxplugin-authorname"><a href="https://sqlserverguides.com/author/fewlines4biju/" class="vcard author" rel="author"><span class="fn">Bijay Kumar Sahoo</span></a></div><div class="saboxplugin-desc"><div itemprop="description"><p>After working for more than 15 years in the Software field, especially in Microsoft technologies, I have decided to share my expert knowledge of SQL Server. Check out all the SQL Server and related database tutorials I have shared here. Most of the readers are from countries like the United States of America, the United Kingdom, New Zealand, Australia, Canada, etc. I am also a <a href="https://mvp.microsoft.com/en-us/PublicProfile/5000972" rel="noopener" target="_blank">Microsoft MVP</a>. Check out more <a href="https://sqlserverguides.com/about/" rel="noopener">here</a>.</p>
</div></div><div class="saboxplugin-web "><a href="https://sqlserverguides.com" target="_self">sqlserverguides.com</a></div><div class="clearfix"></div><div class="saboxplugin-socials "><a title="Facebook" target="_self" href="https://www.facebook.com/fewlines4biju" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-facebook" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 264 512"><path fill="currentColor" d="M76.7 512V283H0v-91h76.7v-71.7C76.7 42.4 124.3 0 193.8 0c33.3 0 61.9 2.5 70.2 3.6V85h-48.2c-37.8 0-45.1 18-45.1 44.3V192H256l-11.7 91h-73.6v229"></path></svg></span></a><a title="Linkedin" target="_self" href="https://www.linkedin.com/in/fewlines4biju/" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-linkedin" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M100.3 480H7.4V180.9h92.9V480zM53.8 140.1C24.1 140.1 0 115.5 0 85.8 0 56.1 24.1 32 53.8 32c29.7 0 53.8 24.1 53.8 53.8 0 29.7-24.1 54.3-53.8 54.3zM448 480h-92.7V334.4c0-34.7-.7-79.2-48.3-79.2-48.3 0-55.7 37.7-55.7 76.7V480h-92.8V180.9h89.1v40.8h1.3c12.4-23.5 42.7-48.3 87.9-48.3 94 0 111.3 61.9 111.3 142.3V480z"></path></svg></span></a><a title="Twitter" target="_self" href="https://twitter.com/fewlines4biju" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-twitter" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"><path d="M26.37,26l-8.795-12.822l0.015,0.012L25.52,4h-2.65l-6.46,7.48L11.28,4H4.33l8.211,11.971L12.54,15.97L3.88,26h2.65 l7.182-8.322L19.42,26H26.37z M10.23,6l12.34,18h-2.1L8.12,6H10.23z" /></svg></span></a><a title="Pinterest" target="_self" href="https://in.pinterest.com/fewlines4biju/" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-pinterest" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path fill="currentColor" d="M496 256c0 137-111 248-248 248-25.6 0-50.2-3.9-73.4-11.1 10.1-16.5 25.2-43.5 30.8-65 3-11.6 15.4-59 15.4-59 8.1 15.4 31.7 28.5 56.8 28.5 74.8 0 128.7-68.8 128.7-154.3 0-81.9-66.9-143.2-152.9-143.2-107 0-163.9 71.8-163.9 150.1 0 36.4 19.4 81.7 50.3 96.1 4.7 2.2 7.2 1.2 8.3-3.3.8-3.4 5-20.3 6.9-28.1.6-2.5.3-4.7-1.7-7.1-10.1-12.5-18.3-35.3-18.3-56.6 0-54.7 41.4-107.6 112-107.6 60.9 0 103.6 41.5 103.6 100.9 0 67.1-33.9 113.6-78 113.6-24.3 0-42.6-20.1-36.7-44.8 7-29.5 20.5-61.3 20.5-82.6 0-19-10.2-34.9-31.4-34.9-24.9 0-44.9 25.7-44.9 60.2 0 22 7.4 36.8 7.4 36.8s-24.5 103.8-29 123.2c-5 21.4-3 51.6-.9 71.2C65.4 450.9 0 361.1 0 256 0 119 111 8 248 8s248 111 248 248z"></path></svg></span></a></div></div></div>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>SSMS vs Azure Data Studio</title>
		<link>https://sqlserverguides.com/ssms-vs-azure-data-studio/</link>
		
		<dc:creator><![CDATA[Bijay Kumar Sahoo]]></dc:creator>
		<pubDate>Mon, 20 Apr 2026 13:47:35 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SSMS vs Azure Data Studio]]></category>
		<guid isPermaLink="false">https://sqlserverguides.com/?p=23307</guid>

					<description><![CDATA[Choosing between SQL Server Management Studio (SSMS) and Azure Data Studio (ADS) is like choosing between a heavy-duty workshop and a precision multitool. In this article, I’ll break down the nuances of each to help you decide which belongs in your daily workflow. SSMS vs Azure Data Studio Defining SSMS and Azure Data Studio Before ... <a title="SSMS vs Azure Data Studio" class="read-more" href="https://sqlserverguides.com/ssms-vs-azure-data-studio/" aria-label="Read more about SSMS vs Azure Data Studio">Read more</a>]]></description>
										<content:encoded><![CDATA[
<p>Choosing between <strong>SQL Server Management Studio (SSMS)</strong> and <strong>Azure Data Studio (ADS)</strong> is like choosing between a heavy-duty workshop and a precision multitool. In this article, I’ll break down the nuances of each to help you decide which belongs in your daily workflow.</p>



<h2 class="wp-block-heading">SSMS vs Azure Data Studio</h2>



<h3 class="wp-block-heading">Defining SSMS and Azure Data Studio</h3>



<p>Before we compare them, we must understand their DNA. One is a legacy powerhouse; the other is a modern, cross-platform challenger.</p>



<h4 class="wp-block-heading">What is SSMS?</h4>



<p><strong>SQL Server Management Studio (<a href="https://sqlserverguides.com/what-is-ssms/" target="_blank" rel="noreferrer noopener">SSMS</a>)</strong> has been the gold standard since 2005. It is a comprehensive, Windows-only integrated environment for managing any SQL infrastructure, from <strong>SQL Server</strong> to <strong>Azure SQL Database</strong>. It is built for the &#8220;Deep DBA&#8221;—the person responsible for server configuration, security, and complex maintenance.</p>



<h4 class="wp-block-heading">What is Azure Data Studio?</h4>



<p><strong>Azure Data Studio</strong> is the &#8220;new kid on the block,&#8221; released in 2018. Built on the <strong>VS Code</strong> shell, it is a lightweight, cross-platform (Windows, macOS, Linux) editor focused on data development and query execution. It brings modern features like <strong>Notebooks</strong> and an integrated terminal to the SQL world.</p>



<h3 class="wp-block-heading">1. Platform Availability: Where Do You Work?</h3>



<ul class="wp-block-list">
<li><strong>SSMS:</strong> Strictly <strong>Windows-only</strong>. If you are a Mac user in <strong>San Francisco</strong>, you&#8217;ll need a virtual machine or a Remote Desktop session to a server in <strong>Dallas</strong> to run SSMS.</li>



<li><strong>Azure Data Studio:</strong> Fully <strong>Cross-Platform</strong>. Whether you are on a MacBook Pro or a Linux workstation, ADS runs natively. This makes it the darling of modern DevOps teams who don&#8217;t want to be tethered to a single OS.</li>
</ul>



<h3 class="wp-block-heading">2. Core Functionality: DBA vs. Developer</h3>



<p>This is where the two tools diverge most sharply. I often tell my teams that SSMS is for <em>administering</em> the database, while ADS is for <em>interacting</em> with the data.</p>



<h4 class="wp-block-heading">SSMS: The Administrator’s Command Center</h4>



<p>If you need to perform deep-level tasks, SSMS is your only choice. It contains hundreds of &#8220;property&#8221; windows and wizards that ADS simply does not have.</p>



<ul class="wp-block-list">
<li><strong>Query Store Management:</strong> Deep visual analysis of query performance.</li>



<li><strong>Policy-Based Management:</strong> Enforcing standards across a fleet of servers.</li>



<li><strong>SQL Server Agent:</strong> Detailed scheduling and monitoring of jobs.</li>



<li><strong>Database Diagrams:</strong> Visualizing complex schemas for a logistics firm in <strong>Atlanta</strong>.</li>
</ul>



<h4 class="wp-block-heading">Azure Data Studio: The Developer’s Playground</h4>



<p>ADS is optimized for writing code. It feels like a modern text editor because it is one.</p>



<ul class="wp-block-list">
<li><strong>Smart Code Completion:</strong> IntelliSense in ADS is often faster and more intuitive.</li>



<li><strong>Integrated Terminal:</strong> Run PowerShell, Bash, or cmd right next to your SQL query.</li>



<li><strong>Notebooks:</strong> This is the &#8220;killer feature.&#8221; You can combine formatted text (Markdown) with executable SQL code blocks—perfect for creating &#8220;Runbooks&#8221; for your night-shift team.</li>
</ul>



<h3 class="wp-block-heading">Comparison Table: Feature Breakdown</h3>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><td></td><td><strong>Pro SQL Server 2022 Administration 3rd edn₹3,149.10 5 (2) Opens in a new window</strong></td><td><strong>The Definitive Guide To Azure Data Engineering: Modern Elt, Devops, And Analytics On The Azure Cloud Platform₹4,083.60 5 (1) Opens in a new window</strong></td></tr></thead><tbody><tr><td>Primary Focus</td><td>Primary FocusDeep Administration</td><td>Primary FocusDevelopment &amp; Visualization</td></tr><tr><td>Operating System</td><td>Operating SystemWindows Only</td><td>Operating SystemWindows, macOS, Linux</td></tr><tr><td>Extension Support</td><td>Extension SupportLimited (SSMS Add-ins)</td><td>Extension SupportRich (VS Code Ecosystem)</td></tr></tbody></table></figure>



<h3 class="wp-block-heading">3. Visualization and Charting</h3>



<ul class="wp-block-list">
<li><strong>Azure Data Studio</strong> wins here. It allows you to create instant visualizations of your query results. With a few clicks, you can turn a result set into a bar chart or a pie graph.</li>



<li><strong>SSMS</strong> is strictly a grid or text output tool. To visualize data from SSMS, you usually have to export it to Excel or Power BI.</li>
</ul>



<h3 class="wp-block-heading">4. The Extension Ecosystem</h3>



<p>Customization is the hallmark of a professional&#8217;s toolkit.</p>



<ul class="wp-block-list">
<li><strong>ADS</strong> leverages the massive <strong>VS Code extension library</strong>. You can add support for <strong>PostgreSQL</strong>, <strong>MySQL</strong>, and even AI-powered coding assistants like <strong>GitHub Copilot</strong>.</li>



<li><strong>SSMS</strong> has a much smaller ecosystem. While companies like Redgate offer powerful tools for it, the platform is not as &#8220;plugin-friendly&#8221; as the modern ADS shell.</li>
</ul>



<h3 class="wp-block-heading">Tutorial: Which Tool Should You Open?</h3>



<h4 class="wp-block-heading">Use SSMS When:</h4>



<ol start="1" class="wp-block-list">
<li><strong>Configuring Security:</strong> Managing logins, roles, and encryption for a sensitive project in <strong>Denver</strong>.</li>



<li><strong>Performance Tuning:</strong> Using the <strong>Execution Plan</strong> and <strong>Database Engine Tuning Advisor</strong>.</li>



<li><strong>Maintenance:</strong> Running backups, restores, or shrinking files.</li>



<li><strong>Legacy Support:</strong> Working with very old versions of SQL Server (pre-2014).</li>
</ol>



<h4 class="wp-block-heading">Use Azure Data Studio When:</h4>



<ol start="1" class="wp-block-list">
<li><strong>Writing Scripts:</strong> Crafting complex T-SQL for a new web app in <strong>Los Angeles</strong>.</li>



<li><strong>On a Mac/Linux:</strong> If you aren&#8217;t on Windows, this is your primary tool.</li>



<li><strong>Creating Documentation:</strong> Using SQL Notebooks to explain how a query works to a junior dev in <strong>Miami</strong>.</li>



<li><strong>Quick Lookups:</strong> It launches faster than SSMS, making it perfect for &#8220;quick checks.&#8221;</li>
</ol>



<h2 class="wp-block-heading">Conclusion:</h2>



<p>The battle of <strong>SSMS vs. Azure Data Studio</strong> isn&#8217;t about one being &#8220;better&#8221; than the other. It&#8217;s about <strong>Role-Based Utility</strong>.</p>



<p>If your job title is <strong>Database Administrator</strong>, you will live in <strong>SSMS</strong>. Its depth and administrative power are unmatched. However, if you are a <strong>Data Engineer</strong> or a <strong>Full-Stack Developer</strong>, <strong>Azure Data Studio</strong> will feel like home. Its modern interface and cross-platform flexibility align perfectly with the modern dev cycle.</p>



<p>You may also like the following articles:</p>



<ul class="wp-block-list">
<li><a href="https://sqlserverguides.com/ssms-vs-pgadmin/" target="_blank" rel="noreferrer noopener">SSMS vs pgAdmin</a></li>



<li><a href="https://sqlserverguides.com/ssms-keyboard-shortcuts/" target="_blank" rel="noreferrer noopener">SSMS Keyboard Shortcuts</a></li>



<li><a href="https://sqlserverguides.com/sql-select-query-examples/" target="_blank" rel="noreferrer noopener">SQL Select Query Examples</a></li>



<li><a href="https://sqlserverguides.com/ssms-22-new-features/" target="_blank" rel="noreferrer noopener">SSMS 22 New Features</a></li>



<li><a href="https://sqlserverguides.com/copilot-in-ssms/" target="_blank" rel="noreferrer noopener">Copilot In SSMS</a></li>
</ul>
<div class="saboxplugin-wrap" itemtype="http://schema.org/Person" itemscope itemprop="author"><div class="saboxplugin-tab"><div class="saboxplugin-gravatar"><img alt='Bijay Kumar Sahoo' src='https://secure.gravatar.com/avatar/18a79d27129a98c6530098c50aef09aa901fced58315025237441af82a0fa179?s=100&#038;d=mm&#038;r=g' srcset='https://secure.gravatar.com/avatar/18a79d27129a98c6530098c50aef09aa901fced58315025237441af82a0fa179?s=200&#038;d=mm&#038;r=g 2x' class='avatar avatar-100 photo' height='100' width='100' itemprop="image"/></div><div class="saboxplugin-authorname"><a href="https://sqlserverguides.com/author/fewlines4biju/" class="vcard author" rel="author"><span class="fn">Bijay Kumar Sahoo</span></a></div><div class="saboxplugin-desc"><div itemprop="description"><p>After working for more than 15 years in the Software field, especially in Microsoft technologies, I have decided to share my expert knowledge of SQL Server. Check out all the SQL Server and related database tutorials I have shared here. Most of the readers are from countries like the United States of America, the United Kingdom, New Zealand, Australia, Canada, etc. I am also a <a href="https://mvp.microsoft.com/en-us/PublicProfile/5000972" rel="noopener" target="_blank">Microsoft MVP</a>. Check out more <a href="https://sqlserverguides.com/about/" rel="noopener">here</a>.</p>
</div></div><div class="saboxplugin-web "><a href="https://sqlserverguides.com" target="_self">sqlserverguides.com</a></div><div class="clearfix"></div><div class="saboxplugin-socials "><a title="Facebook" target="_self" href="https://www.facebook.com/fewlines4biju" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-facebook" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 264 512"><path fill="currentColor" d="M76.7 512V283H0v-91h76.7v-71.7C76.7 42.4 124.3 0 193.8 0c33.3 0 61.9 2.5 70.2 3.6V85h-48.2c-37.8 0-45.1 18-45.1 44.3V192H256l-11.7 91h-73.6v229"></path></svg></span></a><a title="Linkedin" target="_self" href="https://www.linkedin.com/in/fewlines4biju/" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-linkedin" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M100.3 480H7.4V180.9h92.9V480zM53.8 140.1C24.1 140.1 0 115.5 0 85.8 0 56.1 24.1 32 53.8 32c29.7 0 53.8 24.1 53.8 53.8 0 29.7-24.1 54.3-53.8 54.3zM448 480h-92.7V334.4c0-34.7-.7-79.2-48.3-79.2-48.3 0-55.7 37.7-55.7 76.7V480h-92.8V180.9h89.1v40.8h1.3c12.4-23.5 42.7-48.3 87.9-48.3 94 0 111.3 61.9 111.3 142.3V480z"></path></svg></span></a><a title="Twitter" target="_self" href="https://twitter.com/fewlines4biju" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-twitter" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"><path d="M26.37,26l-8.795-12.822l0.015,0.012L25.52,4h-2.65l-6.46,7.48L11.28,4H4.33l8.211,11.971L12.54,15.97L3.88,26h2.65 l7.182-8.322L19.42,26H26.37z M10.23,6l12.34,18h-2.1L8.12,6H10.23z" /></svg></span></a><a title="Pinterest" target="_self" href="https://in.pinterest.com/fewlines4biju/" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-pinterest" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path fill="currentColor" d="M496 256c0 137-111 248-248 248-25.6 0-50.2-3.9-73.4-11.1 10.1-16.5 25.2-43.5 30.8-65 3-11.6 15.4-59 15.4-59 8.1 15.4 31.7 28.5 56.8 28.5 74.8 0 128.7-68.8 128.7-154.3 0-81.9-66.9-143.2-152.9-143.2-107 0-163.9 71.8-163.9 150.1 0 36.4 19.4 81.7 50.3 96.1 4.7 2.2 7.2 1.2 8.3-3.3.8-3.4 5-20.3 6.9-28.1.6-2.5.3-4.7-1.7-7.1-10.1-12.5-18.3-35.3-18.3-56.6 0-54.7 41.4-107.6 112-107.6 60.9 0 103.6 41.5 103.6 100.9 0 67.1-33.9 113.6-78 113.6-24.3 0-42.6-20.1-36.7-44.8 7-29.5 20.5-61.3 20.5-82.6 0-19-10.2-34.9-31.4-34.9-24.9 0-44.9 25.7-44.9 60.2 0 22 7.4 36.8 7.4 36.8s-24.5 103.8-29 123.2c-5 21.4-3 51.6-.9 71.2C65.4 450.9 0 361.1 0 256 0 119 111 8 248 8s248 111 248 248z"></path></svg></span></a></div></div></div>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>SQL Server Error 18456</title>
		<link>https://sqlserverguides.com/sql-server-error-18456/</link>
		
		<dc:creator><![CDATA[Bijay Kumar Sahoo]]></dc:creator>
		<pubDate>Sun, 19 Apr 2026 10:54:06 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server Error 18456]]></category>
		<guid isPermaLink="false">https://sqlserverguides.com/?p=23292</guid>

					<description><![CDATA[In this authoritative article, I will walk you through my professional framework for fixing this error. I&#8217;ll show you how to find the &#8220;hidden&#8221; state codes and provide a step-by-step tutorial to fix the SQL Server Error 18456. SQL Server Error 18456 What is SQL Server Error 18456? At its core, Error 18456 is an ... <a title="SQL Server Error 18456" class="read-more" href="https://sqlserverguides.com/sql-server-error-18456/" aria-label="Read more about SQL Server Error 18456">Read more</a>]]></description>
										<content:encoded><![CDATA[
<p>In this authoritative article, I will walk you through my professional framework for fixing this error. I&#8217;ll show you how to find the &#8220;hidden&#8221; state codes and provide a step-by-step tutorial to fix the SQL Server Error 18456.</p>



<h2 class="wp-block-heading">SQL Server Error 18456</h2>



<h3 class="wp-block-heading">What is SQL Server Error 18456?</h3>



<p>At its core, <strong>Error 18456</strong> is an authentication failure. It indicates that a user or application tried to connect to a SQL Server instance, but the server rejected the &#8220;digital handshake.&#8221;</p>



<h3 class="wp-block-heading">The &#8220;Security Shield&#8221;</h3>



<p>Microsoft designed this error with a specific security philosophy: <strong>Information obfuscation</strong>. When you see this error in your application or SQL Server Management Studio (SSMS), it often just says:</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p><em>Login failed for user &#8216;&lt;username&gt;&#8217;. (Microsoft SQL Server, Error: 18456)</em></p>
</blockquote>



<p>It won&#8217;t tell you <em>why</em>—at least not on the front end. To find the &#8220;Why,&#8221; we have to look at the <strong>SQL Server Error Log</strong>.</p>



<h3 class="wp-block-heading">Phase 1: Decoding the State Codes</h3>



<p>The secret to solving Error 18456 lies in the <strong>State Code</strong>. Each number represents a specific reason for the failure. I’ve compiled this table of the most common state codes I encounter in high-performance tech environments.</p>



<h4 class="wp-block-heading">18456 State Code Reference Table</h4>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><td><strong>State Code</strong></td><td><strong>Real-World Meaning</strong></td><td><strong>The &#8220;Pro&#8221; Fix</strong></td></tr></thead><tbody><tr><td><strong>State 1</strong></td><td>Information is hidden for security.</td><td>Check the internal Error Log.</td></tr><tr><td><strong>State 2 &amp; 5</strong></td><td>The Username does not exist.</td><td>Verify spelling or create the login.</td></tr><tr><td><strong>State 6</strong></td><td>Windows login used for SQL Auth.</td><td>Check your connection string.</td></tr><tr><td><strong>State 7</strong></td><td>Login is disabled.</td><td>Enable the login via SSMS.</td></tr><tr><td><strong>State 8</strong></td><td>Incorrect Password.</td><td>Reset the password.</td></tr><tr><td><strong>State 11 &amp; 12</strong></td><td>Valid login but no server access.</td><td>Grant the &#8220;Connect&#8221; permission.</td></tr><tr><td><strong>State 18</strong></td><td>Password has expired.</td><td>Change the password immediately.</td></tr><tr><td><strong>State 38</strong></td><td>Database doesn&#8217;t exist/is offline.</td><td>Verify the &#8220;Initial Catalog&#8221; in connection string.</td></tr><tr><td><strong>State 58</strong></td><td>Authentication Mode Mismatch.</td><td>Enable Mixed Mode Authentication.</td></tr></tbody></table></figure>



<h3 class="wp-block-heading">Phase 2: How to Find the &#8220;Hidden&#8221; State Code</h3>



<p>To troubleshoot like an expert, you must go to the source. You can&#8217;t fix what you can&#8217;t see.</p>



<ol start="1" class="wp-block-list">
<li>Open <strong>SQL Server Management Studio (SSMS)</strong>.</li>



<li>Connect to your instance (using an account that <em>can</em> log in, like a Windows Admin).</li>



<li>In the <strong>Object Explorer</strong>, navigate to <strong>Management > SQL Server Logs</strong>.</li>



<li>Double-click the <strong>Current</strong> log.</li>



<li>Search for the text &#8220;18456&#8221;. You will see an entry that looks like this:<em>Error: 18456, Severity: 14, <strong>State: 8</strong>.</em> Check out the screenshot below for your reference.</li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" width="404" height="488" src="https://sqlserverguides.com/wp-content/uploads/2026/04/SQL-Server-Error-18456.jpg" alt="SQL Server Error 18456" class="wp-image-23293" srcset="https://sqlserverguides.com/wp-content/uploads/2026/04/SQL-Server-Error-18456.jpg 404w, https://sqlserverguides.com/wp-content/uploads/2026/04/SQL-Server-Error-18456-248x300.jpg 248w" sizes="(max-width: 404px) 100vw, 404px" /></figure>
</div>

<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="985" height="807" src="https://sqlserverguides.com/wp-content/uploads/2026/04/microsoft-sql-server-error-18456.jpg" alt="microsoft sql server error 18456" class="wp-image-23294" srcset="https://sqlserverguides.com/wp-content/uploads/2026/04/microsoft-sql-server-error-18456.jpg 985w, https://sqlserverguides.com/wp-content/uploads/2026/04/microsoft-sql-server-error-18456-300x246.jpg 300w, https://sqlserverguides.com/wp-content/uploads/2026/04/microsoft-sql-server-error-18456-768x629.jpg 768w" sizes="(max-width: 985px) 100vw, 985px" /></figure>
</div>


<h3 class="wp-block-heading">Phase 3: Step-by-Step Fixes for Common Scenarios</h3>



<p>Once you have your State Code, follow these authoritative steps to resolve the most common blockers.</p>



<h4 class="wp-block-heading">1. Enabling Mixed Mode Authentication (State 58)</h4>



<p>If you are trying to use a SQL Login (like <code class="">sa</code>) but your server is set to &#8220;Windows Only,&#8221; the connection will fail every time.</p>



<ul class="wp-block-list">
<li><strong>The Fix:</strong>
<ul class="wp-block-list">
<li>Right-click the <strong>Server Name</strong> in Object Explorer and select <strong>Properties</strong>.</li>



<li>Go to the <strong>Security</strong> page.</li>



<li>Select <strong>SQL Server and Windows Authentication mode</strong>.</li>



<li><strong>Crucial:</strong> You must restart the SQL Server service for this to take effect. Check out the screenshot below for your reference.</li>
</ul>
</li>
</ul>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="638" height="306" src="https://sqlserverguides.com/wp-content/uploads/2026/04/ms-sql-server-error-18456.jpg" alt="ms sql server error 18456" class="wp-image-23295" srcset="https://sqlserverguides.com/wp-content/uploads/2026/04/ms-sql-server-error-18456.jpg 638w, https://sqlserverguides.com/wp-content/uploads/2026/04/ms-sql-server-error-18456-300x144.jpg 300w" sizes="(max-width: 638px) 100vw, 638px" /></figure>
</div>


<h4 class="wp-block-heading">2. Enabling a Disabled Login (State 7)</h4>



<p>Sometimes, during a security audit, accounts are disabled for compliance.</p>



<ul class="wp-block-list">
<li><strong>The Fix:</strong>
<ul class="wp-block-list">
<li>Go to <strong>Security > Logins</strong>.</li>



<li>Right-click the user and select <strong>Properties</strong>.</li>



<li>Navigate to the <strong>Status</strong> page.</li>



<li>Ensure <strong>Login</strong> is set to <strong>Enabled</strong>.</li>
</ul>
</li>
</ul>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="688" height="471" src="https://sqlserverguides.com/wp-content/uploads/2026/04/microsoft-sql-server-error-18456-how-to-fix.jpg" alt="microsoft sql server error 18456 how to fix" class="wp-image-23296" srcset="https://sqlserverguides.com/wp-content/uploads/2026/04/microsoft-sql-server-error-18456-how-to-fix.jpg 688w, https://sqlserverguides.com/wp-content/uploads/2026/04/microsoft-sql-server-error-18456-how-to-fix-300x205.jpg 300w" sizes="(max-width: 688px) 100vw, 688px" /></figure>
</div>


<h4 class="wp-block-heading">3. Fixing Incorrect Database Access (State 11/12)</h4>



<p>If your application for a retail giant in <strong>Minneapolis</strong> connects fine but can&#8217;t see its data, you likely have a mapping issue.</p>



<ul class="wp-block-list">
<li><strong>The Fix:</strong>
<ul class="wp-block-list">
<li>In the Login Properties, go to <strong>User Mapping</strong>.</li>



<li>Ensure the user is mapped to the correct database.</li>



<li>Check that they have the appropriate role (like <code class="">db_datareader</code> or <code class="">db_datawriter</code>).</li>
</ul>
</li>
</ul>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="600" height="749" src="https://sqlserverguides.com/wp-content/uploads/2026/04/how-to-fix-sql-server-error-18456.jpg" alt="how to fix sql server error 18456" class="wp-image-23297" srcset="https://sqlserverguides.com/wp-content/uploads/2026/04/how-to-fix-sql-server-error-18456.jpg 600w, https://sqlserverguides.com/wp-content/uploads/2026/04/how-to-fix-sql-server-error-18456-240x300.jpg 240w" sizes="(max-width: 600px) 100vw, 600px" /></figure>
</div>


<h3 class="wp-block-heading">Best Practices for Preventing Login Failures</h3>



<p>The best way to handle Error 18456 is to prevent it through strict standards.</p>



<ul class="wp-block-list">
<li><strong>Use Windows Authentication:</strong> Whenever possible, avoid SQL Logins. Integrated Windows Authentication (Active Directory) is more secure and avoids &#8220;password rot.&#8221;</li>



<li><strong>Audit Default Databases:</strong> If you delete a database that was set as a user&#8217;s &#8220;Default Database,&#8221; their login will fail with <strong>State 38</strong>. Always update default databases before a deletion.</li>



<li><strong>Monitor the Error Log:</strong> I recommend setting up an <strong>Azure Monitor</strong> or <strong>SQL Agent Alert</strong> to ping your team in <strong>Phoenix</strong> whenever multiple 18456 errors occur in a short window. This is often a sign of a &#8220;Brute Force&#8221; attack.</li>
</ul>



<h2 class="wp-block-heading">Conclusion</h2>



<p><strong>SQL Server Error 18456</strong> is a common but multifaceted hurdle. By understanding that the server is &#8220;hiding&#8221; the answer in the <strong>State Code</strong>, you can move from frustration to resolution. Whether it&#8217;s a simple password typo or a complex authentication mode mismatch, the Error Log is your primary tool.</p>



<p>You may also like the following articles:</p>



<ul class="wp-block-list">
<li><a href="https://sqlserverguides.com/ssms-cannot-connect-to-server/" target="_blank" rel="noreferrer noopener">SSMS Cannot Connect To Server</a></li>



<li><a href="https://sqlserverguides.com/sql-error-code/" target="_blank" rel="noreferrer noopener">SQL Error Code</a></li>



<li><a href="https://sqlserverguides.com/generate-insert-statements-from-table-sql-server/" target="_blank" rel="noreferrer noopener">Generate Insert Statements From Table SQL Server</a></li>
</ul>
<div class="saboxplugin-wrap" itemtype="http://schema.org/Person" itemscope itemprop="author"><div class="saboxplugin-tab"><div class="saboxplugin-gravatar"><img alt='Bijay Kumar Sahoo' src='https://secure.gravatar.com/avatar/18a79d27129a98c6530098c50aef09aa901fced58315025237441af82a0fa179?s=100&#038;d=mm&#038;r=g' srcset='https://secure.gravatar.com/avatar/18a79d27129a98c6530098c50aef09aa901fced58315025237441af82a0fa179?s=200&#038;d=mm&#038;r=g 2x' class='avatar avatar-100 photo' height='100' width='100' itemprop="image"/></div><div class="saboxplugin-authorname"><a href="https://sqlserverguides.com/author/fewlines4biju/" class="vcard author" rel="author"><span class="fn">Bijay Kumar Sahoo</span></a></div><div class="saboxplugin-desc"><div itemprop="description"><p>After working for more than 15 years in the Software field, especially in Microsoft technologies, I have decided to share my expert knowledge of SQL Server. Check out all the SQL Server and related database tutorials I have shared here. Most of the readers are from countries like the United States of America, the United Kingdom, New Zealand, Australia, Canada, etc. I am also a <a href="https://mvp.microsoft.com/en-us/PublicProfile/5000972" rel="noopener" target="_blank">Microsoft MVP</a>. Check out more <a href="https://sqlserverguides.com/about/" rel="noopener">here</a>.</p>
</div></div><div class="saboxplugin-web "><a href="https://sqlserverguides.com" target="_self">sqlserverguides.com</a></div><div class="clearfix"></div><div class="saboxplugin-socials "><a title="Facebook" target="_self" href="https://www.facebook.com/fewlines4biju" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-facebook" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 264 512"><path fill="currentColor" d="M76.7 512V283H0v-91h76.7v-71.7C76.7 42.4 124.3 0 193.8 0c33.3 0 61.9 2.5 70.2 3.6V85h-48.2c-37.8 0-45.1 18-45.1 44.3V192H256l-11.7 91h-73.6v229"></path></svg></span></a><a title="Linkedin" target="_self" href="https://www.linkedin.com/in/fewlines4biju/" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-linkedin" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M100.3 480H7.4V180.9h92.9V480zM53.8 140.1C24.1 140.1 0 115.5 0 85.8 0 56.1 24.1 32 53.8 32c29.7 0 53.8 24.1 53.8 53.8 0 29.7-24.1 54.3-53.8 54.3zM448 480h-92.7V334.4c0-34.7-.7-79.2-48.3-79.2-48.3 0-55.7 37.7-55.7 76.7V480h-92.8V180.9h89.1v40.8h1.3c12.4-23.5 42.7-48.3 87.9-48.3 94 0 111.3 61.9 111.3 142.3V480z"></path></svg></span></a><a title="Twitter" target="_self" href="https://twitter.com/fewlines4biju" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-twitter" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"><path d="M26.37,26l-8.795-12.822l0.015,0.012L25.52,4h-2.65l-6.46,7.48L11.28,4H4.33l8.211,11.971L12.54,15.97L3.88,26h2.65 l7.182-8.322L19.42,26H26.37z M10.23,6l12.34,18h-2.1L8.12,6H10.23z" /></svg></span></a><a title="Pinterest" target="_self" href="https://in.pinterest.com/fewlines4biju/" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-pinterest" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path fill="currentColor" d="M496 256c0 137-111 248-248 248-25.6 0-50.2-3.9-73.4-11.1 10.1-16.5 25.2-43.5 30.8-65 3-11.6 15.4-59 15.4-59 8.1 15.4 31.7 28.5 56.8 28.5 74.8 0 128.7-68.8 128.7-154.3 0-81.9-66.9-143.2-152.9-143.2-107 0-163.9 71.8-163.9 150.1 0 36.4 19.4 81.7 50.3 96.1 4.7 2.2 7.2 1.2 8.3-3.3.8-3.4 5-20.3 6.9-28.1.6-2.5.3-4.7-1.7-7.1-10.1-12.5-18.3-35.3-18.3-56.6 0-54.7 41.4-107.6 112-107.6 60.9 0 103.6 41.5 103.6 100.9 0 67.1-33.9 113.6-78 113.6-24.3 0-42.6-20.1-36.7-44.8 7-29.5 20.5-61.3 20.5-82.6 0-19-10.2-34.9-31.4-34.9-24.9 0-44.9 25.7-44.9 60.2 0 22 7.4 36.8 7.4 36.8s-24.5 103.8-29 123.2c-5 21.4-3 51.6-.9 71.2C65.4 450.9 0 361.1 0 256 0 119 111 8 248 8s248 111 248 248z"></path></svg></span></a></div></div></div>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>SQL Join Example With Where Clause</title>
		<link>https://sqlserverguides.com/sql-join-example-with-where-clause/</link>
		
		<dc:creator><![CDATA[Bijay Kumar Sahoo]]></dc:creator>
		<pubDate>Sat, 18 Apr 2026 10:38:16 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Join Example With Where Clause]]></category>
		<guid isPermaLink="false">https://sqlserverguides.com/?p=23288</guid>

					<description><![CDATA[In this article, I will show you how to master the SQL JOIN with a WHERE clause to write high-performance, authoritative queries. SQL Join Example With Where Clause The Fundamentals: Connecting Tables and Filtering Results At its core, a JOIN combined with a WHERE clause allows you to retrieve data from two or more tables ... <a title="SQL Join Example With Where Clause" class="read-more" href="https://sqlserverguides.com/sql-join-example-with-where-clause/" aria-label="Read more about SQL Join Example With Where Clause">Read more</a>]]></description>
										<content:encoded><![CDATA[
<p>In this article, I will show you how to master the <strong>SQL JOIN with a WHERE clause</strong> to write high-performance, authoritative queries.</p>



<h2 class="wp-block-heading">SQL Join Example With Where Clause</h2>



<h3 class="wp-block-heading">The Fundamentals: Connecting Tables and Filtering Results</h3>



<p id="p-rc_c52e3aaa554e65ec-86">At its core, a <strong>JOIN</strong> combined with a <strong>WHERE</strong> clause allows you to retrieve data from two or more tables while applying specific filtering criteria to the final result set.<sup></sup></p>



<p>Think of it this way: the <code>JOIN</code> logic (using the <code>ON</code> clause) defines <strong>how</strong> the tables are related, while the <code>WHERE</code> clause defines <strong>which</strong> rows from that combined set should be displayed.</p>



<h3 class="wp-block-heading">The Standard Syntax</h3>



<p>I always follow this standard structure:</p>



<p>SQL</p>



<pre class="wp-block-code"><code>SELECT 
    t1.ColumnName, 
    t2.ColumnName
FROM Table1 AS t1
INNER JOIN Table2 AS t2 
    ON t1.CommonKey = t2.CommonKey
WHERE t1.FilterColumn = 'SpecificValue';</code></pre>



<h3 class="wp-block-heading">1. The INNER JOIN with WHERE Clause</h3>



<p id="p-rc_c52e3aaa554e65ec-87">The most common scenario involves an <strong>INNER JOIN</strong>.<sup></sup> This returns only the records that have matching values in both tables.<sup></sup> When you add a <code>WHERE</code> clause, you are further narrowing down that &#8220;shared&#8221; set of data.</p>



<p>Imagine you are managing a logistics system for a company. You have an <code>Orders</code> table and a <code>Customers</code> table. You only want to see orders placed by customers located in <strong>&#8220;Miami&#8221;</strong>.</p>



<h4 class="wp-block-heading">Example</h4>



<p>SQL</p>



<pre class="wp-block-code"><code>SELECT 
    o.OrderID, 
    o.Amount, 
    c.Name
FROM Orders AS o
INNER JOIN Customers AS c 
    ON o.CustomerID = c.CustomerID
WHERE c.City = 'Miami';</code></pre>



<p>After executing the query above, I received the expected output, as shown in the screenshot below.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="752" height="447" src="https://sqlserverguides.com/wp-content/uploads/2026/04/SQL-Join-Example-With-Where-Clause.jpg" alt="SQL Join Example With Where Clause" class="wp-image-23289" srcset="https://sqlserverguides.com/wp-content/uploads/2026/04/SQL-Join-Example-With-Where-Clause.jpg 752w, https://sqlserverguides.com/wp-content/uploads/2026/04/SQL-Join-Example-With-Where-Clause-300x178.jpg 300w" sizes="(max-width: 752px) 100vw, 752px" /></figure>
</div>


<h4 class="wp-block-heading">Why this works:</h4>



<ul class="wp-block-list">
<li><strong>The JOIN:</strong> Links orders to specific customers.</li>



<li><strong>The WHERE:</strong> Discards every order in the database unless the associated customer resides in the Big Apple.</li>
</ul>



<h3 class="wp-block-heading">2. Filtering with LEFT JOIN: The &#8220;Anti-Join&#8221; Trap</h3>



<p>Things get more sophisticated when using a <strong>LEFT JOIN</strong>. A <code>LEFT JOIN</code> returns all rows from the left table and the matched rows from the right table. If there is no match, the right side results are <code>NULL</code>.</p>



<h4 class="wp-block-heading">The Common Pitfall</h4>



<p>A common mistake I see among junior developers is placing a filter in the <code>WHERE</code> clause that accidentally turns their <code>LEFT JOIN</code> into an <code>INNER JOIN</code>.</p>



<ul class="wp-block-list">
<li><strong>Scenario:</strong> You want a list of all customers and their orders, but you only want to see orders from the year <strong>2026</strong>.</li>



<li><strong>The Mistake:</strong> Placing <code>WHERE o.OrderYear = 2026</code>. Because <code>NULL</code> (for customers with no orders) is not equal to 2026; those customers are filtered out entirely!</li>
</ul>



<h4 class="wp-block-heading">The Pro Fix: Filter in the ON Clause vs. WHERE</h4>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><td><strong>Filter Location</strong></td><td><strong>Result for LEFT JOIN</strong></td></tr></thead><tbody><tr><td><strong>Inside the ON Clause</strong></td><td>Keeps all &#8220;Left&#8221; rows; right-side data is NULL if the filter fails.</td></tr><tr><td><strong>Inside the WHERE Clause</strong></td><td>Discards &#8220;Left&#8221; rows entirely if the filter fails (Behaves like an INNER JOIN).</td></tr></tbody></table></figure>



<h3 class="wp-block-heading">3. Advanced Filtering: Using Multiple Conditions</h3>



<h4 class="wp-block-heading">Using AND/OR in the WHERE Clause</h4>



<p>SQL</p>



<pre class="wp-block-code"><code>SELECT 
    e.EmployeeName, 
    d.DepartmentName, 
    e.Salary
FROM Employees AS e
JOIN Departments AS d 
    ON e.DeptID = d.DeptID
WHERE d.Region = 'West' 
    AND e.Salary &gt; 90000;
</code></pre>



<p>This query identifies high-earning individuals specifically in the <strong>West Coast</strong> divisions, excluding anyone in <strong>East Coast</strong> hubs like <strong>Philadelphia</strong> or <strong>DC</strong>.</p>



<h3 class="wp-block-heading">4. Working with Dates and Ranges</h3>



<p>Businesses often run reports based on specific fiscal quarters or timeframes. Using <code>BETWEEN</code> or comparison operators in the <code>WHERE</code> clause is essential.</p>



<p>SQL</p>



<pre class="wp-block-code"><code>SELECT 
    p.ProductName, 
    s.SaleDate
FROM Products AS p
JOIN Sales AS s 
    ON p.ProductID = s.ProductID
WHERE s.SaleDate BETWEEN '2026-01-01' AND '2026-03-31';</code></pre>



<p>This provides a clear snapshot of Q1 performance for your sales team.</p>



<h3 class="wp-block-heading">5. Handling NULLs in Joined Filters</h3>



<p>Data is rarely perfect. When joining tables, you may encounter missing values. To handle this with authority, use <code>IS NULL</code> or <code>IS NOT NULL</code> in your <code>WHERE</code> clause.</p>



<h4 class="wp-block-heading">Example: Finding &#8220;Stray&#8221; Records</h4>



<p>If you want to find customers who have <strong>never</strong> placed an order (often called an &#8220;Anti-Join&#8221;):</p>



<p>SQL</p>



<pre class="wp-block-code"><code>SELECT c.CustomerName
FROM Customers AS c
LEFT JOIN Orders AS o 
    ON c.CustomerID = o.CustomerID
WHERE o.OrderID IS NULL;</code></pre>



<h3 class="wp-block-heading">Summary of SQL Join and Where Logic</h3>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><td><strong>Feature</strong></td><td><strong>Description</strong></td></tr></thead><tbody><tr><td><strong>JOIN Type</strong></td><td>Defines which records are combined based on relationships.</td></tr><tr><td><strong>ON Clause</strong></td><td>The &#8220;link&#8221; between the two tables (usually Primary/Foreign keys).</td></tr><tr><td><strong>WHERE Clause</strong></td><td>The &#8220;gatekeeper&#8221; that filters the final result set after joining.</td></tr><tr><td><strong>Performance</strong></td><td>Filters in <code>WHERE</code> are generally processed after the join is logically formed.</td></tr></tbody></table></figure>



<h2 class="wp-block-heading">Conclusion</h2>



<p>The <strong>SQL JOIN with a WHERE clause</strong> is a foundational tool for any database professional. By understanding the distinction between the <code>ON</code> clause (the relationship) and the <code>WHERE</code> clause (the filter), you can write queries that are not only accurate but also optimized for speed.</p>



<p>You may also like the following articles:</p>



<ul class="wp-block-list">
<li><a href="https://sqlserverguides.com/sql-select-query-examples/" target="_blank" rel="noreferrer noopener">SQL Select Query Examples</a></li>



<li><a href="https://sqlserverguides.com/how-to-find-who-updated-the-table-in-sql-server/" target="_blank" rel="noreferrer noopener">How To Find Who Updated The Table In SQL Server</a></li>



<li><a href="https://sqlserverguides.com/sql-server-update-table-from-another-table/" target="_blank" rel="noreferrer noopener">SQL Server Update Table From Another Table</a></li>
</ul>
<div class="saboxplugin-wrap" itemtype="http://schema.org/Person" itemscope itemprop="author"><div class="saboxplugin-tab"><div class="saboxplugin-gravatar"><img alt='Bijay Kumar Sahoo' src='https://secure.gravatar.com/avatar/18a79d27129a98c6530098c50aef09aa901fced58315025237441af82a0fa179?s=100&#038;d=mm&#038;r=g' srcset='https://secure.gravatar.com/avatar/18a79d27129a98c6530098c50aef09aa901fced58315025237441af82a0fa179?s=200&#038;d=mm&#038;r=g 2x' class='avatar avatar-100 photo' height='100' width='100' itemprop="image"/></div><div class="saboxplugin-authorname"><a href="https://sqlserverguides.com/author/fewlines4biju/" class="vcard author" rel="author"><span class="fn">Bijay Kumar Sahoo</span></a></div><div class="saboxplugin-desc"><div itemprop="description"><p>After working for more than 15 years in the Software field, especially in Microsoft technologies, I have decided to share my expert knowledge of SQL Server. Check out all the SQL Server and related database tutorials I have shared here. Most of the readers are from countries like the United States of America, the United Kingdom, New Zealand, Australia, Canada, etc. I am also a <a href="https://mvp.microsoft.com/en-us/PublicProfile/5000972" rel="noopener" target="_blank">Microsoft MVP</a>. Check out more <a href="https://sqlserverguides.com/about/" rel="noopener">here</a>.</p>
</div></div><div class="saboxplugin-web "><a href="https://sqlserverguides.com" target="_self">sqlserverguides.com</a></div><div class="clearfix"></div><div class="saboxplugin-socials "><a title="Facebook" target="_self" href="https://www.facebook.com/fewlines4biju" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-facebook" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 264 512"><path fill="currentColor" d="M76.7 512V283H0v-91h76.7v-71.7C76.7 42.4 124.3 0 193.8 0c33.3 0 61.9 2.5 70.2 3.6V85h-48.2c-37.8 0-45.1 18-45.1 44.3V192H256l-11.7 91h-73.6v229"></path></svg></span></a><a title="Linkedin" target="_self" href="https://www.linkedin.com/in/fewlines4biju/" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-linkedin" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M100.3 480H7.4V180.9h92.9V480zM53.8 140.1C24.1 140.1 0 115.5 0 85.8 0 56.1 24.1 32 53.8 32c29.7 0 53.8 24.1 53.8 53.8 0 29.7-24.1 54.3-53.8 54.3zM448 480h-92.7V334.4c0-34.7-.7-79.2-48.3-79.2-48.3 0-55.7 37.7-55.7 76.7V480h-92.8V180.9h89.1v40.8h1.3c12.4-23.5 42.7-48.3 87.9-48.3 94 0 111.3 61.9 111.3 142.3V480z"></path></svg></span></a><a title="Twitter" target="_self" href="https://twitter.com/fewlines4biju" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-twitter" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"><path d="M26.37,26l-8.795-12.822l0.015,0.012L25.52,4h-2.65l-6.46,7.48L11.28,4H4.33l8.211,11.971L12.54,15.97L3.88,26h2.65 l7.182-8.322L19.42,26H26.37z M10.23,6l12.34,18h-2.1L8.12,6H10.23z" /></svg></span></a><a title="Pinterest" target="_self" href="https://in.pinterest.com/fewlines4biju/" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-pinterest" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path fill="currentColor" d="M496 256c0 137-111 248-248 248-25.6 0-50.2-3.9-73.4-11.1 10.1-16.5 25.2-43.5 30.8-65 3-11.6 15.4-59 15.4-59 8.1 15.4 31.7 28.5 56.8 28.5 74.8 0 128.7-68.8 128.7-154.3 0-81.9-66.9-143.2-152.9-143.2-107 0-163.9 71.8-163.9 150.1 0 36.4 19.4 81.7 50.3 96.1 4.7 2.2 7.2 1.2 8.3-3.3.8-3.4 5-20.3 6.9-28.1.6-2.5.3-4.7-1.7-7.1-10.1-12.5-18.3-35.3-18.3-56.6 0-54.7 41.4-107.6 112-107.6 60.9 0 103.6 41.5 103.6 100.9 0 67.1-33.9 113.6-78 113.6-24.3 0-42.6-20.1-36.7-44.8 7-29.5 20.5-61.3 20.5-82.6 0-19-10.2-34.9-31.4-34.9-24.9 0-44.9 25.7-44.9 60.2 0 22 7.4 36.8 7.4 36.8s-24.5 103.8-29 123.2c-5 21.4-3 51.6-.9 71.2C65.4 450.9 0 361.1 0 256 0 119 111 8 248 8s248 111 248 248z"></path></svg></span></a></div></div></div>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>SSMS Keyboard Shortcuts</title>
		<link>https://sqlserverguides.com/ssms-keyboard-shortcuts/</link>
		
		<dc:creator><![CDATA[Bijay Kumar Sahoo]]></dc:creator>
		<pubDate>Thu, 16 Apr 2026 10:03:27 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SSMS Keyboard Shortcuts]]></category>
		<guid isPermaLink="false">https://sqlserverguides.com/?p=23281</guid>

					<description><![CDATA[In this deep-dive tutorial, I’m going to share the professional &#8220;speed-run&#8221; toolkit of SQL Server Management Studio (SSMS) keyboard shortcuts. Whether you&#8217;re managing a sprawling cluster or troubleshooting a local dev instance, mastering these commands will increase your productivity for sure. SSMS Keyboard Shortcuts 1. The Core Execution These are the &#8220;Big Three&#8221; commands I ... <a title="SSMS Keyboard Shortcuts" class="read-more" href="https://sqlserverguides.com/ssms-keyboard-shortcuts/" aria-label="Read more about SSMS Keyboard Shortcuts">Read more</a>]]></description>
										<content:encoded><![CDATA[
<p>In this deep-dive tutorial, I’m going to share the professional &#8220;speed-run&#8221; toolkit of <strong>SQL Server Management Studio (SSMS) keyboard shortcuts</strong>. Whether you&#8217;re managing a sprawling cluster or troubleshooting a local dev instance, mastering these commands will increase your productivity for sure.</p>



<h2 class="wp-block-heading">SSMS Keyboard Shortcuts</h2>



<h3 class="wp-block-heading">1. The Core Execution</h3>



<p>These are the &#8220;Big Three&#8221; commands I use 500 times a day.</p>



<ul class="wp-block-list">
<li><strong>F5 (or Ctrl + E): Execute.</strong> This is the bread and butter of SSMS. It runs the entire script or just the highlighted text.</li>



<li><strong>Ctrl + N: New Query.</strong> I often use this when a colleague in <strong>Chicago</strong> pings me with a quick data request. It opens a fresh editor window instantly.</li>



<li><strong>Ctrl + Shift + R: Refresh IntelliSense Cache.</strong> We&#8217;ve all been there—you just added a new column to a table, but SSMS still shows a red squiggle. This command forces SSMS to re-read the schema.</li>
</ul>



<h3 class="wp-block-heading">Pro Tip: The &#8220;Partial Execution&#8221; Rule</h3>



<p><strong>Highlight before you hit F5.</strong> If you have a 1,000-line script and you only need to run the <code>UPDATE</code> on line 45, highlight just that statement. SSMS will ignore everything else, saving you from accidental data wipes.</p>



<h3 class="wp-block-heading">2. Navigation Shortcuts: Mastering the Object Explorer</h3>



<p>Managing a server in a data center means dealing with thousands of objects. Don&#8217;t scroll—navigate.</p>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><td><strong>Action</strong></td><td><strong>Keyboard Shortcut</strong></td><td><strong>Professional Use Case</strong></td></tr></thead><tbody><tr><td><strong>Object Explorer</strong></td><td><code>F8</code></td><td>Jump straight to your server tree.</td></tr><tr><td><strong>Summary Window</strong></td><td><code>F7</code></td><td>Best for seeing detailed counts of tables/procs.</td></tr><tr><td><strong>Connect to Server</strong></td><td><code>Alt + F, E</code></td><td>Quickly switch between Dev and Prod instances.</td></tr><tr><td><strong>Registered Servers</strong></td><td><code>Ctrl + Alt + G</code></td><td>Manage your central list of US-wide servers.</td></tr></tbody></table></figure>



<h3 class="wp-block-heading">3. The Formatting &amp; Editing Toolkit: Writing Clean T-SQL</h3>



<p>Use these shortcuts to ensure your code is readable by the next person on rotation.</p>



<h4 class="wp-block-heading">Text Transformation</h4>



<ul class="wp-block-list">
<li><strong>Ctrl + Shift + U:</strong> Make selected text <strong>UPPERCASE</strong>. (Standard for SQL keywords).</li>



<li><strong>Ctrl + Shift + L:</strong> Make selected text <strong>lowercase</strong>.</li>



<li><strong>Ctrl + K, Ctrl + C:</strong> <strong>Comment</strong> out a block of code.</li>



<li><strong>Ctrl + K, Ctrl + U:</strong> <strong>Uncomment</strong> code.</li>
</ul>



<h4 class="wp-block-heading">The &#8220;Vertical Selection&#8221; Trick</h4>



<p id="p-rc_297182953c94e54c-70">One of the most powerful moves in my arsenal is the <strong>Alt + Mouse Drag</strong>. While holding <strong>Alt</strong>, you can select a vertical column of text.<sup></sup> This is a lifesaver when you need to add commas or aliases to 50 columns at once.</p>



<h3 class="wp-block-heading">4. Query Results Management</h3>



<p>Once you run your query, you need to see the data—or hide it to make room for more code.</p>



<ul class="wp-block-list">
<li><strong>Ctrl + R:</strong> <strong>Toggle Results Pane.</strong> This is the most used shortcut in my <strong>Manhattan</strong> office. It hides the results so you can see more of your code window.</li>



<li><strong>Ctrl + T:</strong> Output results to <strong>Text</strong>.</li>



<li><strong>Ctrl + D:</strong> Output results to <strong>Grid</strong> (Default).</li>



<li><strong>Shift + F6:</strong> Move focus into the results grid so you can use arrow keys to browse data.</li>
</ul>



<h3 class="wp-block-heading">5. The 2026 AI Era: Copilot &amp; Modern Shortcuts</h3>



<p>As we move into 2026, SSMS has integrated AI-assisted coding to keep up with the demands of tech firms.</p>



<ul class="wp-block-list">
<li><strong>Ctrl + Alt + C:</strong> <strong>Display Copilot in SSMS.</strong> This launches the AI chat or inline assistance, helping you draft complex window functions or CTEs in seconds.</li>



<li><strong>Ctrl + G:</strong> <strong>Go To Line.</strong> When a fellow DBA in <strong>Dallas</strong> tells you there&#8217;s a bug on line 452, this gets you there in a heartbeat.</li>
</ul>



<h3 class="wp-block-heading">6. Customizing Your Own Query Shortcuts</h3>



<p>As an authority on SSMS, I don&#8217;t just use the defaults—I build my own. In SSMS, you can map specific stored procedures to <code>Ctrl + #</code> keys.</p>



<h4 class="wp-block-heading">My Recommended Custom Mappings:</h4>



<p>Navigate to <strong>Tools &gt; Options &gt; Environment &gt; Keyboard &gt; Query Shortcuts</strong> and try these:</p>



<ol start="1" class="wp-block-list">
<li><strong>Ctrl + 3:</strong> Set to <code>EXEC sp_whoisactive;</code>. (Instantly see what&#8217;s running on the server).</li>



<li><strong>Ctrl + 4:</strong> Set to <code>SELECT TOP(100) * FROM</code>. (Highlight a table name and hit this to see a preview).</li>



<li><strong>Ctrl + 5:</strong> Set to <code>sp_help</code>. (The quickest way to see table schemas).</li>
</ol>



<h3 class="wp-block-heading">Summary Table: Essential SSMS Shortcuts</h3>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><td><strong>Category</strong></td><td><strong>Shortcut</strong></td><td><strong>Function</strong></td></tr></thead><tbody><tr><td><strong>Execution</strong></td><td><code>F5</code></td><td>Run Query</td></tr><tr><td><strong>Display</strong></td><td><code>Ctrl + R</code></td><td>Hide/Show Results</td></tr><tr><td><strong>Formatting</strong></td><td><code>Ctrl + K, C</code></td><td>Comment Code</td></tr><tr><td><strong>Navigation</strong></td><td><code>Ctrl + Tab</code></td><td>Cycle Open Windows</td></tr><tr><td><strong>AI/Modern</strong></td><td><code>Ctrl + Alt + C</code></td><td>Open Copilot</td></tr><tr><td><strong>Data Flow</strong></td><td><code>Ctrl + Shift + V</code></td><td>Cycle Clipboard Ring</td></tr></tbody></table></figure>



<h2 class="wp-block-heading">Conclusion</h2>



<p>Mastering <strong>SSMS keyboard shortcuts</strong> is more than just a speed trick—it&#8217;s about increasing your productivity. When you aren&#8217;t fighting the interface, you can focus on the logic of your T-SQL. Whether you are building the next big app or maintaining a massive data warehouse, these commands will make you an indispensable asset to your team.</p>



<p>You may also like the following articles:</p>



<ul class="wp-block-list">
<li><a href="https://sqlserverguides.com/sql-select-query-examples/" target="_blank" rel="noreferrer noopener">SQL Select Query Examples</a></li>



<li><a href="https://sqlserverguides.com/how-to-run-query-in-ssms/" target="_blank" rel="noreferrer noopener">How To Run Query In SSMS</a></li>



<li><a href="https://sqlserverguides.com/ssms-22-new-features/" target="_blank" rel="noreferrer noopener">SSMS 22 New Features</a></li>
</ul>
<div class="saboxplugin-wrap" itemtype="http://schema.org/Person" itemscope itemprop="author"><div class="saboxplugin-tab"><div class="saboxplugin-gravatar"><img alt='Bijay Kumar Sahoo' src='https://secure.gravatar.com/avatar/18a79d27129a98c6530098c50aef09aa901fced58315025237441af82a0fa179?s=100&#038;d=mm&#038;r=g' srcset='https://secure.gravatar.com/avatar/18a79d27129a98c6530098c50aef09aa901fced58315025237441af82a0fa179?s=200&#038;d=mm&#038;r=g 2x' class='avatar avatar-100 photo' height='100' width='100' itemprop="image"/></div><div class="saboxplugin-authorname"><a href="https://sqlserverguides.com/author/fewlines4biju/" class="vcard author" rel="author"><span class="fn">Bijay Kumar Sahoo</span></a></div><div class="saboxplugin-desc"><div itemprop="description"><p>After working for more than 15 years in the Software field, especially in Microsoft technologies, I have decided to share my expert knowledge of SQL Server. Check out all the SQL Server and related database tutorials I have shared here. Most of the readers are from countries like the United States of America, the United Kingdom, New Zealand, Australia, Canada, etc. I am also a <a href="https://mvp.microsoft.com/en-us/PublicProfile/5000972" rel="noopener" target="_blank">Microsoft MVP</a>. Check out more <a href="https://sqlserverguides.com/about/" rel="noopener">here</a>.</p>
</div></div><div class="saboxplugin-web "><a href="https://sqlserverguides.com" target="_self">sqlserverguides.com</a></div><div class="clearfix"></div><div class="saboxplugin-socials "><a title="Facebook" target="_self" href="https://www.facebook.com/fewlines4biju" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-facebook" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 264 512"><path fill="currentColor" d="M76.7 512V283H0v-91h76.7v-71.7C76.7 42.4 124.3 0 193.8 0c33.3 0 61.9 2.5 70.2 3.6V85h-48.2c-37.8 0-45.1 18-45.1 44.3V192H256l-11.7 91h-73.6v229"></path></svg></span></a><a title="Linkedin" target="_self" href="https://www.linkedin.com/in/fewlines4biju/" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-linkedin" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M100.3 480H7.4V180.9h92.9V480zM53.8 140.1C24.1 140.1 0 115.5 0 85.8 0 56.1 24.1 32 53.8 32c29.7 0 53.8 24.1 53.8 53.8 0 29.7-24.1 54.3-53.8 54.3zM448 480h-92.7V334.4c0-34.7-.7-79.2-48.3-79.2-48.3 0-55.7 37.7-55.7 76.7V480h-92.8V180.9h89.1v40.8h1.3c12.4-23.5 42.7-48.3 87.9-48.3 94 0 111.3 61.9 111.3 142.3V480z"></path></svg></span></a><a title="Twitter" target="_self" href="https://twitter.com/fewlines4biju" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-twitter" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"><path d="M26.37,26l-8.795-12.822l0.015,0.012L25.52,4h-2.65l-6.46,7.48L11.28,4H4.33l8.211,11.971L12.54,15.97L3.88,26h2.65 l7.182-8.322L19.42,26H26.37z M10.23,6l12.34,18h-2.1L8.12,6H10.23z" /></svg></span></a><a title="Pinterest" target="_self" href="https://in.pinterest.com/fewlines4biju/" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-pinterest" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path fill="currentColor" d="M496 256c0 137-111 248-248 248-25.6 0-50.2-3.9-73.4-11.1 10.1-16.5 25.2-43.5 30.8-65 3-11.6 15.4-59 15.4-59 8.1 15.4 31.7 28.5 56.8 28.5 74.8 0 128.7-68.8 128.7-154.3 0-81.9-66.9-143.2-152.9-143.2-107 0-163.9 71.8-163.9 150.1 0 36.4 19.4 81.7 50.3 96.1 4.7 2.2 7.2 1.2 8.3-3.3.8-3.4 5-20.3 6.9-28.1.6-2.5.3-4.7-1.7-7.1-10.1-12.5-18.3-35.3-18.3-56.6 0-54.7 41.4-107.6 112-107.6 60.9 0 103.6 41.5 103.6 100.9 0 67.1-33.9 113.6-78 113.6-24.3 0-42.6-20.1-36.7-44.8 7-29.5 20.5-61.3 20.5-82.6 0-19-10.2-34.9-31.4-34.9-24.9 0-44.9 25.7-44.9 60.2 0 22 7.4 36.8 7.4 36.8s-24.5 103.8-29 123.2c-5 21.4-3 51.6-.9 71.2C65.4 450.9 0 361.1 0 256 0 119 111 8 248 8s248 111 248 248z"></path></svg></span></a></div></div></div>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>SSMS Cannot Connect To Server</title>
		<link>https://sqlserverguides.com/ssms-cannot-connect-to-server/</link>
		
		<dc:creator><![CDATA[Bijay Kumar Sahoo]]></dc:creator>
		<pubDate>Wed, 15 Apr 2026 15:16:58 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<guid isPermaLink="false">https://sqlserverguides.com/?p=23276</guid>

					<description><![CDATA[In this comprehensive article, I will walk you through my professional troubleshooting framework to diagnose and fix SSMS connection errors with the confidence of an expert. SSMS Cannot Connect To Server Before we start clicking buttons, we need to understand the mechanics. When you open SQL Server Management Studio (SSMS) and hit &#8220;Connect,&#8221; the client ... <a title="SSMS Cannot Connect To Server" class="read-more" href="https://sqlserverguides.com/ssms-cannot-connect-to-server/" aria-label="Read more about SSMS Cannot Connect To Server">Read more</a>]]></description>
										<content:encoded><![CDATA[
<p>In this comprehensive article, I will walk you through my professional troubleshooting framework to diagnose and fix SSMS connection errors with the confidence of an expert.</p>



<h2 class="wp-block-heading">SSMS Cannot Connect To Server</h2>



<p>Before we start clicking buttons, we need to understand the mechanics. When you open <strong>SQL Server Management Studio (SSMS)</strong> and hit &#8220;Connect,&#8221; the client sends a request across the network (or local pipe) to the <strong>SQL Server Browser</strong> or directly to the <strong>Database Engine</strong>. If that &#8220;handshake&#8221; fails, SSMS throws a generic error.</p>



<p>The most common culprits are:</p>



<ul class="wp-block-list">
<li><strong>Error 26:</strong> Error Locating Server/Instance Specified.</li>



<li><strong>Error 40:</strong> Could not open a connection to SQL Server.</li>



<li><strong>Error 18456:</strong> Login failed (Authentication issues).</li>
</ul>



<h3 class="wp-block-heading">Phase 1: The 60-Second Check</h3>



<p>I always start with the basics.</p>



<h4 class="wp-block-heading">1. Is the SQL Server Service Running?</h4>



<p>If the engine isn&#8217;t running, the door is locked.</p>



<ul class="wp-block-list">
<li>Open <strong>SQL Server Configuration Manager</strong> or <code>services.msc</code>.</li>



<li>Locate the service named <strong>SQL Server (MSSQLSERVER)</strong> (for default instances) or <strong>SQL Server (InstanceName)</strong>.</li>



<li>Ensure the status is <strong>Running</strong>. If it is &#8220;Stopped,&#8221; right-click and select <strong>Start</strong>.</li>
</ul>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="512" height="464" src="https://sqlserverguides.com/wp-content/uploads/2026/04/SSMS-Cannot-Connect-To-Server.jpg" alt="SSMS Cannot Connect To Server" class="wp-image-23277" srcset="https://sqlserverguides.com/wp-content/uploads/2026/04/SSMS-Cannot-Connect-To-Server.jpg 512w, https://sqlserverguides.com/wp-content/uploads/2026/04/SSMS-Cannot-Connect-To-Server-300x272.jpg 300w" sizes="(max-width: 512px) 100vw, 512px" /></figure>
</div>


<h4 class="wp-block-heading">2. Verify the Server Name Syntax</h4>



<p>Typing the wrong server name is the #1 cause of Error 26.</p>



<ul class="wp-block-list">
<li><strong>Default Instance:</strong> Use the computer name (e.g., <code>NYC-PROD-DB01</code>) or <code>.</code> for local.</li>



<li><strong>Named Instance:</strong> Use <code>ComputerName\InstanceName</code> (e.g., <code>NYC-PROD-DB01\DEVELOPMENT</code>).</li>



<li><strong>The &#8220;Period&#8221; Trick:</strong> For a local default instance, simply typing a single period <code>.</code> or <code>(local)</code> in the server name box is the fastest way to connect.</li>
</ul>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="646" height="432" src="https://sqlserverguides.com/wp-content/uploads/2026/04/SSMS-cannot-connect-to-server-fix.jpg" alt="SSMS cannot connect to server fix" class="wp-image-23278" srcset="https://sqlserverguides.com/wp-content/uploads/2026/04/SSMS-cannot-connect-to-server-fix.jpg 646w, https://sqlserverguides.com/wp-content/uploads/2026/04/SSMS-cannot-connect-to-server-fix-300x201.jpg 300w" sizes="(max-width: 646px) 100vw, 646px" /></figure>
</div>


<h3 class="wp-block-heading">Phase 2: Enabling Network Protocols</h3>



<p>By default, SQL Server is installed with high security, which often means remote connections are disabled. If you are trying to connect from a satellite office in <strong>Phoenix</strong> to a server in <strong>Chicago</strong>, you must enable the right lanes.</p>



<h4 class="wp-block-heading">Enabling TCP/IP</h4>



<ol start="1" class="wp-block-list">
<li>Open <strong>SQL Server Configuration Manager</strong>.</li>



<li>Navigate to <strong>SQL Server Network Configuration</strong> &gt; <strong>Protocols for [YourInstance]</strong>.</li>



<li>Right-click <strong>TCP/IP</strong> and select <strong>Enable</strong>.</li>



<li><strong>Crucial:</strong> You must restart the SQL Server service for this to take effect.</li>
</ol>



<h3 class="wp-block-heading">Phase 3: The Firewall </h3>



<p>In the <strong>USA</strong> corporate world, security is paramount, and the Windows Firewall is often the reason SSMS cannot talk to the server. The server might be listening on Port <strong>1433</strong>, but the firewall is blocking the incoming request.</p>



<h4 class="wp-block-heading">Configuring Inbound Rules</h4>



<p>You don&#8217;t need to disable your firewall; you just need a surgical exception.</p>



<ol start="1" class="wp-block-list">
<li>Open <strong>Windows Defender Firewall with Advanced Security</strong>.</li>



<li>Click <strong>Inbound Rules</strong> &gt; <strong>New Rule</strong>.</li>



<li>Select <strong>Port</strong> &gt; <strong>TCP</strong> &gt; <strong>Specific local ports: 1433</strong>.</li>



<li>Select <strong>Allow the connection</strong>.</li>



<li>Name it <code>SQL_1433_Inbound</code>.</li>
</ol>



<h4 class="wp-block-heading">The SQL Browser Service</h4>



<p>If you are using a <strong>Named Instance</strong>, you must also open <strong>UDP Port 1434</strong>. This allows the SQL Browser service to tell your client which dynamic port the named instance is currently using.</p>



<h3 class="wp-block-heading">Phase 4: Troubleshooting Remote Connections</h3>



<p>If the ports are open but you still can&#8217;t connect, the SQL Server instance itself might be told to ignore remote requests.</p>



<ol start="1" class="wp-block-list">
<li>Connect to the server locally (if possible).</li>



<li>Right-click the server in <strong>Object Explorer</strong> and select <strong>Properties</strong>.</li>



<li>Go to the <strong>Connections</strong> page.</li>



<li>Ensure <strong>&#8220;Allow remote connections to this server&#8221;</strong> is checked.</li>
</ol>



<h3 class="wp-block-heading">Phase 5: Authentication Failures (Error 18456)</h3>



<p>If you get as far as an authentication prompt but it fails, the &#8220;handshake&#8221; was successful, but your &#8220;ID&#8221; was rejected.</p>



<h4 class="wp-block-heading">Mixed Mode Authentication</h4>



<p>Many firms use a mix of Windows logins and specific SQL logins (like <code>sa</code>).</p>



<ul class="wp-block-list">
<li>Go to <strong>Server Properties</strong> &gt; <strong>Security</strong>.</li>



<li>Ensure <strong>&#8220;SQL Server and Windows Authentication mode&#8221;</strong> is selected.</li>



<li>If you switch from Windows-only to Mixed Mode, a service restart is mandatory.</li>
</ul>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><td><strong>Error Component</strong></td><td><strong>Likely Cause</strong></td><td><strong>Fix Action</strong></td></tr></thead><tbody><tr><td><strong>Error 26</strong></td><td>Wrong Name/Instance</td><td>Check spelling or SQL Browser service.</td></tr><tr><td><strong>Error 40</strong></td><td>Network/Firewall</td><td>Open Port 1433 or enable TCP/IP.</td></tr><tr><td><strong>Error 18456</strong></td><td>Login/Permissions</td><td>Verify credentials or enable Mixed Mode.</td></tr><tr><td><strong>Network Path Not Found</strong></td><td>DNS/VPN Issues</td><td>Test connection via IP address instead of name.</td></tr></tbody></table></figure>



<h3 class="wp-block-heading">Phase 6: Professional Testing Tools</h3>



<h4 class="wp-block-heading">1. The PowerShell &#8220;Ping&#8221;</h4>



<p>Open PowerShell and run this command to see if the port is actually reachable:</p>



<p>PowerShell</p>



<pre class="wp-block-code"><code>Test-NetConnection -ComputerName YourServerName -Port 1433</code></pre>



<p>If <code>TcpTestSucceeded</code> is <strong>True</strong>, the network is fine—the problem is your SQL permissions.</p>



<h4 class="wp-block-heading">2. The UDL File Trick</h4>



<p>This is my &#8220;secret weapon&#8221; for testing connectivity without opening SSMS.</p>



<ol start="1" class="wp-block-list">
<li>Create a blank file on your desktop named <code>test.udl</code>.</li>



<li>Double-click it.</li>



<li>Enter your server and login info.</li>



<li>Click <strong>Test Connection</strong>. This uses the native Windows OLE DB provider and is the purest test of connectivity available.</li>
</ol>



<h3 class="wp-block-heading">Advanced Scenarios: VPN and Multi-Subnet Clusters</h3>



<ul class="wp-block-list">
<li><strong>VPN Latency:</strong> If you are on a slow VPN, SSMS might &#8220;time out&#8221; before the server responds. You can increase the <strong>Connection Timeout</strong> in the SSMS connection dialog under &#8220;Options&#8221; &gt; &#8220;Connection Properties.&#8221;</li>



<li><strong>Multi-Subnet Failover:</strong> If you are connecting to an <strong>Always On Availability Group</strong>, ensure your connection string (or SSMS options) includes <code>MultiSubnetFailover=True</code>.</li>
</ul>



<h3 class="wp-block-heading">Step-by-Step Tutorial</h3>



<p>We follow this exact sequence:</p>



<ol start="1" class="wp-block-list">
<li><strong>Verify Service:</strong> Is SQL Server running? (Check Configuration Manager).</li>



<li><strong>Verify Name:</strong> Are we using <code>Server\Instance</code> correctly?</li>



<li><strong>Check Protocols:</strong> Is TCP/IP enabled?</li>



<li><strong>Test Port:</strong> Can we reach the server via PowerShell on 1433?</li>



<li><strong>Check Firewall:</strong> Is there an inbound rule for SQL?</li>



<li><strong>Verify Login:</strong> Is the account locked out or using the wrong password?</li>



<li><strong>Check SQL Browser:</strong> (For named instances) Is it running?</li>
</ol>



<h2 class="wp-block-heading">Conclusion</h2>



<p>&#8220;SSMS cannot connect to server&#8221; is a broad error, but with a systematic approach, it is always solvable. By following this authoritative guide, you move from guessing to knowing. Start with the service, check the protocols, verify the firewall, and finally validate the authentication.</p>



<p>You may also like the following articles:</p>



<ul class="wp-block-list">
<li><a href="https://sqlserverguides.com/sql-server-error-18456/" target="_blank" rel="noreferrer noopener">SQL Server Error 18456</a></li>



<li><a href="https://sqlserverguides.com/how-to-find-sql-server-instance-name-in-ssms/" target="_blank" rel="noreferrer noopener">How to find SQL Server instance name in SSMS</a></li>



<li><a href="https://sqlserverguides.com/sql-select-query-examples/" target="_blank" rel="noreferrer noopener">SQL Select Query Examples</a></li>



<li><a href="https://sqlserverguides.com/how-to-insert-data-in-ssms/" target="_blank" rel="noreferrer noopener">How To Insert Data In SSMS</a></li>
</ul>
<div class="saboxplugin-wrap" itemtype="http://schema.org/Person" itemscope itemprop="author"><div class="saboxplugin-tab"><div class="saboxplugin-gravatar"><img alt='Bijay Kumar Sahoo' src='https://secure.gravatar.com/avatar/18a79d27129a98c6530098c50aef09aa901fced58315025237441af82a0fa179?s=100&#038;d=mm&#038;r=g' srcset='https://secure.gravatar.com/avatar/18a79d27129a98c6530098c50aef09aa901fced58315025237441af82a0fa179?s=200&#038;d=mm&#038;r=g 2x' class='avatar avatar-100 photo' height='100' width='100' itemprop="image"/></div><div class="saboxplugin-authorname"><a href="https://sqlserverguides.com/author/fewlines4biju/" class="vcard author" rel="author"><span class="fn">Bijay Kumar Sahoo</span></a></div><div class="saboxplugin-desc"><div itemprop="description"><p>After working for more than 15 years in the Software field, especially in Microsoft technologies, I have decided to share my expert knowledge of SQL Server. Check out all the SQL Server and related database tutorials I have shared here. Most of the readers are from countries like the United States of America, the United Kingdom, New Zealand, Australia, Canada, etc. I am also a <a href="https://mvp.microsoft.com/en-us/PublicProfile/5000972" rel="noopener" target="_blank">Microsoft MVP</a>. Check out more <a href="https://sqlserverguides.com/about/" rel="noopener">here</a>.</p>
</div></div><div class="saboxplugin-web "><a href="https://sqlserverguides.com" target="_self">sqlserverguides.com</a></div><div class="clearfix"></div><div class="saboxplugin-socials "><a title="Facebook" target="_self" href="https://www.facebook.com/fewlines4biju" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-facebook" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 264 512"><path fill="currentColor" d="M76.7 512V283H0v-91h76.7v-71.7C76.7 42.4 124.3 0 193.8 0c33.3 0 61.9 2.5 70.2 3.6V85h-48.2c-37.8 0-45.1 18-45.1 44.3V192H256l-11.7 91h-73.6v229"></path></svg></span></a><a title="Linkedin" target="_self" href="https://www.linkedin.com/in/fewlines4biju/" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-linkedin" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M100.3 480H7.4V180.9h92.9V480zM53.8 140.1C24.1 140.1 0 115.5 0 85.8 0 56.1 24.1 32 53.8 32c29.7 0 53.8 24.1 53.8 53.8 0 29.7-24.1 54.3-53.8 54.3zM448 480h-92.7V334.4c0-34.7-.7-79.2-48.3-79.2-48.3 0-55.7 37.7-55.7 76.7V480h-92.8V180.9h89.1v40.8h1.3c12.4-23.5 42.7-48.3 87.9-48.3 94 0 111.3 61.9 111.3 142.3V480z"></path></svg></span></a><a title="Twitter" target="_self" href="https://twitter.com/fewlines4biju" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-twitter" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"><path d="M26.37,26l-8.795-12.822l0.015,0.012L25.52,4h-2.65l-6.46,7.48L11.28,4H4.33l8.211,11.971L12.54,15.97L3.88,26h2.65 l7.182-8.322L19.42,26H26.37z M10.23,6l12.34,18h-2.1L8.12,6H10.23z" /></svg></span></a><a title="Pinterest" target="_self" href="https://in.pinterest.com/fewlines4biju/" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-pinterest" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path fill="currentColor" d="M496 256c0 137-111 248-248 248-25.6 0-50.2-3.9-73.4-11.1 10.1-16.5 25.2-43.5 30.8-65 3-11.6 15.4-59 15.4-59 8.1 15.4 31.7 28.5 56.8 28.5 74.8 0 128.7-68.8 128.7-154.3 0-81.9-66.9-143.2-152.9-143.2-107 0-163.9 71.8-163.9 150.1 0 36.4 19.4 81.7 50.3 96.1 4.7 2.2 7.2 1.2 8.3-3.3.8-3.4 5-20.3 6.9-28.1.6-2.5.3-4.7-1.7-7.1-10.1-12.5-18.3-35.3-18.3-56.6 0-54.7 41.4-107.6 112-107.6 60.9 0 103.6 41.5 103.6 100.9 0 67.1-33.9 113.6-78 113.6-24.3 0-42.6-20.1-36.7-44.8 7-29.5 20.5-61.3 20.5-82.6 0-19-10.2-34.9-31.4-34.9-24.9 0-44.9 25.7-44.9 60.2 0 22 7.4 36.8 7.4 36.8s-24.5 103.8-29 123.2c-5 21.4-3 51.6-.9 71.2C65.4 450.9 0 361.1 0 256 0 119 111 8 248 8s248 111 248 248z"></path></svg></span></a></div></div></div>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to find SQL Server instance name in SSMS</title>
		<link>https://sqlserverguides.com/how-to-find-sql-server-instance-name-in-ssms/</link>
		
		<dc:creator><![CDATA[Bijay Kumar Sahoo]]></dc:creator>
		<pubDate>Tue, 14 Apr 2026 15:59:22 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[How to find SQL Server instance name in SSMS]]></category>
		<guid isPermaLink="false">https://sqlserverguides.com/?p=23268</guid>

					<description><![CDATA[In this comprehensive article, I will walk you through the professional methods I use to identify and verify a SQL Server instance name. Whether you are troubleshooting a connection for a firm or setting up a local dev environment, this tutorial will provide the authoritative answers you need. How to find SQL Server instance name ... <a title="How to find SQL Server instance name in SSMS" class="read-more" href="https://sqlserverguides.com/how-to-find-sql-server-instance-name-in-ssms/" aria-label="Read more about How to find SQL Server instance name in SSMS">Read more</a>]]></description>
										<content:encoded><![CDATA[
<p>In this comprehensive article, I will walk you through the professional methods I use to identify and verify a SQL Server instance name. Whether you are troubleshooting a connection for a firm or setting up a local dev environment, this tutorial will provide the authoritative answers you need.</p>



<h2 class="wp-block-heading">How to find SQL Server instance name in SSMS</h2>



<p>In the Microsoft SQL Server ecosystem, you can have multiple &#8220;instances&#8221; of SQL Server running on a single physical or virtual machine.</p>



<ul class="wp-block-list">
<li><strong>Default Instance:</strong> This typically takes the name of the computer itself (e.g., <code>NYC-PROD-DB01</code>).</li>



<li><strong>Named Instance:</strong> This is a specific installation with a unique name appended to the server (e.g., <code>NYC-PROD-DB01\PAYROLL</code>).</li>
</ul>



<h3 class="wp-block-heading">Method 1: The &#8220;Connect to Server&#8221; Dialog (The Quickest Way)</h3>



<p>The most common place to find your instance name is the very first screen you see when launching the application. If you’ve already connected in the past, SSMS likely has a &#8220;memory&#8221; of your server names.</p>



<h4 class="wp-block-heading">Using the Dropdown Menu</h4>



<ol start="1" class="wp-block-list">
<li>Launch <strong>SQL Server Management Studio</strong>.</li>



<li>When the <strong>Connect to Server</strong> dialog box appears, look at the <strong>Server name</strong> field.</li>



<li>Click the downward arrow at the end of the text box.</li>



<li>Select <strong>&lt;Browse for more&#8230;&gt;</strong> from the bottom of the list. Check out the screenshot below for your reference.</li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="648" height="431" src="https://sqlserverguides.com/wp-content/uploads/2026/04/How-to-find-SQL-Server-instance-name-in-SSMS.jpg" alt="How to find SQL Server instance name in SSMS" class="wp-image-23269" srcset="https://sqlserverguides.com/wp-content/uploads/2026/04/How-to-find-SQL-Server-instance-name-in-SSMS.jpg 648w, https://sqlserverguides.com/wp-content/uploads/2026/04/How-to-find-SQL-Server-instance-name-in-SSMS-300x200.jpg 300w" sizes="(max-width: 648px) 100vw, 648px" /></figure>
</div>


<h4 class="wp-block-heading">Using the &#8220;Browse for More&#8221; Feature</h4>



<p>This is a lifesaver for consultants who travel between different US-based offices.</p>



<ol start="1" class="wp-block-list">
<li>In the <strong>Browse for Servers</strong> window, click the <strong>Local Servers</strong> tab.</li>



<li>Expand the <strong>Database Engine</strong> node.</li>



<li>Here, SSMS will list all SQL Server instances it can detect on your local machine.</li>



<li>Select the instance name (e.g., <code>LAPTOP-DENVER\SQLEXPRESS</code>) and click <strong>OK</strong>.</li>
</ol>



<h3 class="wp-block-heading">Method 2: Identifying Instance Name via Object Explorer</h3>



<h4 class="wp-block-heading">Reading the Object Explorer Tree</h4>



<p>The top node of the <strong>Object Explorer</strong> tree displays the instance name in a specific format:</p>



<ul class="wp-block-list">
<li><strong>ServerName\InstanceName (SQL Server Version &#8211; UserLogin)</strong>. Check out the screenshot below for your reference.</li>
</ul>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="400" height="199" src="https://sqlserverguides.com/wp-content/uploads/2026/04/find-sql-server-instance-name.jpg" alt="find sql server instance name" class="wp-image-23270" srcset="https://sqlserverguides.com/wp-content/uploads/2026/04/find-sql-server-instance-name.jpg 400w, https://sqlserverguides.com/wp-content/uploads/2026/04/find-sql-server-instance-name-300x149.jpg 300w" sizes="(max-width: 400px) 100vw, 400px" /></figure>
</div>


<h4 class="wp-block-heading">Breaking Down the Display</h4>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><td><strong>Component</strong></td><td><strong>Example</strong></td><td><strong>Description</strong></td></tr></thead><tbody><tr><td><strong>Server Name</strong></td><td><code>DESKTOP-PHX</code></td><td>The name of the host computer in <strong>Phoenix</strong>.</td></tr><tr><td><strong>Instance Name</strong></td><td><code>SQL2026</code></td><td>The specific named instance.</td></tr><tr><td><strong>Version Number</strong></td><td><code>16.0.1000</code></td><td>The internal build number of the engine.</td></tr><tr><td><strong>Login</strong></td><td><code>AD\JSmith</code></td><td>The Windows or SQL account used to connect.</td></tr></tbody></table></figure>



<h3 class="wp-block-heading">Method 3: Using T-SQL Queries (The Pro Method)</h3>



<p>As a database professional, I always prefer scripts over the GUI. Queries are immutable, shareable, and provide the most accurate &#8220;ground truth&#8221; directly from the engine.</p>



<h3 class="wp-block-heading">The Standard Global Variable</h3>



<p>To get the instance name quickly, run this in a <strong>New Query</strong> window (<code>Ctrl + N</code>):</p>



<p>SQL</p>



<pre class="wp-block-code"><code>SELECT @@SERVICENAME AS 'Instance Name';</code></pre>



<ul class="wp-block-list">
<li><strong>Result:</strong> If it returns <code>MSSQLSERVER</code>, you are on a <strong>Default Instance</strong>. If it returns a name (like <code>DEVELOPMENT</code>), that is your <strong>Named Instance</strong>.</li>
</ul>



<p>After executing the query above, I received the expected output, as shown in the screenshot below.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="830" height="171" src="https://sqlserverguides.com/wp-content/uploads/2026/04/sql-server-instance-name.jpg" alt="sql server instance name" class="wp-image-23271" srcset="https://sqlserverguides.com/wp-content/uploads/2026/04/sql-server-instance-name.jpg 830w, https://sqlserverguides.com/wp-content/uploads/2026/04/sql-server-instance-name-300x62.jpg 300w, https://sqlserverguides.com/wp-content/uploads/2026/04/sql-server-instance-name-768x158.jpg 768w" sizes="(max-width: 830px) 100vw, 830px" /></figure>
</div>


<h3 class="wp-block-heading">The Full Server Name Query</h3>



<p>If you need both the computer name and the instance name (the format required for connection strings), use this:</p>



<p>SQL</p>



<pre class="wp-block-code"><code>SELECT SERVERPROPERTY('ServerName') AS 'Full Instance Name';</code></pre>



<h3 class="wp-block-heading">Checking the Service Name and Version</h3>



<p>For a more detailed audit, use this comprehensive query:</p>



<p>SQL</p>



<pre class="wp-block-code"><code>SELECT 
    SERVERPROPERTY('MachineName') AS &#91;Computer Name],
    SERVERPROPERTY('InstanceName') AS &#91;Instance Name],
    SERVERPROPERTY('Edition') AS &#91;Edition],
    SERVERPROPERTY('ProductVersion') AS &#91;Version];</code></pre>



<p>After executing the query above, I received the expected output, as shown in the screenshot below.</p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img loading="lazy" decoding="async" width="1024" height="312" src="https://sqlserverguides.com/wp-content/uploads/2026/04/how-to-check-sql-server-instance-name-1024x312.jpg" alt="how to check sql server instance name" class="wp-image-23272" srcset="https://sqlserverguides.com/wp-content/uploads/2026/04/how-to-check-sql-server-instance-name-1024x312.jpg 1024w, https://sqlserverguides.com/wp-content/uploads/2026/04/how-to-check-sql-server-instance-name-300x91.jpg 300w, https://sqlserverguides.com/wp-content/uploads/2026/04/how-to-check-sql-server-instance-name-768x234.jpg 768w, https://sqlserverguides.com/wp-content/uploads/2026/04/how-to-check-sql-server-instance-name.jpg 1076w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>
</div>


<h3 class="wp-block-heading">Method 4: Checking Windows Services</h3>



<p>Sometimes SSMS itself won&#8217;t connect, and you need to find the instance name to troubleshoot why. In this case, we go to the source: the <strong>Windows Services Manager</strong>.</p>



<ol start="1" class="wp-block-list">
<li>Press <code>Win + R</code> on your keyboard, type <code>services.msc</code>, and hit Enter.</li>



<li>Scroll down to the entries starting with <strong>SQL Server</strong>.</li>



<li>Look at the text inside the parentheses.
<ul class="wp-block-list">
<li><code>SQL Server (MSSQLSERVER)</code> = Default Instance.</li>



<li><code>SQL Server (TEST_INSTANCE)</code> = The instance name is <code>TEST_INSTANCE</code>.</li>
</ul>
</li>
</ol>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p><strong>Expert Tip:</strong> If the service is &#8220;Stopped,&#8221; you won&#8217;t be able to connect in SSMS even if you have the correct name. Ensure the status is <strong>Running</strong> before trying to log in.</p>
</blockquote>



<h4 class="wp-block-heading">Method 5: Using SQL Server Configuration Manager</h4>



<p>If you are a systems administrator in <strong>San Francisco</strong> managing multiple environments, the <strong>SQL Server Configuration Manager</strong> is your best friend. It provides a clean, consolidated view of every instance installed on that machine.</p>



<ol start="1" class="wp-block-list">
<li>Open the <strong>Start Menu</strong> and search for <strong>SQL Server Configuration Manager</strong>.</li>



<li>Click on <strong>SQL Server Services</strong> in the left-hand pane.</li>



<li>The right-hand pane will list every instance.</li>



<li>Note the name following &#8220;SQL Server&#8221; in the list—this is exactly what you should type into the SSMS connection box.</li>
</ol>



<h3 class="wp-block-heading">Summary of Methods</h3>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><td><strong>Method</strong></td><td><strong>Best Used For</strong></td><td><strong>Required Access</strong></td></tr></thead><tbody><tr><td><strong>Connect Dialog</strong></td><td>New connections</td><td>None (Public)</td></tr><tr><td><strong>Object Explorer</strong></td><td>Verifying current session</td><td>Login Access</td></tr><tr><td><strong>T-SQL Query</strong></td><td>Scripting and Auditing</td><td>Query Permissions</td></tr><tr><td><strong>Services (msc)</strong></td><td>Troubleshooting stopped servers</td><td>Windows Admin</td></tr><tr><td><strong>Config Manager</strong></td><td>Managing multiple instances</td><td>Windows Admin</td></tr></tbody></table></figure>



<h2 class="wp-block-heading">Video Tutorial</h2>



<figure class="wp-block-embed aligncenter 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 find SQL Server instance name in SSMS" width="875" height="492" src="https://www.youtube.com/embed/sSJ8_iNk7bM?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>



<h2 class="wp-block-heading">Conclusion</h2>



<p>Finding your SQL Server instance name in SSMS is a foundational skill that allows you to navigate complex data environments with confidence. Whether you are using the visual &#8220;Browse for more&#8221; feature, running high-level T-SQL queries, or digging into Windows Services, knowing where this information lives is the first step toward database mastery.</p>



<p>You may also like the following articles:</p>



<ul class="wp-block-list">
<li><a href="https://sqlserverguides.com/rename-database-ssms/" target="_blank" rel="noreferrer noopener">Rename Database SSMS</a></li>



<li><a href="https://sqlserverguides.com/ssms-cannot-connect-to-server/" target="_blank" rel="noreferrer noopener">SSMS Cannot Connect To Server</a></li>



<li><a href="https://sqlserverguides.com/how-to-insert-data-in-ssms/" target="_blank" rel="noreferrer noopener">How To Insert Data In SSMS</a></li>



<li><a href="https://sqlserverguides.com/how-to-run-query-in-ssms/" target="_blank" rel="noreferrer noopener">How To Run Query In SSMS</a></li>



<li><a href="https://sqlserverguides.com/how-to-comment-in-ssms/" target="_blank" rel="noreferrer noopener">How To Comment In SSMS</a></li>



<li><a href="https://sqlserverguides.com/ssms-22-new-features/" target="_blank" rel="noreferrer noopener">SSMS 22 New Features</a></li>
</ul>
<div class="saboxplugin-wrap" itemtype="http://schema.org/Person" itemscope itemprop="author"><div class="saboxplugin-tab"><div class="saboxplugin-gravatar"><img alt='Bijay Kumar Sahoo' src='https://secure.gravatar.com/avatar/18a79d27129a98c6530098c50aef09aa901fced58315025237441af82a0fa179?s=100&#038;d=mm&#038;r=g' srcset='https://secure.gravatar.com/avatar/18a79d27129a98c6530098c50aef09aa901fced58315025237441af82a0fa179?s=200&#038;d=mm&#038;r=g 2x' class='avatar avatar-100 photo' height='100' width='100' itemprop="image"/></div><div class="saboxplugin-authorname"><a href="https://sqlserverguides.com/author/fewlines4biju/" class="vcard author" rel="author"><span class="fn">Bijay Kumar Sahoo</span></a></div><div class="saboxplugin-desc"><div itemprop="description"><p>After working for more than 15 years in the Software field, especially in Microsoft technologies, I have decided to share my expert knowledge of SQL Server. Check out all the SQL Server and related database tutorials I have shared here. Most of the readers are from countries like the United States of America, the United Kingdom, New Zealand, Australia, Canada, etc. I am also a <a href="https://mvp.microsoft.com/en-us/PublicProfile/5000972" rel="noopener" target="_blank">Microsoft MVP</a>. Check out more <a href="https://sqlserverguides.com/about/" rel="noopener">here</a>.</p>
</div></div><div class="saboxplugin-web "><a href="https://sqlserverguides.com" target="_self">sqlserverguides.com</a></div><div class="clearfix"></div><div class="saboxplugin-socials "><a title="Facebook" target="_self" href="https://www.facebook.com/fewlines4biju" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-facebook" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 264 512"><path fill="currentColor" d="M76.7 512V283H0v-91h76.7v-71.7C76.7 42.4 124.3 0 193.8 0c33.3 0 61.9 2.5 70.2 3.6V85h-48.2c-37.8 0-45.1 18-45.1 44.3V192H256l-11.7 91h-73.6v229"></path></svg></span></a><a title="Linkedin" target="_self" href="https://www.linkedin.com/in/fewlines4biju/" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-linkedin" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M100.3 480H7.4V180.9h92.9V480zM53.8 140.1C24.1 140.1 0 115.5 0 85.8 0 56.1 24.1 32 53.8 32c29.7 0 53.8 24.1 53.8 53.8 0 29.7-24.1 54.3-53.8 54.3zM448 480h-92.7V334.4c0-34.7-.7-79.2-48.3-79.2-48.3 0-55.7 37.7-55.7 76.7V480h-92.8V180.9h89.1v40.8h1.3c12.4-23.5 42.7-48.3 87.9-48.3 94 0 111.3 61.9 111.3 142.3V480z"></path></svg></span></a><a title="Twitter" target="_self" href="https://twitter.com/fewlines4biju" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-twitter" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"><path d="M26.37,26l-8.795-12.822l0.015,0.012L25.52,4h-2.65l-6.46,7.48L11.28,4H4.33l8.211,11.971L12.54,15.97L3.88,26h2.65 l7.182-8.322L19.42,26H26.37z M10.23,6l12.34,18h-2.1L8.12,6H10.23z" /></svg></span></a><a title="Pinterest" target="_self" href="https://in.pinterest.com/fewlines4biju/" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-pinterest" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path fill="currentColor" d="M496 256c0 137-111 248-248 248-25.6 0-50.2-3.9-73.4-11.1 10.1-16.5 25.2-43.5 30.8-65 3-11.6 15.4-59 15.4-59 8.1 15.4 31.7 28.5 56.8 28.5 74.8 0 128.7-68.8 128.7-154.3 0-81.9-66.9-143.2-152.9-143.2-107 0-163.9 71.8-163.9 150.1 0 36.4 19.4 81.7 50.3 96.1 4.7 2.2 7.2 1.2 8.3-3.3.8-3.4 5-20.3 6.9-28.1.6-2.5.3-4.7-1.7-7.1-10.1-12.5-18.3-35.3-18.3-56.6 0-54.7 41.4-107.6 112-107.6 60.9 0 103.6 41.5 103.6 100.9 0 67.1-33.9 113.6-78 113.6-24.3 0-42.6-20.1-36.7-44.8 7-29.5 20.5-61.3 20.5-82.6 0-19-10.2-34.9-31.4-34.9-24.9 0-44.9 25.7-44.9 60.2 0 22 7.4 36.8 7.4 36.8s-24.5 103.8-29 123.2c-5 21.4-3 51.6-.9 71.2C65.4 450.9 0 361.1 0 256 0 119 111 8 248 8s248 111 248 248z"></path></svg></span></a></div></div></div>]]></content:encoded>
					
		
		
		<media:content url="https://www.youtube.com/embed/sSJ8_iNk7bM" medium="video" width="1280" height="720">
			<media:player url="https://www.youtube.com/embed/sSJ8_iNk7bM" />
			<media:title type="plain">How to find SQL Server instance name in SSMS</media:title>
			<media:description type="html"><![CDATA[In this SQL Server video tutorial, I explained How to find SQL Server instance name in SSMS.#findSQLServerinstancenameSSMS#sqlserver #sqltips ===============...]]></media:description>
			<media:thumbnail url="https://sqlserverguides.com/wp-content/uploads/2026/04/how-to-find-sql-server-instance-.jpg" />
			<media:rating scheme="urn:simple">nonadult</media:rating>
		</media:content>
	</item>
		<item>
		<title>SQL Select Query Examples</title>
		<link>https://sqlserverguides.com/sql-select-query-examples/</link>
		
		<dc:creator><![CDATA[Bijay Kumar Sahoo]]></dc:creator>
		<pubDate>Mon, 13 Apr 2026 14:38:02 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Select Query Examples]]></category>
		<guid isPermaLink="false">https://sqlserverguides.com/?p=23259</guid>

					<description><![CDATA[In this article, I will walk you through the professional landscape of SQL SELECT queries, providing you with an authoritative toolkit of examples to master your data retrieval. SQL Select Query Examples The Anatomy of a SELECT Statement Before we dive into the examples, we must understand the core logic. A SELECT query isn&#8217;t just ... <a title="SQL Select Query Examples" class="read-more" href="https://sqlserverguides.com/sql-select-query-examples/" aria-label="Read more about SQL Select Query Examples">Read more</a>]]></description>
										<content:encoded><![CDATA[
<p>In this article, I will walk you through the professional landscape of SQL <code>SELECT</code> queries, providing you with an authoritative toolkit of examples to master your data retrieval.</p>



<h2 class="wp-block-heading">SQL Select Query Examples</h2>



<h3 class="wp-block-heading">The Anatomy of a SELECT Statement</h3>



<p>Before we dive into the examples, we must understand the core logic. A <code>SELECT</code> query isn&#8217;t just a command; it’s a request for a specific subset of reality. </p>



<h3 class="wp-block-heading">The Basic Syntax</h3>



<p>The fundamental structure of every query we will discuss follows this hierarchy:</p>



<ol start="1" class="wp-block-list">
<li><strong>SELECT:</strong> Which columns do you want?</li>



<li><strong>FROM:</strong> Which table holds the data?</li>



<li><strong>WHERE:</strong> What are the filters?</li>



<li><strong>ORDER BY:</strong> How should the results be sorted?</li>
</ol>



<h3 class="wp-block-heading">1. Basic Retrieval</h3>



<h4 class="wp-block-heading">Selecting All Columns</h4>



<p>While common in development, I always caution my teams against using <code>SELECT *</code> in production code. It’s inefficient and can break applications if the schema changes.</p>



<p>SQL</p>



<pre class="wp-block-code"><code>-- Selecting all columns from a customer table
SELECT * FROM dbo.Customers;</code></pre>



<p>After executing the above query, I got the expected output as shown in the screenshot below.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="644" height="266" src="https://sqlserverguides.com/wp-content/uploads/2026/04/SQL-Select-Query-Examples.jpg" alt="SQL Select Query Examples" class="wp-image-23260" srcset="https://sqlserverguides.com/wp-content/uploads/2026/04/SQL-Select-Query-Examples.jpg 644w, https://sqlserverguides.com/wp-content/uploads/2026/04/SQL-Select-Query-Examples-300x124.jpg 300w" sizes="(max-width: 644px) 100vw, 644px" /></figure>
</div>


<h3 class="wp-block-heading">Selecting Specific Columns</h3>



<p>Efficiency is key. If you only need names and emails for a marketing campaign in <strong>Chicago</strong>, only ask for those.</p>



<p>SQL</p>



<pre class="wp-block-code"><code>SELECT Name, City FROM dbo.Customers;</code></pre>



<p>After executing the above query, I got the expected output as shown in the screenshot below.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="788" height="251" src="https://sqlserverguides.com/wp-content/uploads/2026/04/SQL-Select-Query-Example.jpg" alt="SQL Select Query Example" class="wp-image-23261" srcset="https://sqlserverguides.com/wp-content/uploads/2026/04/SQL-Select-Query-Example.jpg 788w, https://sqlserverguides.com/wp-content/uploads/2026/04/SQL-Select-Query-Example-300x96.jpg 300w, https://sqlserverguides.com/wp-content/uploads/2026/04/SQL-Select-Query-Example-768x245.jpg 768w" sizes="(max-width: 788px) 100vw, 788px" /></figure>
</div>


<h3 class="wp-block-heading">2. Filtering Data with the WHERE Clause</h3>



<h4 class="wp-block-heading">Using Comparison Operators</h4>



<p>SQL</p>



<pre class="wp-block-code"><code>-- Finding high-value orders
SELECT OrderID, Amount
FROM dbo.Orders
WHERE Amount &gt; 300.00;</code></pre>



<p>After executing the above query, I got the expected output as shown in the screenshot below.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="548" height="312" src="https://sqlserverguides.com/wp-content/uploads/2026/04/sql-server-select-query-example.jpg" alt="sql server select query example" class="wp-image-23262" srcset="https://sqlserverguides.com/wp-content/uploads/2026/04/sql-server-select-query-example.jpg 548w, https://sqlserverguides.com/wp-content/uploads/2026/04/sql-server-select-query-example-300x171.jpg 300w" sizes="(max-width: 548px) 100vw, 548px" /></figure>
</div>


<h3 class="wp-block-heading">Filtering with Multiple Conditions</h3>



<p>We use <code>AND</code> and <code>OR</code> to refine our search. Imagine searching for employees in <strong>San Francisco</strong> who work in the Engineering department:</p>



<p>SQL</p>



<pre class="wp-block-code"><code>SELECT Name, City
FROM dbo.Customers
WHERE City = 'Boston' 
AND Name = 'John Smith';</code></pre>



<p>After executing the above query, I got the expected output as shown in the screenshot below.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="593" height="328" src="https://sqlserverguides.com/wp-content/uploads/2026/04/sql-server-select-query-examples.jpg" alt="sql server select query examples" class="wp-image-23263" srcset="https://sqlserverguides.com/wp-content/uploads/2026/04/sql-server-select-query-examples.jpg 593w, https://sqlserverguides.com/wp-content/uploads/2026/04/sql-server-select-query-examples-300x166.jpg 300w" sizes="(max-width: 593px) 100vw, 593px" /></figure>
</div>


<h4 class="wp-block-heading">Using the IN Operator</h4>



<p>The <code>IN</code> operator is a cleaner way to handle multiple <code>OR</code> conditions.</p>



<p>SQL</p>



<pre class="wp-block-code"><code>-- Finding customers in specific tech hubs
SELECT CustomerName, State
FROM dbo.Customers
WHERE State IN ('CA', 'TX', 'WA', 'NY');</code></pre>



<h3 class="wp-block-heading">3. Advanced Pattern Matching with LIKE</h3>



<p>Sometimes, you don&#8217;t know the exact value. Perhaps you are a customer support rep in <strong>Phoenix</strong> trying to find a client whose name starts with &#8220;Mc.&#8221;</p>



<ul class="wp-block-list">
<li><strong>% (Percent):</strong> Represents zero, one, or multiple characters.</li>



<li><strong>_ (Underscore):</strong> Represents a single character.</li>
</ul>



<p>SQL</p>



<pre class="wp-block-code"><code>-- Finding all customers with names starting with 'john'
SELECT Name, City
FROM dbo.Customers
WHERE Name LIKE 'john%';

-- Finding emails that end in .gov
SELECT Email
FROM dbo.Staff
WHERE Email LIKE '%.gov';</code></pre>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="609" height="289" src="https://sqlserverguides.com/wp-content/uploads/2026/04/sql-select-statement-examples.jpg" alt="sql select statement examples" class="wp-image-23264" srcset="https://sqlserverguides.com/wp-content/uploads/2026/04/sql-select-statement-examples.jpg 609w, https://sqlserverguides.com/wp-content/uploads/2026/04/sql-select-statement-examples-300x142.jpg 300w" sizes="(max-width: 609px) 100vw, 609px" /></figure>
</div>


<h3 class="wp-block-heading">4. Sorting and Limiting Results</h3>



<p>Presentation matters. When reporting to a board of directors in <strong>Washington D.C.</strong>, you need your data organized.</p>



<h4 class="wp-block-heading">Sorting with ORDER BY</h4>



<p>SQL</p>



<pre class="wp-block-code"><code>-- Sorting products from most expensive to cheapest
SELECT ProductName, Price
FROM dbo.Products
ORDER BY Price DESC;</code></pre>



<h4 class="wp-block-heading">Limiting Results (TOP / LIMIT)</h4>



<p>In SQL Server (common in US corporate environments), we use <code>TOP</code>. In MySQL or PostgreSQL (common in startups), we use <code>LIMIT</code>.</p>



<p>SQL</p>



<pre class="wp-block-code"><code>-- Getting the top 5 highest earners
SELECT TOP 5 EmployeeName, Salary
FROM dbo.Payroll
ORDER BY Salary DESC;</code></pre>



<h3 class="wp-block-heading">5. Aggregate Functions and Data Summarization</h3>



<p>As an authority in data, you’ll often be asked for &#8220;the big picture.&#8221; Aggregates turn thousands of rows into a single, powerful number.</p>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><td><strong>Function</strong></td><td><strong>Purpose</strong></td><td><strong>Example Use Case</strong></td></tr></thead><tbody><tr><td><strong>COUNT()</strong></td><td>Counts the number of rows.</td><td>Total users in <strong>California</strong>.</td></tr><tr><td><strong>SUM()</strong></td><td>Adds up numeric values.</td><td>Total revenue for Q3.</td></tr><tr><td><strong>AVG()</strong></td><td>Calculates the mean.</td><td>Average home price in <strong>Denver</strong>.</td></tr><tr><td><strong>MIN() / MAX()</strong></td><td>Finds the extremes.</td><td>Highest and lowest sales figures.</td></tr></tbody></table></figure>



<p>SQL</p>



<pre class="wp-block-code"><code>-- Calculating total sales from the Dallas branch
SELECT SUM(OrderTotal) AS TotalRevenue
FROM dbo.Sales
WHERE BranchCity = 'Dallas';</code></pre>



<h3 class="wp-block-heading">6. The Power of GROUP BY and HAVING</h3>



<p>Aggregates become truly transformative when combined with <code>GROUP BY</code>. This allows you to categorize your summaries.</p>



<h4 class="wp-block-heading">Grouping Data</h4>



<p>If you need to see the number of customers per state across the <strong>USA</strong>:</p>



<p>SQL</p>



<pre class="wp-block-code"><code>SELECT State, COUNT(CustomerID) AS CustomerCount
FROM dbo.Customers
GROUP BY State;</code></pre>



<h4 class="wp-block-heading">Filtering Groups with HAVING</h4>



<p>The <code>WHERE</code> clause filters rows <em>before</em> they are grouped. The <code>HAVING</code> clause filters the results <em>after</em> the grouping.</p>



<p>SQL</p>



<pre class="wp-block-code"><code>-- Finding states with more than 500 customers
SELECT State, COUNT(CustomerID) AS Total
FROM dbo.Customers
GROUP BY State
HAVING COUNT(CustomerID) &gt; 500;</code></pre>



<h3 class="wp-block-heading">7. Joins: Connecting the Dots</h3>



<p>In a normalized database, data is split across tables. A pro knows exactly how to stitch it back together.</p>



<h4 class="wp-block-heading">INNER JOIN</h4>



<p>The most common join. It returns records that have matching values in both tables.</p>



<p>SQL</p>



<pre class="wp-block-code"><code>-- Joining Orders with Customers to see who bought what
SELECT o.OrderID, c.FirstName, c.LastName, o.OrderDate
FROM dbo.Orders o
INNER JOIN dbo.Customers c ON o.CustomerID = c.CustomerID;
</code></pre>



<h4 class="wp-block-heading">LEFT JOIN (LEFT OUTER JOIN)</h4>



<p>This is critical when you want to see <em>all</em> records from the left table, even if there’s no match in the right table.</p>



<p>SQL</p>



<pre class="wp-block-code"><code>-- Finding all employees and their assigned projects (including those with no project)
SELECT e.EmployeeName, p.ProjectName
FROM dbo.Employees e
LEFT JOIN dbo.Projects p ON e.ProjectID = p.ProjectID;</code></pre>



<h3 class="wp-block-heading">8. Working with Dates</h3>



<p>In the <strong>United States</strong>, date formats can be a point of contention. However, in SQL, we treat them with strict logic.</p>



<p>SQL</p>



<pre class="wp-block-code"><code>-- Finding orders placed in the last 30 days
SELECT OrderID, OrderDate
FROM dbo.Orders
WHERE OrderDate &gt;= DATEADD(day, -30, GETDATE());

-- Extracting the year from a transaction
SELECT TransactionID, YEAR(TransactionDate) AS SalesYear
FROM dbo.Finance;</code></pre>



<h3 class="wp-block-heading">9. Subqueries and Common Table Expressions (CTEs)</h3>



<p>When a single query isn&#8217;t enough, we nest them. As a consultant, I prefer <strong>CTEs</strong> for readability—they make your code look clean and professional.</p>



<h4 class="wp-block-heading">Example of a CTE</h4>



<p>Imagine you need to find employees whose salary is above the company average:</p>



<p>SQL</p>



<pre class="wp-block-code"><code>WITH AverageSalary AS (
    SELECT AVG(Salary) AS AvgSal
    FROM dbo.Employees
)
SELECT EmployeeName, Salary
FROM dbo.Employees, AverageSalary
WHERE Salary &gt; AvgSal;</code></pre>



<h3 class="wp-block-heading">10. Handling NULL Values</h3>



<p>In the real world, data is often missing. A junior dev ignores NULLs; a senior dev plans for them.</p>



<ul class="wp-block-list">
<li><strong>IS NULL:</strong> Checks for missing data.</li>



<li><strong>COALESCE():</strong> Provides a default value if data is missing.</li>
</ul>



<p>SQL</p>



<pre class="wp-block-code"><code>-- Finding leads without a phone number
SELECT LeadName
FROM dbo.Leads
WHERE PhoneNumber IS NULL;

-- Replacing NULL emails with a placeholder
SELECT CustomerName, COALESCE(Email, 'No Email Provided') AS ContactEmail
FROM dbo.Customers;</code></pre>



<h3 class="wp-block-heading">Best Practices for SQL Querying</h3>



<ul class="wp-block-list">
<li><strong>Use Aliases:</strong> Table aliases (like <code>Customers AS c</code>) make long joins readable.</li>



<li><strong>Format for Humans:</strong> Use indentations and new lines. SQL doesn&#8217;t care, but your colleagues in <strong>Philadelphia</strong> will.</li>



<li><strong>Be Skeptical of SELECT *:</strong> Always specify columns to protect performance and security.</li>



<li><strong>Comment Your Logic:</strong> Use <code>--</code> for quick notes. Explain the &#8220;why&#8221; behind complex filters.</li>
</ul>



<h2 class="wp-block-heading">Conclusion</h2>



<p>The <code>SELECT</code> query is the heartbeat of data analysis. By mastering these examples—from basic retrieval to complex CTEs—you are not just &#8220;running code&#8221;; you are extracting the truth from a vast database.</p>



<p>You may also like the following articles:</p>



<ul class="wp-block-list">
<li><a href="https://sqlserverguides.com/sql-join-example-with-where-clause/" target="_blank" rel="noreferrer noopener">SQL Join Example With Where Clause</a></li>
</ul>
<div class="saboxplugin-wrap" itemtype="http://schema.org/Person" itemscope itemprop="author"><div class="saboxplugin-tab"><div class="saboxplugin-gravatar"><img alt='Bijay Kumar Sahoo' src='https://secure.gravatar.com/avatar/18a79d27129a98c6530098c50aef09aa901fced58315025237441af82a0fa179?s=100&#038;d=mm&#038;r=g' srcset='https://secure.gravatar.com/avatar/18a79d27129a98c6530098c50aef09aa901fced58315025237441af82a0fa179?s=200&#038;d=mm&#038;r=g 2x' class='avatar avatar-100 photo' height='100' width='100' itemprop="image"/></div><div class="saboxplugin-authorname"><a href="https://sqlserverguides.com/author/fewlines4biju/" class="vcard author" rel="author"><span class="fn">Bijay Kumar Sahoo</span></a></div><div class="saboxplugin-desc"><div itemprop="description"><p>After working for more than 15 years in the Software field, especially in Microsoft technologies, I have decided to share my expert knowledge of SQL Server. Check out all the SQL Server and related database tutorials I have shared here. Most of the readers are from countries like the United States of America, the United Kingdom, New Zealand, Australia, Canada, etc. I am also a <a href="https://mvp.microsoft.com/en-us/PublicProfile/5000972" rel="noopener" target="_blank">Microsoft MVP</a>. Check out more <a href="https://sqlserverguides.com/about/" rel="noopener">here</a>.</p>
</div></div><div class="saboxplugin-web "><a href="https://sqlserverguides.com" target="_self">sqlserverguides.com</a></div><div class="clearfix"></div><div class="saboxplugin-socials "><a title="Facebook" target="_self" href="https://www.facebook.com/fewlines4biju" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-facebook" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 264 512"><path fill="currentColor" d="M76.7 512V283H0v-91h76.7v-71.7C76.7 42.4 124.3 0 193.8 0c33.3 0 61.9 2.5 70.2 3.6V85h-48.2c-37.8 0-45.1 18-45.1 44.3V192H256l-11.7 91h-73.6v229"></path></svg></span></a><a title="Linkedin" target="_self" href="https://www.linkedin.com/in/fewlines4biju/" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-linkedin" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M100.3 480H7.4V180.9h92.9V480zM53.8 140.1C24.1 140.1 0 115.5 0 85.8 0 56.1 24.1 32 53.8 32c29.7 0 53.8 24.1 53.8 53.8 0 29.7-24.1 54.3-53.8 54.3zM448 480h-92.7V334.4c0-34.7-.7-79.2-48.3-79.2-48.3 0-55.7 37.7-55.7 76.7V480h-92.8V180.9h89.1v40.8h1.3c12.4-23.5 42.7-48.3 87.9-48.3 94 0 111.3 61.9 111.3 142.3V480z"></path></svg></span></a><a title="Twitter" target="_self" href="https://twitter.com/fewlines4biju" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-twitter" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"><path d="M26.37,26l-8.795-12.822l0.015,0.012L25.52,4h-2.65l-6.46,7.48L11.28,4H4.33l8.211,11.971L12.54,15.97L3.88,26h2.65 l7.182-8.322L19.42,26H26.37z M10.23,6l12.34,18h-2.1L8.12,6H10.23z" /></svg></span></a><a title="Pinterest" target="_self" href="https://in.pinterest.com/fewlines4biju/" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-pinterest" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path fill="currentColor" d="M496 256c0 137-111 248-248 248-25.6 0-50.2-3.9-73.4-11.1 10.1-16.5 25.2-43.5 30.8-65 3-11.6 15.4-59 15.4-59 8.1 15.4 31.7 28.5 56.8 28.5 74.8 0 128.7-68.8 128.7-154.3 0-81.9-66.9-143.2-152.9-143.2-107 0-163.9 71.8-163.9 150.1 0 36.4 19.4 81.7 50.3 96.1 4.7 2.2 7.2 1.2 8.3-3.3.8-3.4 5-20.3 6.9-28.1.6-2.5.3-4.7-1.7-7.1-10.1-12.5-18.3-35.3-18.3-56.6 0-54.7 41.4-107.6 112-107.6 60.9 0 103.6 41.5 103.6 100.9 0 67.1-33.9 113.6-78 113.6-24.3 0-42.6-20.1-36.7-44.8 7-29.5 20.5-61.3 20.5-82.6 0-19-10.2-34.9-31.4-34.9-24.9 0-44.9 25.7-44.9 60.2 0 22 7.4 36.8 7.4 36.8s-24.5 103.8-29 123.2c-5 21.4-3 51.6-.9 71.2C65.4 450.9 0 361.1 0 256 0 119 111 8 248 8s248 111 248 248z"></path></svg></span></a></div></div></div>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How To Insert Data In SSMS</title>
		<link>https://sqlserverguides.com/how-to-insert-data-in-ssms/</link>
		
		<dc:creator><![CDATA[Bijay Kumar Sahoo]]></dc:creator>
		<pubDate>Thu, 09 Apr 2026 09:28:53 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[How To Insert Data In SSMS]]></category>
		<guid isPermaLink="false">https://sqlserverguides.com/?p=23251</guid>

					<description><![CDATA[In this comprehensive article, I will walk you through every professional method for inserting data into a SQL Server database using SSMS. We will cover everything from the basic INSERT statement to high-volume bulk operations and the user-friendly GUI (Graphical User Interface) methods. How To Insert Data In SSMS SSMS provides multiple avenues to get ... <a title="How To Insert Data In SSMS" class="read-more" href="https://sqlserverguides.com/how-to-insert-data-in-ssms/" aria-label="Read more about How To Insert Data In SSMS">Read more</a>]]></description>
										<content:encoded><![CDATA[
<p>In this comprehensive article, I will walk you through every professional method for inserting data into a SQL Server database using SSMS. We will cover everything from the basic <code>INSERT</code> statement to high-volume bulk operations and the user-friendly GUI (Graphical User Interface) methods.</p>



<h2 class="wp-block-heading">How To Insert Data In SSMS</h2>



<p>SSMS provides multiple avenues to get data into your tables. Choosing the right one depends on your specific scenario:</p>



<ul class="wp-block-list">
<li><strong>Single Row Entry:</strong> For quick fixes or manual testing.</li>



<li><strong>Batch Scripts:</strong> For repeatable deployments across Dev, QA, and Production environments.</li>



<li><strong>Bulk Imports:</strong> For migrating large datasets from external sources like Excel or CSV.</li>
</ul>



<h3 class="wp-block-heading">Method 1: The Standard T-SQL INSERT Statement</h3>



<p>For most developers, the <code>INSERT INTO</code> statement is the bread and butter of database work. It is precise, scriptable, and provides the most control over the transaction.</p>



<h4 class="wp-block-heading">The Basic Syntax</h4>



<p>The most common way to insert data is by specifying the table name, the columns you wish to populate, and the values themselves.</p>



<p>SQL</p>



<pre class="wp-block-code"><code>INSERT INTO dbo.Employees (FirstName, LastName, Email, HireDate, Salary)
VALUES ('James', 'Miller', 'james.miller@email.com', GETDATE(), 50000);</code></pre>



<p>After executing the query above, I received the expected output, as shown in the screenshot below.</p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img loading="lazy" decoding="async" width="1024" height="194" src="https://sqlserverguides.com/wp-content/uploads/2026/04/How-To-Insert-Data-In-SSMS-1024x194.jpg" alt="How To Insert Data In SSMS" class="wp-image-23252" srcset="https://sqlserverguides.com/wp-content/uploads/2026/04/How-To-Insert-Data-In-SSMS-1024x194.jpg 1024w, https://sqlserverguides.com/wp-content/uploads/2026/04/How-To-Insert-Data-In-SSMS-300x57.jpg 300w, https://sqlserverguides.com/wp-content/uploads/2026/04/How-To-Insert-Data-In-SSMS-768x145.jpg 768w, https://sqlserverguides.com/wp-content/uploads/2026/04/How-To-Insert-Data-In-SSMS.jpg 1384w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>
</div>


<h4 class="wp-block-heading">Why You Should Always Specify Column Names</h4>



<p><code>INSERT INTO Customers VALUES (...)</code>. <strong>Don&#8217;t do this.</strong> If a colleague adds a new column to the table later, your script will break because the number of values won&#8217;t match the table schema. Always explicitly list your columns to make your code &#8220;future-proof.&#8221;</p>



<h3 class="wp-block-heading">Method 2: Inserting Multiple Rows Simultaneously</h3>



<p>You don&#8217;t need to write ten separate <code>INSERT</code> statements to add ten rows.</p>



<h4 class="wp-block-heading">The Row Value Constructor</h4>



<p>Since SQL Server 2008, we have been able to insert multiple rows using a single <code>VALUES</code> clause.</p>



<p>SQL</p>



<pre class="wp-block-code"><code>INSERT INTO dbo.Employees (FirstName, LastName, Email,HireDate, Salary)
VALUES 
    ('Smith', 'Miller', 'smith.miller@email.com', GETDATE(), 50000),
    ('grand', 'smith', 'grand.smith@email.com', GETDATE(), 60000),
    ('ley', 'chang', 'ley.chang@email.com', GETDATE(), 30000);</code></pre>



<p>After executing the query above, I received the expected output, as shown in the screenshot below.</p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img loading="lazy" decoding="async" width="1024" height="295" src="https://sqlserverguides.com/wp-content/uploads/2026/04/how-to-upload-files-to-google-drive-share-link-1024x295.jpg" alt="how to upload files to google drive share link" class="wp-image-23253" srcset="https://sqlserverguides.com/wp-content/uploads/2026/04/how-to-upload-files-to-google-drive-share-link-1024x295.jpg 1024w, https://sqlserverguides.com/wp-content/uploads/2026/04/how-to-upload-files-to-google-drive-share-link-300x86.jpg 300w, https://sqlserverguides.com/wp-content/uploads/2026/04/how-to-upload-files-to-google-drive-share-link-768x221.jpg 768w, https://sqlserverguides.com/wp-content/uploads/2026/04/how-to-upload-files-to-google-drive-share-link.jpg 1348w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>
</div>


<h4 class="wp-block-heading">Benefits of Multi-Row Inserts:</h4>



<ul class="wp-block-list">
<li><strong>Performance:</strong> It reduces the overhead of multiple round-trips between the SSMS client and the SQL Server engine.</li>



<li><strong>Atomicity:</strong> If one row in the batch fails a constraint (like a duplicate primary key), the entire statement fails, ensuring you don&#8217;t end up with partial data.</li>
</ul>



<h3 class="wp-block-heading">Method 3: The &#8220;Edit Top 200 Rows&#8221; GUI Method</h3>



<h4 class="wp-block-heading">How to Use the GUI for Insertion:</h4>



<ol start="1" class="wp-block-list">
<li>In the <strong>Object Explorer</strong>, navigate to your database and expand the <strong>Tables</strong> folder.</li>



<li>Right-click on the desired table (e.g., <code>dbo.Employees</code>).</li>



<li>Select <strong>Edit Top 200 Rows</strong>.</li>



<li>A grid will open. Scroll to the very bottom to the empty row marked with an asterisk (*).</li>



<li>Type your data directly into the cells.</li>



<li>Press <strong>Enter</strong> or click away to commit the row to the database.</li>
</ol>



<p>Check out the screenshot below for your reference.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="334" height="214" src="https://sqlserverguides.com/wp-content/uploads/2026/04/google-drive-upload-files-how-to-share-link.jpg" alt="google drive upload files how to share link" class="wp-image-23254" srcset="https://sqlserverguides.com/wp-content/uploads/2026/04/google-drive-upload-files-how-to-share-link.jpg 334w, https://sqlserverguides.com/wp-content/uploads/2026/04/google-drive-upload-files-how-to-share-link-300x192.jpg 300w" sizes="(max-width: 334px) 100vw, 334px" /></figure>
</div>

<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="674" height="328" src="https://sqlserverguides.com/wp-content/uploads/2026/04/Insert-Data-SSMS.jpg" alt="Insert Data SSMS" class="wp-image-23255" srcset="https://sqlserverguides.com/wp-content/uploads/2026/04/Insert-Data-SSMS.jpg 674w, https://sqlserverguides.com/wp-content/uploads/2026/04/Insert-Data-SSMS-300x146.jpg 300w" sizes="(max-width: 674px) 100vw, 674px" /></figure>
</div>


<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p><strong>Pro Tip:</strong> While convenient, I recommend using this only for small, non-critical updates. For production environments<strong>.</strong>, always use scripts that can be peer-reviewed and saved in version control.</p>
</blockquote>



<h3 class="wp-block-heading">Method 4: Inserting Data from Another Table (INSERT INTO&#8230;SELECT)</h3>



<h4 class="wp-block-heading">The Syntax for Table-to-Table Insertion</h4>



<p>You can combine an <code>INSERT</code> statement with a <code>SELECT</code> statement to migrate data dynamically.</p>



<p>SQL</p>



<pre class="wp-block-code"><code>INSERT INTO dbo.Archive_Customers (CustomerID, FirstName, LastName, Email)
SELECT CustomerID, FirstName, LastName, Email
FROM dbo.Customers
WHERE LastPurchaseDate &lt; '2024-01-01';</code></pre>



<h4 class="wp-block-heading">Key Considerations:</h4>



<ul class="wp-block-list">
<li><strong>Column Mapping:</strong> Ensure the data types in the <code>SELECT</code> list match the destination columns in the <code>INSERT</code> list.</li>



<li><strong>Filtering:</strong> Use a <code>WHERE</code> clause to ensure you are only moving the specific subset of data you need.</li>
</ul>



<h3 class="wp-block-heading">Method 5: Handling Identity Columns During Insertion</h3>



<p>Most tables in a modern US tech stack use an <code>IDENTITY</code> column (Auto-increment) for the Primary Key. By default, SQL Server prevents you from manually inserting a value into an identity column.</p>



<h4 class="wp-block-heading">Overriding the Identity Property</h4>



<p>If you are performing a data migration for a company and need to keep the original IDs, you must toggle the identity insert setting.</p>



<ol start="1" class="wp-block-list">
<li><strong>Turn it on:</strong> <code>SET IDENTITY_INSERT dbo.Customers ON;</code></li>



<li><strong>Run your insert:</strong> Include the ID value in your statement.</li>



<li><strong>Turn it off:</strong> <code>SET IDENTITY_INSERT dbo.Customers OFF;</code></li>
</ol>



<p><strong>Warning:</strong> Forgetting to turn this off can cause havoc with your application&#8217;s ability to generate new IDs later.</p>



<h3 class="wp-block-heading">Method 6: Bulk Inserting Data (Importing Files)</h3>



<p>When you are tasked with importing 50,000 leads for a marketing firm, typing them out is impossible. SSMS offers the <strong>Import and Export Wizard</strong>.</p>



<h4 class="wp-block-heading">Using the Import Wizard:</h4>



<ol start="1" class="wp-block-list">
<li>Right-click your <strong>Database</strong> in Object Explorer.</li>



<li>Select <strong>Tasks</strong> > <strong>Import Data&#8230;</strong></li>



<li>Choose your <strong>Data Source</strong> (e.g., Microsoft Excel or a Flat File/CSV).</li>



<li>Choose your <strong>Destination</strong> (SQL Server Native Client).</li>



<li>Map the source columns to your destination table columns.</li>



<li>Run the package immediately or save it as an SSIS package for later use.</li>
</ol>



<h3 class="wp-block-heading">Best Practices for Data Insertion in SSMS</h3>



<h4 class="wp-block-heading">1. Use Transactions for Critical Data</h4>



<p>If you are running a script for a firm, wrap your insert in a transaction. This allows you to verify the results before &#8220;locking them in.&#8221;</p>



<p>SQL</p>



<pre class="wp-block-code"><code>BEGIN TRANSACTION;

INSERT INTO dbo.Orders (OrderDate, CustomerID, TotalAmount)
VALUES (GETDATE(), 501, 199.99);

-- Check the results first!
-- ROLLBACK TRANSACTION; -- Use this if it looks wrong
-- COMMIT TRANSACTION;   -- Use this if it looks right
</code></pre>



<h4 class="wp-block-heading">2. Handle Constraints Gracefully</h4>



<p>Ensure your data respects:</p>



<ul class="wp-block-list">
<li><strong>Primary Keys:</strong> No duplicate IDs.</li>



<li><strong>Foreign Keys:</strong> The Customer must exist before you can add an Order for them.</li>



<li><strong>Check Constraints:</strong> For example, ensuring a <code>Price</code> column is never negative.</li>
</ul>



<h4 class="wp-block-heading">3. Output Your Inserted Data</h4>



<p>Use the <code>OUTPUT</code> clause to immediately see the values that were generated by the server (like the new Identity ID or a default timestamp).</p>



<p>SQL</p>



<pre class="wp-block-code"><code>INSERT INTO dbo.Users (Username, Region)
OUTPUT inserted.UserID, inserted.CreatedAt
VALUES ('jdoe_nyc', 'Northeast');</code></pre>



<h3 class="wp-block-heading">Troubleshooting Common Insertion Errors</h3>



<p>Here is how to fix the &#8220;Big Three&#8221;:</p>



<h4 class="wp-block-heading">1. String or binary data would be truncated</h4>



<ul class="wp-block-list">
<li><strong>The Cause:</strong> You&#8217;re trying to put a 100-character name into a <code>VARCHAR(50)</code> column.</li>



<li><strong>The Fix:</strong> Increase the column size or trim the data before inserting.</li>
</ul>



<h4 class="wp-block-heading">2. Cannot insert the value NULL into column &#8216;X&#8217;</h4>



<ul class="wp-block-list">
<li><strong>The Cause:</strong> You missed a column that is marked as <code>NOT NULL</code>.</li>



<li><strong>The Fix:</strong> Provide a value for that column or modify the table to allow NULLs (if appropriate).</li>
</ul>



<h4 class="wp-block-heading">3. The INSERT statement conflicted with the FOREIGN KEY constraint</h4>



<ul class="wp-block-list">
<li><strong>The Cause:</strong> You are trying to reference a record in another table that doesn&#8217;t exist.</li>



<li><strong>The Fix:</strong> Insert the parent record first.</li>
</ul>



<h3 class="wp-block-heading">Summary of Key Shortcuts for SSMS</h3>



<ul class="wp-block-list">
<li><strong>F5 or Ctrl + E:</strong> Execute the current script.</li>



<li><strong>Ctrl + N:</strong> Open a new query window.</li>



<li><strong>Ctrl + Shift + R:</strong> Refresh the IntelliSense cache (helps when you&#8217;ve just added a new table).</li>



<li><strong>Ctrl + K, Ctrl + C:</strong> Comment out a block of code.</li>
</ul>



<h2 class="wp-block-heading">Conclusion</h2>



<p>Inserting data in SSMS is more than just a mechanical task; it is the foundation of data management. By mastering the <code>INSERT</code> statement, understanding how to handle identity columns, and using the power of bulk imports, you position yourself as a capable and authoritative database professional.</p>



<p>You may also like the following articles:</p>



<ul class="wp-block-list">
<li><a href="https://sqlserverguides.com/how-to-run-query-in-ssms/" target="_blank" rel="noreferrer noopener">How To Run Query In SSMS</a></li>



<li><a href="https://sqlserverguides.com/how-to-comment-in-ssms/" target="_blank" rel="noreferrer noopener">How To Comment In SSMS</a></li>



<li><a href="https://sqlserverguides.com/ssms-22-new-features/" target="_blank" rel="noreferrer noopener">SSMS 22 New Features</a></li>
</ul>
<div class="saboxplugin-wrap" itemtype="http://schema.org/Person" itemscope itemprop="author"><div class="saboxplugin-tab"><div class="saboxplugin-gravatar"><img alt='Bijay Kumar Sahoo' src='https://secure.gravatar.com/avatar/18a79d27129a98c6530098c50aef09aa901fced58315025237441af82a0fa179?s=100&#038;d=mm&#038;r=g' srcset='https://secure.gravatar.com/avatar/18a79d27129a98c6530098c50aef09aa901fced58315025237441af82a0fa179?s=200&#038;d=mm&#038;r=g 2x' class='avatar avatar-100 photo' height='100' width='100' itemprop="image"/></div><div class="saboxplugin-authorname"><a href="https://sqlserverguides.com/author/fewlines4biju/" class="vcard author" rel="author"><span class="fn">Bijay Kumar Sahoo</span></a></div><div class="saboxplugin-desc"><div itemprop="description"><p>After working for more than 15 years in the Software field, especially in Microsoft technologies, I have decided to share my expert knowledge of SQL Server. Check out all the SQL Server and related database tutorials I have shared here. Most of the readers are from countries like the United States of America, the United Kingdom, New Zealand, Australia, Canada, etc. I am also a <a href="https://mvp.microsoft.com/en-us/PublicProfile/5000972" rel="noopener" target="_blank">Microsoft MVP</a>. Check out more <a href="https://sqlserverguides.com/about/" rel="noopener">here</a>.</p>
</div></div><div class="saboxplugin-web "><a href="https://sqlserverguides.com" target="_self">sqlserverguides.com</a></div><div class="clearfix"></div><div class="saboxplugin-socials "><a title="Facebook" target="_self" href="https://www.facebook.com/fewlines4biju" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-facebook" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 264 512"><path fill="currentColor" d="M76.7 512V283H0v-91h76.7v-71.7C76.7 42.4 124.3 0 193.8 0c33.3 0 61.9 2.5 70.2 3.6V85h-48.2c-37.8 0-45.1 18-45.1 44.3V192H256l-11.7 91h-73.6v229"></path></svg></span></a><a title="Linkedin" target="_self" href="https://www.linkedin.com/in/fewlines4biju/" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-linkedin" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M100.3 480H7.4V180.9h92.9V480zM53.8 140.1C24.1 140.1 0 115.5 0 85.8 0 56.1 24.1 32 53.8 32c29.7 0 53.8 24.1 53.8 53.8 0 29.7-24.1 54.3-53.8 54.3zM448 480h-92.7V334.4c0-34.7-.7-79.2-48.3-79.2-48.3 0-55.7 37.7-55.7 76.7V480h-92.8V180.9h89.1v40.8h1.3c12.4-23.5 42.7-48.3 87.9-48.3 94 0 111.3 61.9 111.3 142.3V480z"></path></svg></span></a><a title="Twitter" target="_self" href="https://twitter.com/fewlines4biju" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-twitter" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"><path d="M26.37,26l-8.795-12.822l0.015,0.012L25.52,4h-2.65l-6.46,7.48L11.28,4H4.33l8.211,11.971L12.54,15.97L3.88,26h2.65 l7.182-8.322L19.42,26H26.37z M10.23,6l12.34,18h-2.1L8.12,6H10.23z" /></svg></span></a><a title="Pinterest" target="_self" href="https://in.pinterest.com/fewlines4biju/" rel="nofollow noopener" class="saboxplugin-icon-grey"><svg aria-hidden="true" class="sab-pinterest" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path fill="currentColor" d="M496 256c0 137-111 248-248 248-25.6 0-50.2-3.9-73.4-11.1 10.1-16.5 25.2-43.5 30.8-65 3-11.6 15.4-59 15.4-59 8.1 15.4 31.7 28.5 56.8 28.5 74.8 0 128.7-68.8 128.7-154.3 0-81.9-66.9-143.2-152.9-143.2-107 0-163.9 71.8-163.9 150.1 0 36.4 19.4 81.7 50.3 96.1 4.7 2.2 7.2 1.2 8.3-3.3.8-3.4 5-20.3 6.9-28.1.6-2.5.3-4.7-1.7-7.1-10.1-12.5-18.3-35.3-18.3-56.6 0-54.7 41.4-107.6 112-107.6 60.9 0 103.6 41.5 103.6 100.9 0 67.1-33.9 113.6-78 113.6-24.3 0-42.6-20.1-36.7-44.8 7-29.5 20.5-61.3 20.5-82.6 0-19-10.2-34.9-31.4-34.9-24.9 0-44.9 25.7-44.9 60.2 0 22 7.4 36.8 7.4 36.8s-24.5 103.8-29 123.2c-5 21.4-3 51.6-.9 71.2C65.4 450.9 0 361.1 0 256 0 119 111 8 248 8s248 111 248 248z"></path></svg></span></a></div></div></div>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 

Served from: sqlserverguides.com @ 2026-04-22 07:20:46 by W3 Total Cache
-->