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

<channel>
	<title>authentication mode &#8211; Database Research &amp; Development</title>
	<atom:link href="https://www.dbrnd.com/tag/authentication-mode/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dbrnd.com</link>
	<description>BIGData &#124; NoSQL &#124; MSSQL &#124; MySQL &#124; PostgreSQL</description>
	<lastBuildDate>Thu, 25 Jan 2018 13:43:27 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.4</generator>
	<item>
		<title>SQL Server: How to change Authentication Mode from Windows Registry?</title>
		<link>https://www.dbrnd.com/2018/02/sql-server-how-to-change-authentication-mode-from-windows-registry/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Tue, 13 Feb 2018 16:16:31 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[authentication mode]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server Administrator]]></category>
		<category><![CDATA[SQL Server Error]]></category>
		<category><![CDATA[SQL Server Monitoring]]></category>
		<category><![CDATA[SQL Server Performance Tuning]]></category>
		<category><![CDATA[SQL Server Programming]]></category>
		<category><![CDATA[SQL Server Tips and Tricks]]></category>
		<category><![CDATA[TSQL]]></category>
		<category><![CDATA[Windows Registry]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=7084</guid>

					<description><![CDATA[In this post, I am sharing the option of changing the Authentication Mode of SQL Server from the Windows Registry. Most of the DBAs are always trying to manage database server from the outside like Windows Powershell, Windows Registry, Shell Command prompt. Here also, I am sharing Windows Registry path for changing the SQL Authentication [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F02%2Fsql-server-how-to-change-authentication-mode-from-windows-registry%2F&amp;linkname=SQL%20Server%3A%20How%20to%20change%20Authentication%20Mode%20from%20Windows%20Registry%3F" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F02%2Fsql-server-how-to-change-authentication-mode-from-windows-registry%2F&amp;linkname=SQL%20Server%3A%20How%20to%20change%20Authentication%20Mode%20from%20Windows%20Registry%3F" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F02%2Fsql-server-how-to-change-authentication-mode-from-windows-registry%2F&amp;linkname=SQL%20Server%3A%20How%20to%20change%20Authentication%20Mode%20from%20Windows%20Registry%3F" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F02%2Fsql-server-how-to-change-authentication-mode-from-windows-registry%2F&amp;linkname=SQL%20Server%3A%20How%20to%20change%20Authentication%20Mode%20from%20Windows%20Registry%3F" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F02%2Fsql-server-how-to-change-authentication-mode-from-windows-registry%2F&amp;linkname=SQL%20Server%3A%20How%20to%20change%20Authentication%20Mode%20from%20Windows%20Registry%3F" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F02%2Fsql-server-how-to-change-authentication-mode-from-windows-registry%2F&amp;linkname=SQL%20Server%3A%20How%20to%20change%20Authentication%20Mode%20from%20Windows%20Registry%3F" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F02%2Fsql-server-how-to-change-authentication-mode-from-windows-registry%2F&#038;title=SQL%20Server%3A%20How%20to%20change%20Authentication%20Mode%20from%20Windows%20Registry%3F" data-a2a-url="https://www.dbrnd.com/2018/02/sql-server-how-to-change-authentication-mode-from-windows-registry/" data-a2a-title="SQL Server: How to change Authentication Mode from Windows Registry?"></a></p><p>In this post, I am sharing the option of changing the Authentication Mode of SQL Server from the Windows Registry.</p>
<p>Most of the DBAs are always trying to manage database server from the outside like Windows Powershell, Windows Registry, Shell Command prompt.</p>
<p>Here also, I am sharing Windows Registry path for changing the SQL Authentication Mode.</p>
<p><strong>Registry Path:</strong></p><pre class="crayon-plain-tag">Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL13.DBRND\MSSQLServer</pre><p>
There are two types of authentication modes, &#8220;Windows Authentication mode&#8221; and &#8220;SQL Server and Windows Authentication mode (Mix mode)&#8221;.</p>
<p>In the above path, you have to change &#8220;LoginMode&#8221; parameter. 1 = Windows Authentication mode, 2 = Mix mode.</p>
<p><strong>Check the below screenshot: </strong></p>
<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-7086" src="https://www.dbrnd.com/wp-content/uploads/2018/01/ChangeSQLLoginOption.png" alt="Change SQL Login Option" width="840" height="618" srcset="https://www.dbrnd.com/wp-content/uploads/2018/01/ChangeSQLLoginOption.png 840w, https://www.dbrnd.com/wp-content/uploads/2018/01/ChangeSQLLoginOption-679x500.png 679w" sizes="(max-width: 840px) 100vw, 840px" /></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>SQL Server: T-SQL Script to identify current Authentication Mode</title>
		<link>https://www.dbrnd.com/2017/05/sql-server-t-sql-script-to-identify-current-authentication-mode-windows-authentication-login/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Wed, 17 May 2017 16:16:16 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server DBA Script]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[authentication mode]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server Administrator]]></category>
		<category><![CDATA[SQL Server Error]]></category>
		<category><![CDATA[SQL Server Login]]></category>
		<category><![CDATA[SQL Server Monitoring]]></category>
		<category><![CDATA[SQL Server Performance Tuning]]></category>
		<category><![CDATA[SQL Server Programming]]></category>
		<category><![CDATA[SQL Server Tips and Tricks]]></category>
		<category><![CDATA[TSQL]]></category>
		<category><![CDATA[Windows Authentication Mode]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=5083</guid>

					<description><![CDATA[In this post, I am sharing a T-SQL script to identify a current SQL Server Authentication Mode. You can use SERVERPROPERTY to find this details of SQL Server. Why is this important? In my previous organization, we have 23 different SQL Server Instances, and we set policies to allow System admin using only Windows Authentication [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F05%2Fsql-server-t-sql-script-to-identify-current-authentication-mode-windows-authentication-login%2F&amp;linkname=SQL%20Server%3A%20T-SQL%20Script%20to%20identify%20current%20Authentication%20Mode" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F05%2Fsql-server-t-sql-script-to-identify-current-authentication-mode-windows-authentication-login%2F&amp;linkname=SQL%20Server%3A%20T-SQL%20Script%20to%20identify%20current%20Authentication%20Mode" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F05%2Fsql-server-t-sql-script-to-identify-current-authentication-mode-windows-authentication-login%2F&amp;linkname=SQL%20Server%3A%20T-SQL%20Script%20to%20identify%20current%20Authentication%20Mode" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F05%2Fsql-server-t-sql-script-to-identify-current-authentication-mode-windows-authentication-login%2F&amp;linkname=SQL%20Server%3A%20T-SQL%20Script%20to%20identify%20current%20Authentication%20Mode" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F05%2Fsql-server-t-sql-script-to-identify-current-authentication-mode-windows-authentication-login%2F&amp;linkname=SQL%20Server%3A%20T-SQL%20Script%20to%20identify%20current%20Authentication%20Mode" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F05%2Fsql-server-t-sql-script-to-identify-current-authentication-mode-windows-authentication-login%2F&amp;linkname=SQL%20Server%3A%20T-SQL%20Script%20to%20identify%20current%20Authentication%20Mode" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F05%2Fsql-server-t-sql-script-to-identify-current-authentication-mode-windows-authentication-login%2F&#038;title=SQL%20Server%3A%20T-SQL%20Script%20to%20identify%20current%20Authentication%20Mode" data-a2a-url="https://www.dbrnd.com/2017/05/sql-server-t-sql-script-to-identify-current-authentication-mode-windows-authentication-login/" data-a2a-title="SQL Server: T-SQL Script to identify current Authentication Mode"></a></p><p>In this post, I am sharing a T-SQL script to identify a current SQL Server Authentication Mode.<br />
You can use SERVERPROPERTY to find this details of SQL Server. </p>
<p><strong>Why is this important?</strong></p>
<blockquote><p>In my previous organization, we have 23 different SQL Server Instances, and we set policies to allow System admin using only Windows Authentication mode.<br />
The reason is security, and Windows Active Directory is more secure than SQL Server database user authentication. </p>
<p>Simply, we want to check the authentication mode of all the SQL Server Instances, so I found below script which I am sharing here.</p></blockquote>
<pre class="crayon-plain-tag">Use Master
GO

SELECT 
	CASE SERVERPROPERTY('IsIntegratedSecurityOnly')
	WHEN 0 THEN 'Mixed Mode - Authentication Mode (Both SQL Server and Windows Authentication)'
	WHEN 1 THEN 'Only Windows Authentication Mode.' 
END AS SQL_Server_Authentication_Mode
GO</pre> </p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>SQL Server: Database Security Interview Questions and Answers  (Day-3)</title>
		<link>https://www.dbrnd.com/2016/07/sql-server-database-security-interview-questions-and-answers-change-data-capture-cdc-guest-user-sa-password-trustworthy-day-3/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Wed, 20 Jul 2016 04:24:20 +0000</pubDate>
				<category><![CDATA[SQL Server Interview]]></category>
		<category><![CDATA[answers]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[authentication mode]]></category>
		<category><![CDATA[Change Data Capture CDC]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[database security]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[interview]]></category>
		<category><![CDATA[password policy]]></category>
		<category><![CDATA[questions]]></category>
		<category><![CDATA[SA Account]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server Administrator]]></category>
		<category><![CDATA[SQL Server Monitoring]]></category>
		<category><![CDATA[SQL Server Performance Tunning]]></category>
		<category><![CDATA[SQL Server Tips and Tricks]]></category>
		<category><![CDATA[trustworthy]]></category>
		<category><![CDATA[TSQL]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=3372</guid>

					<description><![CDATA[What do you know about the Change Data Capture (CDC)? Change Data Capture (CDC) is used to track the changed data caused by common DML operations (INSERT/UPDATE/DEKLETE). The capture process reads the transaction log to pull out the data change information and then load the information into the associated change table. How to disable change [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F07%2Fsql-server-database-security-interview-questions-and-answers-change-data-capture-cdc-guest-user-sa-password-trustworthy-day-3%2F&amp;linkname=SQL%20Server%3A%20Database%20Security%20Interview%20Questions%20and%20Answers%20%20%28Day-3%29" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F07%2Fsql-server-database-security-interview-questions-and-answers-change-data-capture-cdc-guest-user-sa-password-trustworthy-day-3%2F&amp;linkname=SQL%20Server%3A%20Database%20Security%20Interview%20Questions%20and%20Answers%20%20%28Day-3%29" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F07%2Fsql-server-database-security-interview-questions-and-answers-change-data-capture-cdc-guest-user-sa-password-trustworthy-day-3%2F&amp;linkname=SQL%20Server%3A%20Database%20Security%20Interview%20Questions%20and%20Answers%20%20%28Day-3%29" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F07%2Fsql-server-database-security-interview-questions-and-answers-change-data-capture-cdc-guest-user-sa-password-trustworthy-day-3%2F&amp;linkname=SQL%20Server%3A%20Database%20Security%20Interview%20Questions%20and%20Answers%20%20%28Day-3%29" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F07%2Fsql-server-database-security-interview-questions-and-answers-change-data-capture-cdc-guest-user-sa-password-trustworthy-day-3%2F&amp;linkname=SQL%20Server%3A%20Database%20Security%20Interview%20Questions%20and%20Answers%20%20%28Day-3%29" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F07%2Fsql-server-database-security-interview-questions-and-answers-change-data-capture-cdc-guest-user-sa-password-trustworthy-day-3%2F&amp;linkname=SQL%20Server%3A%20Database%20Security%20Interview%20Questions%20and%20Answers%20%20%28Day-3%29" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F07%2Fsql-server-database-security-interview-questions-and-answers-change-data-capture-cdc-guest-user-sa-password-trustworthy-day-3%2F&#038;title=SQL%20Server%3A%20Database%20Security%20Interview%20Questions%20and%20Answers%20%20%28Day-3%29" data-a2a-url="https://www.dbrnd.com/2016/07/sql-server-database-security-interview-questions-and-answers-change-data-capture-cdc-guest-user-sa-password-trustworthy-day-3/" data-a2a-title="SQL Server: Database Security Interview Questions and Answers  (Day-3)"></a></p><p><strong>What do you know about the Change Data Capture (CDC)?</strong></p>
<blockquote><p>Change Data Capture (CDC) is used to track the changed data caused by common DML operations (INSERT/UPDATE/DEKLETE). The capture process reads the transaction log to pull out the data change information and then load the information into the associated change table.</p></blockquote>
<p><strong>How to disable change data capture (CDC) on a table?</strong></p><pre class="crayon-plain-tag">USE Your_Database_Name
GO
EXEC sys.sp_cdc_disable_table
@source_schema = N'dbo',
@source_name = N'YourTableName',
@capture_instance = N'dbo_YourTableName'
GO</pre><p>
<strong>How to check if Change Data Capture is enabled or disabled on a SQL Server Database?</strong></p><pre class="crayon-plain-tag">SELECT [name], is_cdc_enabled
FROM sys.databases where name = 'Database_Name'
/*
is_cdc_enabled = 0 -- CDC is disabled
is_cdc_enabled = 1 -- CDC is enabled
*/</pre><p>
<strong>How to Restore Database On Which Change Data Capture (CDC) Is Enabled?</strong></p>
<blockquote><p>When we restore a database from a CDC enabled database backup, it does not restore the CDC object automatically. Also if you try to look for some options for Restore with CDC object etc. in Database Restore Wizard, you would not find anything.</p>
<p>If we restore the database on the same SQL Server instance with same name, CDC objects will be restored and it will start working fine as CDC jobs are available on the server already.</p>
<p>If you try to restore with a different name or restore to different SQL Server instance, It will not restore CDC objects by default. In Restore Database statement, we have to include Keep_CDC.</p></blockquote>
<p><strong>What is the Guest user account in SQL Server?  What login is it mapped to it?</strong></p>
<blockquote><p>The Guest user account is created by default in all databases and is used when explicit permissions are not granted to access an object.  It is not mapped directly to any login, but can be used by any login.</p></blockquote>
<p><strong>How can SQL Server instances be hidden?</strong></p>
<blockquote><p>To hide a SQL Server instance, we need to make a change in SQL Server Configuration Manager. To do this launch SQL Server Configuration Manager and do the following: select the instance of SQL Server, right click and select Properties.</p>
<p>After selecting properties you will just set Hide Instance to &#8220;Yes&#8221; and click OK or Apply. After the change is made, you need to restart the instance of SQL Server to not expose the name of the instance.</p></blockquote>
<p><strong>Is it possible to disable SA, how?</strong></p>
<blockquote><p>Disable the SA Login</p>
<p>Disabling the SA account is a good option to prevent its use. When it is disabled no one can use it in any circumstance until it is enabled.</p></blockquote>
<p><strong>What is the difference between Authenticate and Authorization?</strong></p>
<blockquote><p>When you log on to a PC with a user name and password you are authenticating. Authorization is the process of verifying that you have access to something. Gaining access to a resource (e.g. directory on a hard disk) because the permissions configured on it allow you access is authorization.</p></blockquote>
<p><strong>Which one is highest privileged role out of SQLAgentUserRole, SQLAgentReaderRole, SQLAgentOperatorRole?</strong></p>
<blockquote><p>SQLAgentOperatorRole is the most privileged of the SQL Server Agent fixed database roles. It includes all the permissions of SQLAgentUserRole andSQLAgentReaderRole. Members of this role can also view properties for operators and proxies, and enumerate available proxies and alerts on the server.</p></blockquote>
<p><strong>What is the password policy for SQL Server Accounts?</strong></p>
<ul>
<li>The password must contain uppercase &amp; lowercase letters.</li>
<li>The password must contain numbers &amp; alphanumeric characters.</li>
<li>The password must contain non-alphanumeric characters such as &amp;, ^,%,*,$ etc.</li>
<li>Do not use common known passwords that are easy to guess such as: admin, password, sa, administrator, sysadmin etc.</li>
<li>Passwords should be long enough (at least 8 characters long).</li>
<li>It does not allows blank password for the SA account.</li>
</ul>
<p><strong>What are the disadvantages of SQL Server Authentication Mode?</strong></p>
<blockquote><p>If a user is a Windows domain user who has a login and password for Windows, he must still provide another (SQL Server) login and password to connect. Keeping track of multiple names and passwords is difficult for many users. Having to provide SQL Server credentials every time that one connects to the database can be annoying.</p>
<p>SQL Server Authentication cannot use Kerberos security protocol.</p>
<p>Windows offers additional password policies that are not available for SQL Server logins.</p>
<p>The encrypted SQL Server Authentication login password, must be passed over the network at the time of the connection. Some applications that connect automatically will store the password at the client. These are additional attack points.</p></blockquote>
<p><strong>When CHECK_POLICY is ON, what kind of behavior occur?</strong></p>
<blockquote><p>CHECK_EXPIRATION is also set to ON unless it is explicitly set to OFF.</p>
<p>The password history is initialized with the value of the current password hash.</p>
<p>Account lockout duration, account lockout threshold, and reset account lockout counter after are also enabled.</p></blockquote>
<p><strong>What is What is TRUSTWORTHY database?</strong></p>
<blockquote><p>Applies To: SQL Server 2016.</p>
<p>The TRUSTWORTHY database property is used to indicate whether the instance of SQL Server trusts the database and the contents within it. By default, this setting is OFF, but can be set to ON by using the ALTER DATABASE statement.</p>
<p>This property can be used to reduce certain threats that can exist as a result of attaching a database.</p></blockquote>
<p><strong>Where are the places that I should not use the sa login?</strong></p>
<ul>
<li>Embedded in management tools or application development tools</li>
<li>Hard coded in application connection strings</li>
<li>DTS or SSIS connection objects</li>
<li>UDL files</li>
<li>Batch files</li>
<li>SQLCMD, OSQL or ISQL T-SQL scripts</li>
<li>In casual conversation</li>
<li>On sticky notes on your desk or monitor</li>
</ul>
<p><strong>What is the use of BUILTIN\Administrators Group in SQL Server?</strong></p>
<blockquote><p>Any Windows login in BUILTIN\Administrators group is by default a SQL Server system administrator. This single group can be used to manage administrators from a Windows and SQL Server perspective.</p></blockquote>
<p><strong>How to detect Orphaned Users in SQL Server?</strong><br />
<pre class="crayon-plain-tag">SELECT dp.type_desc, dp.SID, dp.name AS user_name
FROM sys.database_principals AS dp
LEFT JOIN sys.server_principals AS sp
ON dp.SID = sp.SID
WHERE sp.SID IS NULL
AND authentication_type_desc = 'INSTANCE';</pre>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>SQL Server Database Administrator Interview Questions and Answers (Day-3)</title>
		<link>https://www.dbrnd.com/2016/07/sql-server-database-administrator-interview-questions-and-answers-day-sql-profiler-authentication-mode-shrink-lock-page-latches-3/</link>
					<comments>https://www.dbrnd.com/2016/07/sql-server-database-administrator-interview-questions-and-answers-day-sql-profiler-authentication-mode-shrink-lock-page-latches-3/#comments</comments>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Mon, 11 Jul 2016 19:57:20 +0000</pubDate>
				<category><![CDATA[SQL Server Interview]]></category>
		<category><![CDATA[answers]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[authentication mode]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database administrator]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[Interviews]]></category>
		<category><![CDATA[lock page in memory]]></category>
		<category><![CDATA[questions]]></category>
		<category><![CDATA[Shrink]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server Administrator]]></category>
		<category><![CDATA[sql server latches]]></category>
		<category><![CDATA[SQL Server Monitoring]]></category>
		<category><![CDATA[SQL Server Performance Tunning]]></category>
		<category><![CDATA[sql server profiler]]></category>
		<category><![CDATA[SQL Server Tips and Tricks]]></category>
		<category><![CDATA[TSQL]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=3325</guid>

					<description><![CDATA[What is SQL Profiler? Microsoft SQL Server Profiler is a graphical user interface to SQL Trace for monitoring an instance of the Database Engine or Analysis Services. You can capture and save data about each event to a file or table to analyze later. Use SQL Profiler to monitor only the events in which you [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F07%2Fsql-server-database-administrator-interview-questions-and-answers-day-sql-profiler-authentication-mode-shrink-lock-page-latches-3%2F&amp;linkname=SQL%20Server%20Database%20Administrator%20Interview%20Questions%20and%20Answers%20%28Day-3%29" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F07%2Fsql-server-database-administrator-interview-questions-and-answers-day-sql-profiler-authentication-mode-shrink-lock-page-latches-3%2F&amp;linkname=SQL%20Server%20Database%20Administrator%20Interview%20Questions%20and%20Answers%20%28Day-3%29" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F07%2Fsql-server-database-administrator-interview-questions-and-answers-day-sql-profiler-authentication-mode-shrink-lock-page-latches-3%2F&amp;linkname=SQL%20Server%20Database%20Administrator%20Interview%20Questions%20and%20Answers%20%28Day-3%29" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F07%2Fsql-server-database-administrator-interview-questions-and-answers-day-sql-profiler-authentication-mode-shrink-lock-page-latches-3%2F&amp;linkname=SQL%20Server%20Database%20Administrator%20Interview%20Questions%20and%20Answers%20%28Day-3%29" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F07%2Fsql-server-database-administrator-interview-questions-and-answers-day-sql-profiler-authentication-mode-shrink-lock-page-latches-3%2F&amp;linkname=SQL%20Server%20Database%20Administrator%20Interview%20Questions%20and%20Answers%20%28Day-3%29" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F07%2Fsql-server-database-administrator-interview-questions-and-answers-day-sql-profiler-authentication-mode-shrink-lock-page-latches-3%2F&amp;linkname=SQL%20Server%20Database%20Administrator%20Interview%20Questions%20and%20Answers%20%28Day-3%29" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F07%2Fsql-server-database-administrator-interview-questions-and-answers-day-sql-profiler-authentication-mode-shrink-lock-page-latches-3%2F&#038;title=SQL%20Server%20Database%20Administrator%20Interview%20Questions%20and%20Answers%20%28Day-3%29" data-a2a-url="https://www.dbrnd.com/2016/07/sql-server-database-administrator-interview-questions-and-answers-day-sql-profiler-authentication-mode-shrink-lock-page-latches-3/" data-a2a-title="SQL Server Database Administrator Interview Questions and Answers (Day-3)"></a></p><p><strong>What is SQL Profiler?</strong></p>
<blockquote><p>Microsoft SQL Server Profiler is a graphical user interface to SQL Trace for monitoring an instance of the Database Engine or Analysis Services. You can capture and save data about each event to a file or table to analyze later.</p>
<p>Use SQL Profiler to monitor only the events in which you are interested.</p>
<p>If traces are becoming too large, you can filter them based on the information you want, so that only a subset of the event data is collected.</p>
<p>Monitoring too many events adds overhead to the server and the monitoring process and can cause the trace file or trace table to grow very large, especially when the monitoring process takes place over a long period of time.</p></blockquote>
<p><strong>What is Builtin/Administrator?</strong></p>
<blockquote><p>The Builtin/Administrator account is basically used during some setup to join some machine in the domain. It should be disabled immediately thereafter. For any disaster recovery, the account will be automatically enabled. It should not be used for normal operations.</p></blockquote>
<p><strong>How can SQL Server instances be hidden?</strong></p>
<blockquote><p>To hide a SQL Server instance, we need to make a change in SQL Server Configuration Manager. To do this launch SQL Server Configuration Manager and do the following: select the instance of SQL Server, right click and select Properties.</p>
<p>After selecting properties you will just set Hide Instance to “Yes” and click OK or Apply. After the change is made, you need to restart the instance of SQL Server to not expose the name of the instance.</p></blockquote>
<p><strong>What are the authentication modes in SQL Server? How can it be changed?</strong></p>
<blockquote><p>Windows mode and Mixed Mode &#8211; SQL and Windows. To change authentication mode in SQL Server click Start, Programs, Microsoft SQL Server and click SQL Enterprise Manager to run SQL Enterprise Manager from the Microsoft SQL Server program group. Select the server then from the Tools menu select SQL Server Configuration Properties, and choose the Security page.</p></blockquote>
<p><strong>How can we check whether the port number is connecting or not on a Server?</strong></p>
<blockquote><p>TELNET [HOSTNAME] PORTNUMBER</p></blockquote>
<p><strong>Can we uninstall/rollback a service packs from SQL Server?</strong></p>
<blockquote><p>No: To rollback a SP you have to uninstall entire product and reinstall it.</p></blockquote>
<p><strong>What do you know about the Hotfixes?</strong></p>
<blockquote><p>Hotfixs are software pathces that were applied to live i.e. still running systems. A hotfix is a single, cumulative package that includes one or more filfes that are used to address a problem in a software product.</p></blockquote>
<p><strong>Why shrinking of database is bad in SQL Server?</strong></p>
<blockquote><p>Shrinking a database increases fragmentation which causes performance problems.</p>
<p>I talked about how databases are like boxes being filled with content every day. As the box gets filled, the amount of free space decreases. But if you know that you will need to fill it up with more content, wouldn’t you go get a bigger box? Sadly, that’s not what we’re doing when we’re shrinking databases.</p>
<p>We’re basically throwing away the box with free space to replace it with a smaller box with just enough space to keep all of the existing content. Imagine what you would do to accomplish this task – empty the box of its contents, throw away the box, replace it with a smaller box and put the contents back in.</p></blockquote>
<p><strong>Can we install SQL Server using a configure file?</strong></p>
<blockquote><p>Yes: We can prepare a configuration file. While installing SQL Server the path to the configuration file is specified in the “Ready to Install” page in the configuration file path section.</p></blockquote>
<p><strong>Which Dynamic memory view is used to check memory usage by SQL Server?</strong></p>
<blockquote><p>We can use this view sys.dm_os_process_memory.</p></blockquote>
<p><strong>What do you know about the Lock Page in Memory?</strong></p>
<blockquote><p>Lock Pages in Memory is a setting that can be set on 64-bit operating systems that essentially tell Windows not to swap out SQL Server memory to disk. By default, this setting is turned off on 64-bit systems.</p></blockquote>
<p><strong>What do you know about the SQL Server Latches?</strong></p>
<ul>
<li>A latch is used to cordinate the physical execution of multiple threads within a database.</li>
<li>A latch is a lightweight synchronization object used by the Storage Engine to protect memory structures used internally by SQL Server. A latch is nothing more than a so-called Critical Section in multi-threaded programming.</li>
<li>For row-level locking it was very important to introduce a concept like latching, because otherwise it would give rise to phenomena like Lost Updates in memory.</li>
</ul>
<p><strong>What are the different types of Lathces in SQL Server?</strong></p>
<ul>
<li>IO Latches</li>
<li>Buffer Latches (BUF)</li>
<li>Non-Buffer Latches (Non-BUF)</li>
</ul>
<p><strong>Can DBA control or manage the SQL Server Latches?</strong></p>
<blockquote><p>No: It is not possible, It&#8217;s internally manage by the SQL Server. We can just check the different statuses of latches.</p></blockquote>
<p><strong>What is a User Database?</strong></p>
<blockquote><p>A user database is a database that we create to store data and start working with  the data.</p></blockquote>
<p><strong>Why is all of the memory allocated for SQL Server not shown in Windows Task Manager?</strong></p>
<blockquote><p>The&#8221; Mem Usage&#8221; column shows the amount of memory for the working se t. The working set of a process is the set of pages in the virtual address space of the process that are currently resident in physical memory.</p>
<p>To find out how much memory SQL Server has allocated through the AWE mechanism, you can use the sys.dm_os_memory_clerks DMV.</p></blockquote>
<p><strong>Which autogrowth database setting is good?</strong></p>
<blockquote><p>Setting an autogrowth in multiples of MB is a better option than setting autogrowth in percentage (%).</p></blockquote>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbrnd.com/2016/07/sql-server-database-administrator-interview-questions-and-answers-day-sql-profiler-authentication-mode-shrink-lock-page-latches-3/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
