<?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>question &#8211; Database Research &amp; Development</title>
	<atom:link href="https://www.dbrnd.com/tag/question/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>Wed, 08 Jun 2016 17:46:21 +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: Database Indexes Interview Questions and Answers (Day-1)</title>
		<link>https://www.dbrnd.com/2016/06/sql-server-database-indexes-interview-questions-and-answers-clustered-non-clustered-hash-filtered-full-text-index-day-1/</link>
					<comments>https://www.dbrnd.com/2016/06/sql-server-database-indexes-interview-questions-and-answers-clustered-non-clustered-hash-filtered-full-text-index-day-1/#comments</comments>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Wed, 08 Jun 2016 17:45:13 +0000</pubDate>
				<category><![CDATA[SQL Server Interview]]></category>
		<category><![CDATA[answer]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[clustered index]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[Filtered Index]]></category>
		<category><![CDATA[full text search index]]></category>
		<category><![CDATA[indexes]]></category>
		<category><![CDATA[interview]]></category>
		<category><![CDATA[non clustered index]]></category>
		<category><![CDATA[question]]></category>
		<category><![CDATA[spatial index]]></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[TSQL]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=2944</guid>

					<description><![CDATA[What is a Clustered Index? Clustered Index stores a key value in the same data or row page. It is attached with data rows. Clustered indexes sort and store the data rows in the table or view based on their key values. For example, each and every book has attached one page number on each [&#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%2F06%2Fsql-server-database-indexes-interview-questions-and-answers-clustered-non-clustered-hash-filtered-full-text-index-day-1%2F&amp;linkname=SQL%20Server%3A%20Database%20Indexes%20Interview%20Questions%20and%20Answers%20%28Day-1%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%2F06%2Fsql-server-database-indexes-interview-questions-and-answers-clustered-non-clustered-hash-filtered-full-text-index-day-1%2F&amp;linkname=SQL%20Server%3A%20Database%20Indexes%20Interview%20Questions%20and%20Answers%20%28Day-1%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%2F06%2Fsql-server-database-indexes-interview-questions-and-answers-clustered-non-clustered-hash-filtered-full-text-index-day-1%2F&amp;linkname=SQL%20Server%3A%20Database%20Indexes%20Interview%20Questions%20and%20Answers%20%28Day-1%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%2F06%2Fsql-server-database-indexes-interview-questions-and-answers-clustered-non-clustered-hash-filtered-full-text-index-day-1%2F&amp;linkname=SQL%20Server%3A%20Database%20Indexes%20Interview%20Questions%20and%20Answers%20%28Day-1%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%2F06%2Fsql-server-database-indexes-interview-questions-and-answers-clustered-non-clustered-hash-filtered-full-text-index-day-1%2F&amp;linkname=SQL%20Server%3A%20Database%20Indexes%20Interview%20Questions%20and%20Answers%20%28Day-1%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%2F06%2Fsql-server-database-indexes-interview-questions-and-answers-clustered-non-clustered-hash-filtered-full-text-index-day-1%2F&amp;linkname=SQL%20Server%3A%20Database%20Indexes%20Interview%20Questions%20and%20Answers%20%28Day-1%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%2F06%2Fsql-server-database-indexes-interview-questions-and-answers-clustered-non-clustered-hash-filtered-full-text-index-day-1%2F&#038;title=SQL%20Server%3A%20Database%20Indexes%20Interview%20Questions%20and%20Answers%20%28Day-1%29" data-a2a-url="https://www.dbrnd.com/2016/06/sql-server-database-indexes-interview-questions-and-answers-clustered-non-clustered-hash-filtered-full-text-index-day-1/" data-a2a-title="SQL Server: Database Indexes Interview Questions and Answers (Day-1)"></a></p><p><strong>What is a Clustered Index?</strong></p>
<blockquote><p>Clustered Index stores a key value in the same data or row page. It is attached with data rows.</p>
<p>Clustered indexes sort and store the data rows in the table or view based on their key values.</p>
<p>For example, each and every book has attached one page number on each page so this called clustered index of that book.</p></blockquote>
<p><strong>How many clustered indexes there can be in one table?</strong></p>
<blockquote><p>You can create only one clustered index.</p></blockquote>
<p><strong>What is a Non-clustered Index?</strong></p>
<blockquote><p>Nonclustered indexes have a structure separate from the data rows. A nonclustered index contains the nonclustered index key values and each key value entry has a pointer to the data row that contains the key value.</p>
<p>The pointer from an index row in a nonclustered index to a data row is called a row locator. The structure of the row locator depends on whether the data pages are stored in a heap or a clustered table. For a heap, a row locator is a pointer to the row. For a clustered table, the row locator is the clustered index key.</p>
<p>You can add nonkey columns to the leaf level of the nonclustered index to by-pass existing index key limits, 900 bytes and 16 key columns, and execute fully covered, indexed, queries.</p></blockquote>
<p><strong>Can you make non-clustered indexes as unique index?</strong></p>
<blockquote><p>Yes, you can create unique non-clustered index in which no two rows can have the same value for the index key.</p></blockquote>
<p><strong>What is a Hash Index?</strong></p>
<blockquote><p>With a hash index, data is accessed through an in-memory hash table. Hash indexes consume a fixed amount of memory, which is a function of the bucket count.</p>
<p>hash indexes are used is because hash tables are extremely efficient when it comes to just looking up values. So, queries that compare for equality to a string can retrieve values very fast if they use a hash index.</p></blockquote>
<p><strong>What is the main disadvantage of the Hash Index?</strong></p>
<blockquote><p>Hash tables are not sorted data structures, and there are many types of queries which hash indexes can not even help with.</p>
<p>For instance, suppose you want to find out all of the employees who are less than 40 years old. How could you do that with a hash table index? Well, it’s not possible because a hash table is only good for looking up key value pairs – which means queries that check for equality condition.</p></blockquote>
<p><strong>What is a Unique Index?</strong></p>
<blockquote><p>A unique index ensures that the index key contains no duplicate values and therefore every row in the table or view is in some way unique.</p>
<p>Uniqueness can be a property of both clustered and nonclustered indexes.</p></blockquote>
<p><strong>Why CLUSTERED INDEX is a Special Index in the SQL Server?</strong></p>
<blockquote><p>The clustered index in any table has special uses and significance. This index is the data itself, and it will be used in every nonclustered index in the table. If you are defining a new clustered index or changing a clustered index, SQL Server will need to do IO on every nonclustered index on the table as well.</p></blockquote>
<p><strong>T-SQL Script to create a CLUSTERED INDEX.</strong></p><pre class="crayon-plain-tag">CREATE CLUSTERED INDEX Index_Name ON Schema.TableName(Column);</pre><p>
<strong>T-SQL Script to create a NONCLUSTERED INDEX.</strong></p><pre class="crayon-plain-tag">CREATE NONCLUSTERED INDEX Index_Name ON Schema.TableName(Column);</pre><p>
<strong>T-SQL Script to create a NONCLUSTERED INDEX with covered nonkey columns.</strong></p><pre class="crayon-plain-tag">CREATE NONCLUSTERED INDEX Index_Name ON Schema.TableName(Column) INCLUDE (ColumnA, ColumnB);</pre><p>
<strong>What is a Filtered Index?</strong></p>
<blockquote><p>An optimized nonclustered index, especially suited to cover queries that select from a well-defined subset of data. It uses a filter predicate to index a portion of rows in the table. A well-designed filtered index can improve query performance, reduce index maintenance costs, and reduce index storage costs compared with full-table indexes.</p></blockquote>
<p><strong>What is a Full-text Index?</strong></p>
<blockquote><p>A special type of token-based functional index that is built and maintained by the Microsoft Full-Text Engine for SQL Server. It provides efficient support for sophisticated word searches in character string data.</p></blockquote>
<p><strong>What is a Spatial Index?</strong></p>
<blockquote><p>A spatial index provides the ability to perform certain operations more efficiently on spatial objects (spatial data) in a column of the geometry data type. The spatial index reduces the number of objects on which relatively costly spatial operations need to be applied.</p></blockquote>
<p><strong>What are Covering Indexes and Covered Queries in SQL Server?</strong></p>
<blockquote><p>If all the columns requested in the select list of query, are available in the index, then the query engine doesn&#8217;t have to lookup the table again which can significantly increase the performance of the query. Since all the requested columns are available with in the index, the index is covering the query. So, the query is called a covering query and the index is a covering index.</p>
<p>A clustered index can always cover a query, if the columns in the select list are from the same table.</p></blockquote>
<p><strong>How Indexes are used by the Query Optimizer?</strong></p>
<blockquote><p>Well-designed indexes can reduce disk I/O operations and consume fewer system resources therefore improving query performance. Indexes can be helpful for a variety of queries that contain SELECT, UPDATE, DELETE, or MERGE statements.</p>
<p>When the query optimizer uses an index, it searches the index key columns, finds the storage location of the rows needed by the query and extracts the matching rows from that location. Generally, searching the index is much faster than searching the table because unlike a table, an index frequently contains very few columns per row and the rows are in sorted order.</p></blockquote>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbrnd.com/2016/06/sql-server-database-indexes-interview-questions-and-answers-clustered-non-clustered-hash-filtered-full-text-index-day-1/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title>SQL Server: Internal Storage and Memory Architecture Interview Questions and Answers (Day-2)</title>
		<link>https://www.dbrnd.com/2016/05/sql-server-internal-storage-and-memory-architecture-interview-questions-and-answers-day-2/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Thu, 26 May 2016 17:34:55 +0000</pubDate>
				<category><![CDATA[SQL Server Interview]]></category>
		<category><![CDATA[answers]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[Architecture]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[Interviews]]></category>
		<category><![CDATA[memory]]></category>
		<category><![CDATA[page]]></category>
		<category><![CDATA[question]]></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[transaction]]></category>
		<category><![CDATA[TSQL]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=2886</guid>

					<description><![CDATA[What is an Active Log? The section of the log file from the MinLSN to the last-written log record is called the active portion of the log, or the active log. This is the section of the log required to do a full recovery of the database. No part of the active log can ever [&#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%2F05%2Fsql-server-internal-storage-and-memory-architecture-interview-questions-and-answers-day-2%2F&amp;linkname=SQL%20Server%3A%20Internal%20Storage%20and%20Memory%20Architecture%20Interview%20Questions%20and%20Answers%20%28Day-2%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%2F05%2Fsql-server-internal-storage-and-memory-architecture-interview-questions-and-answers-day-2%2F&amp;linkname=SQL%20Server%3A%20Internal%20Storage%20and%20Memory%20Architecture%20Interview%20Questions%20and%20Answers%20%28Day-2%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%2F05%2Fsql-server-internal-storage-and-memory-architecture-interview-questions-and-answers-day-2%2F&amp;linkname=SQL%20Server%3A%20Internal%20Storage%20and%20Memory%20Architecture%20Interview%20Questions%20and%20Answers%20%28Day-2%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%2F05%2Fsql-server-internal-storage-and-memory-architecture-interview-questions-and-answers-day-2%2F&amp;linkname=SQL%20Server%3A%20Internal%20Storage%20and%20Memory%20Architecture%20Interview%20Questions%20and%20Answers%20%28Day-2%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%2F05%2Fsql-server-internal-storage-and-memory-architecture-interview-questions-and-answers-day-2%2F&amp;linkname=SQL%20Server%3A%20Internal%20Storage%20and%20Memory%20Architecture%20Interview%20Questions%20and%20Answers%20%28Day-2%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%2F05%2Fsql-server-internal-storage-and-memory-architecture-interview-questions-and-answers-day-2%2F&amp;linkname=SQL%20Server%3A%20Internal%20Storage%20and%20Memory%20Architecture%20Interview%20Questions%20and%20Answers%20%28Day-2%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%2F05%2Fsql-server-internal-storage-and-memory-architecture-interview-questions-and-answers-day-2%2F&#038;title=SQL%20Server%3A%20Internal%20Storage%20and%20Memory%20Architecture%20Interview%20Questions%20and%20Answers%20%28Day-2%29" data-a2a-url="https://www.dbrnd.com/2016/05/sql-server-internal-storage-and-memory-architecture-interview-questions-and-answers-day-2/" data-a2a-title="SQL Server: Internal Storage and Memory Architecture Interview Questions and Answers (Day-2)"></a></p><p><strong>What is an Active Log?</strong></p>
<blockquote><p>The section of the log file from the MinLSN to the last-written log record is called the active portion of the log, or the active log. This is the section of the log required to do a full recovery of the database. No part of the active log can ever be truncated. All log records must be truncated from the parts of the log before the MinLSN.</p></blockquote>
<p><strong>What is “Write Ahead Transaction Log”?</strong></p>
<blockquote><p>SQL Server uses a write-ahead log (WAL), which guarantees that no data modifications are written to disk before the associated log record is written to disk.</p>
<p>Data modifications are not made directly to disk, but are made to the copy of the page in the buffer cache. The modification is not written to disk until a checkpoint occurs in the database.</p></blockquote>
<p><strong>What is a Clustered table?</strong></p>
<blockquote><p>Clustered tables are tables that have a clustered index. The data rows are stored in order based on the clustered index key.</p></blockquote>
<p><strong>What is a Heap Table?</strong></p>
<blockquote><p>Heaps are tables that have no clustered index. The data rows are not stored in any particular order, and there is no particular order to the sequence of the data pages.</p></blockquote>
<p><strong>What is a Worktables?</strong></p>
<blockquote><p>The relational engine may need to build a worktable to perform a logical operation specified in an SQL statement. Worktables are internal tables that are used to hold intermediate results. Worktables are generated for certain GROUP BY, ORDER BY, or UNION queries.</p></blockquote>
<p><strong>What is a COMPATIBILITY_LEVEL option of the Database?</strong></p>
<blockquote><p>This lets SQL Server know with which version of SQL Server to make the database compatible.</p></blockquote>
<p><strong>What is AUTO_SHRINK option of the Database?</strong></p>
<blockquote><p>This option either turns on or off the feature that will automatically shrink your database files when free space is available. In almost all cases, this should be set to OFF.</p></blockquote>
<p><strong>What is AUTO_UPDATE_STATISTICS option of the Database?</strong></p>
<blockquote><p>When turned ON, as it should be in most cases, the optimizer will automatically keep statistics updated, in response to data modications.</p></blockquote>
<p><strong>What is READ_WRITE option of the Database?</strong></p>
<blockquote><p>This is the default option and the one to use if you want users to be able to update the database. We could also set the database to READ_ONLY to prevent any users making updates to the database.</p></blockquote>
<p><strong>What is Lazy writer?</strong></p>
<blockquote><p>Lazy writer can adjust the number of buffers in the buffer pool if dynamic memory management is enabled. The lazy writer is a system process that keeps free buffers available by removing infrequently used pages from the buffer cache.</p>
<p>Ensure that a specified number of buffers are free in the Buffer Pool so they can be allocated for use by the server.</p></blockquote>
<p><strong>How you explicitly recompile your execution plan?</strong></p>
<ul>
<li>You can use sp_recompile to explicitly recompile your execution plan.</li>
<li>You can also use WITH RECOMPILE to recompile the stored procedure.</li>
</ul>
<p><strong>What is buffer pool?</strong></p>
<blockquote><p>SQL Server builds a buffer pool in memory to hold pages read from the database. You can minimize physical I/O to the database files by maximizing the size of the buffer pool.</p></blockquote>
<p><strong>What is a query wait option?</strong></p>
<blockquote><p>Use the query wait option to specify the time in seconds (from 0 through 2147483647) that a query waits for resources before timing out. If the default value of -1 is used, or if –1 is specified, then the time-out is calculated as 25 times of the estimated query cost.</p>
<p>You can change query wait value using sp_configure.</p></blockquote>
<p><strong>How SQL Server executes a single SELECT statement?</strong></p>
<ul>
<li>The parser scans the SELECT statement and breaks it into logical units such as keywords, expressions, operators, and identifiers.</li>
<li>A query tree, sometimes referred to as a sequence tree, is built describing the logical steps needed to transform the source data into the format required by the result set.</li>
<li>The query optimizer analyzes different ways the source tables can be accessed and create an optimized version of the query tree is called the execution plan.</li>
<li>The relational engine starts executing the execution plan.</li>
<li>The relational engine processes the data and returns the result set to the client.</li>
</ul>
<p><strong>What is Query Plan?</strong></p>
<blockquote><p>The bulk of the execution plan is a re-entrant, read-only data structure used by any number of users. This is referred to as the query plan. No user context is stored in the query plan. There are never more than one or two copies of the query plan in memory.</p></blockquote>
<p><strong>What is Execution Context?</strong></p>
<blockquote><p>Each user that is currently executing the query has a data structure that holds the data specific to their execution, such as parameter values. This data structure is referred to as the execution context.</p></blockquote>
<p><strong>How SQL Server uses procedure cache?</strong></p>
<blockquote><p>When any SQL statement is executed, it first looks through the procedure cache to verify that an existing execution plan for the same SQL statement exists.</p>
<p>It reuses any existing plan it finds, saving the overhead of recompiling the SQL statement</p></blockquote>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>SQL Server: Database Backup &#038; Restore Interview Questions and Answers (Day-4)</title>
		<link>https://www.dbrnd.com/2016/05/sql-server-database-backup-restore-interview-questions-and-answers-day-4/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Sat, 21 May 2016 19:35:44 +0000</pubDate>
				<category><![CDATA[SQL Server Interview]]></category>
		<category><![CDATA[answer]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[interview]]></category>
		<category><![CDATA[question]]></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[TSQL]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=2859</guid>

					<description><![CDATA[What is a BACKUP WITH FORMAT option? BACKUP WITH FORMAT option tells SQL Server whether or not to overwrite the media header information. The FORMAT option will erase any information in a backup set that already exists when the backup is initialized. What is a BACKUP WITH SKIP option? Using the SKIP parameter will cause [&#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%2F05%2Fsql-server-database-backup-restore-interview-questions-and-answers-day-4%2F&amp;linkname=SQL%20Server%3A%20Database%20Backup%20%26%20Restore%20Interview%20Questions%20and%20Answers%20%28Day-4%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%2F05%2Fsql-server-database-backup-restore-interview-questions-and-answers-day-4%2F&amp;linkname=SQL%20Server%3A%20Database%20Backup%20%26%20Restore%20Interview%20Questions%20and%20Answers%20%28Day-4%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%2F05%2Fsql-server-database-backup-restore-interview-questions-and-answers-day-4%2F&amp;linkname=SQL%20Server%3A%20Database%20Backup%20%26%20Restore%20Interview%20Questions%20and%20Answers%20%28Day-4%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%2F05%2Fsql-server-database-backup-restore-interview-questions-and-answers-day-4%2F&amp;linkname=SQL%20Server%3A%20Database%20Backup%20%26%20Restore%20Interview%20Questions%20and%20Answers%20%28Day-4%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%2F05%2Fsql-server-database-backup-restore-interview-questions-and-answers-day-4%2F&amp;linkname=SQL%20Server%3A%20Database%20Backup%20%26%20Restore%20Interview%20Questions%20and%20Answers%20%28Day-4%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%2F05%2Fsql-server-database-backup-restore-interview-questions-and-answers-day-4%2F&amp;linkname=SQL%20Server%3A%20Database%20Backup%20%26%20Restore%20Interview%20Questions%20and%20Answers%20%28Day-4%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%2F05%2Fsql-server-database-backup-restore-interview-questions-and-answers-day-4%2F&#038;title=SQL%20Server%3A%20Database%20Backup%20%26%20Restore%20Interview%20Questions%20and%20Answers%20%28Day-4%29" data-a2a-url="https://www.dbrnd.com/2016/05/sql-server-database-backup-restore-interview-questions-and-answers-day-4/" data-a2a-title="SQL Server: Database Backup &amp; Restore Interview Questions and Answers (Day-4)"></a></p><p><strong>What is a BACKUP WITH FORMAT option?</strong></p>
<blockquote><p>BACKUP WITH FORMAT option tells SQL Server whether or not to overwrite the media header information. The FORMAT option will erase any information in a backup set that already exists when the backup is initialized.</p></blockquote>
<p><strong>What is a BACKUP WITH SKIP option?</strong></p>
<blockquote><p>Using the SKIP parameter will cause SQL Server to skip the expiration check that it normally does on the backup set. It doesn’t care if any backups existing in the backup set have been marked for availability to be overwritten.</p></blockquote>
<p><strong>What is BACKUP WITH CHECKSUM option?</strong></p>
<blockquote><p>When generating a backup checksum, BACKUP verifies that the data read from the database is consistent with any checksum or torn-page indication that is present in the database.</p>
<p>When creating a backup checksum, a backup operation does not add any checksums to pages. Pages are backed up as they exist in the database, and the pages are unmodified by backup.</p></blockquote>
<p><strong>How many copies are allowed when taking a backup using MIRROR Backup option?</strong></p>
<blockquote><p>Three copies are allowed in a Mirror backup apart from the original copy.</p></blockquote>
<p><strong>What is MAXTRANSFERSIZE option in Backup database command?</strong></p>
<blockquote><p>MAXTRANSFERSIZE : specifies the largest unit of transfer in bytes to be used between SQL Server and the backup media. The possible values are multiples of 64 KB ranging up to 4194304 bytes (4 MB).  The default is 1 MB.</p></blockquote>
<p><strong>What is BUFFERCOUNT option in Backup database command?</strong></p>
<blockquote><p>BUFFERCOUNT specifies the total number of I/O buffers to be used for the backup operation.   The total space that will be used by the buffers is determined by: buffercount * maxtransfersize.</p></blockquote>
<p><strong>What is Windows Azure Blob storage service Database backups?</strong></p>
<blockquote><p>SQL Server 2012 SP1 CU2, enables SQL Server backup and restore directly to the Windows Azure Blob service. Backup to cloud offers benefits such as availability, limitless geo-replicated off-site storage, and ease of migration of data to and from the cloud.</p></blockquote>
<p><strong>What are the Benefits with Windows Azure Blob storage service?</strong></p>
<blockquote><p>Flexible, reliable, and limitless off-site storage: Storing your backups on Windows Azure Blob service can be a convenient, flexible, and easy to access off-site option.</p>
<p>No overhead of hardware management</p>
<p>Cost Benefits: Pay only for the service that is used. Can be cost-effective as an off-site and backup archive option.</p></blockquote>
<p><strong>What is the Difference between WITH RECOVERY and WITH NORECOVERY parameter?</strong></p>
<blockquote><p>The RECOVERY command requests the current RESTORE to roll back all uncommitted transactions.  When all uncommitted transactions are rolled back the database is placed into a ready state. The database is ready to use.</p>
<p>NORECOVERY allows the Database Administrator to restore additional backup files such as Differential or Transactional backups. While the database is in this state then users are not able to connect or access this database.</p></blockquote>
<p><strong>What is a Disaster Recovery?</strong></p>
<blockquote><p>Disaster recovery is a process that you can use to help recover information systems and data, if a disaster occurs.</p>
<p>Some examples of disasters include a natural or a man-made disaster such as a fire, or a technical disaster such as a two-disk failure in a Redundant Array of Independent Disks (RAID) 5 array.</p></blockquote>
<p><strong>What are your strategies to recover data when the disaster occur?</strong></p>
<ul>
<li>Failover Clustering</li>
<li>AlwaysOn Avaliability</li>
<li>Database Mirroring</li>
<li>Transaction Replication</li>
<li>Log Shipping</li>
<li>Strong backup strategies</li>
<li>Virtual Machine Replication</li>
</ul>
<p><strong>Before designing a backup strategy, what should be your questions?</strong></p>
<ul>
<li>How many hours a day do applications have to access the database?</li>
<li>How frequently are changes and updates likely to occur?</li>
<li>Are changes likely to occur in only a small part of the database or in a large part of the database?</li>
<li>How much disk space will a full database backup require?</li>
</ul>
<p><strong>Can you encrypt data while creating a backup?</strong></p>
<blockquote><p>Starting in SQL Server 2014, SQL Server has the ability to encrypt the data while creating a backup. By specifying the encryption algorithm and the encryptor (a Certificate or Asymmetric Key) when creating a backup, you can create an encrypted backup file.</p></blockquote>
<p><strong>What is Partial Backups?</strong></p>
<blockquote><p>Partial backups are designed for use under the simple recovery model to improve flexibility for backing up very large databases that contain one or more read-only filegroups.</p>
<p>Partial backups are useful whenever you want to exclude read-only filegroups. A partial backup resembles a full database backup, but a partial backup does not contain all the filegroups.</p></blockquote>
<p><strong>Why can&#8217;t I just backup SQL Server&#8217;s data files with my Windows backup tool?</strong></p>
<blockquote><p>SQL Server is not like a word processing application. It manages its own files internally in order to guarantee the ACID (Atomic, Consistent, Isolated, Durable) properties of its databases.</p>
<p>If you simply copy the data file, ignoring the locks and ignoring the transactions that may be currently in progress, it means that when you attempt to attach that database later you will have a database file that is in an inconsistent state. It will generate errors.</p></blockquote>
<p><strong>It is only a small database. Why can&#8217;t I just write every table to disk to back it up?</strong></p>
<blockquote><p>Yes, you can use a tool like SQLCMD to write the tables to flat file but then, instead of a straightforward, single statement to restore the database, you will need a whole series of commands.</p></blockquote>
<p><strong>Can someone change the contents of a backup?</strong></p>
<blockquote><p>There is no direct way to modify the contents of a backup file. Since the backup is a page-by-page copy of the database.</p>
<p>When SQL Server reads each page, during the restore, it will calculate a checksum, based on its contents, and compare it to the value when it read the page during the backup. If someone did manage to change the data within the backup, these values won&#8217;t match and SQL Server will flag the page as corrupt.</p></blockquote>
<p><strong>What is Piecemeal Restores?</strong></p>
<blockquote><p>Piecemeal restore allows databases that contain multiple filegroups to be restored and recovered in stages. Piecemeal restore involves a series of restore sequences, starting with the primary filegroup and, in some cases, one or more secondary filegroups. Piecemeal restore maintains checks to ensure that the database will be consistent in the end.</p></blockquote>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
