<?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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Journey to SQL Authority with Pinal Dave &#187; SQL Data Storage</title>
	<atom:link href="http://blog.sqlauthority.com/category/sql-data-storage/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com</link>
	<description>Notes of a SQL Server MVP and Database Administrator</description>
	<lastBuildDate>Sat, 21 Nov 2009 01:30:19 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='blog.sqlauthority.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/08e35387c05b61340e885b1763a69d9f?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Journey to SQL Authority with Pinal Dave &#187; SQL Data Storage</title>
		<link>http://blog.sqlauthority.com</link>
	</image>
			<item>
		<title>SQLAuthority News &#8211; Data Compression Strategy Capacity Planning and Best Practices</title>
		<link>http://blog.sqlauthority.com/2009/11/07/sqlauthority-news-data-compression-strategy-capacity-planning-and-best-practices/</link>
		<comments>http://blog.sqlauthority.com/2009/11/07/sqlauthority-news-data-compression-strategy-capacity-planning-and-best-practices/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 01:30:34 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Data Storage]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[SQL White Papers]]></category>
		<category><![CDATA[SQLAuthority News]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Compression]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7162</guid>
		<description><![CDATA[The data compression feature in SQL Server 2008 helps compress the data inside a database, and it can help reduce the size of the database. Apart from the space savings, data compression provides another benefit: Because compressed data is stored in fewer pages, queries need to read fewer pages from the disk, thereby improving the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=7162&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;">The data compression feature in SQL Server 2008 helps compress the data inside a database, and it can help reduce the size of the database. Apart from the space savings, data compression provides another benefit: Because compressed data is stored in fewer pages, queries need to read fewer pages from the disk, thereby improving the performance of I/O intensive workloads. However, extra CPU resources are required on the database server to compress and decompress the data, while data is exchanged with the application. Therefore, it is important to understand the workload characteristics when deciding which tables to compress.</p>
<p style="text-align:justify;">This white paper provides guidance on the following:</p>
<ul style="text-align:justify;">
<li>How to decide which tables and indexes to compress</li>
<li>How to estimate the resources required to compress a      table</li>
<li>How to reclaim space released by data compression</li>
<li>The performance impacts of data compression on      typical workloads</li>
</ul>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/datatde.jpg" alt="" width="598" height="293" /></p>
<p style="text-align:justify;"><strong><a href="http://technet.microsoft.com/en-us/library/dd894051.aspx" target="_blank">Read Whitepaper: Data Compression Strategy Capacity Planning and Best Practices</a></strong></p>
<p style="text-align:justify;">Reference: <strong>Pinal Dave (</strong><a href="http://blog.sqlauthority.com/" target="_blank"><strong>http://blog.SQLAuthority.com</strong></a><strong>)</strong></p>
Posted in Pinal Dave, SQL, SQL Authority, SQL Data Storage, SQL Query, SQL Server, SQL Tips and Tricks, SQL White Papers, SQLAuthority News, T SQL, Technology Tagged: Compression <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/7162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/7162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/7162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/7162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/7162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/7162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/7162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/7162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/7162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/7162/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=7162&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/11/07/sqlauthority-news-data-compression-strategy-capacity-planning-and-best-practices/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>

		<media:content url="http://www.pinaldave.com/bimg/datatde.jpg" medium="image" />
	</item>
		<item>
		<title>SQL SERVER &#8211; Mirrored Backup and Restore and Split File Backup</title>
		<link>http://blog.sqlauthority.com/2009/09/02/sql-server-mirrored-backup-and-restore-and-split-file-backup-2/</link>
		<comments>http://blog.sqlauthority.com/2009/09/02/sql-server-mirrored-backup-and-restore-and-split-file-backup-2/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 01:30:16 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Backup and Restore]]></category>
		<category><![CDATA[SQL Data Storage]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Scripts]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[SQLServer]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=6660</guid>
		<description><![CDATA[Introduction
This article is based on a real life experience of the author while working with database backup and restore during his consultancy work for various organizations. We will go over the following important concepts of database backup and restore.

Conventional Backup and Restore
Spilt File Backup and Restore
Mirror File Backup
Understanding FORMAT Clause
Miscellaneous details about Backup and Restore

Note: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=6660&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><h3 style="text-align:justify;">Introduction</h3>
<p style="text-align:justify;">This article is based on a real life experience of the author while working with database backup and restore during his consultancy work for various organizations. We will go over the following important concepts of database backup and restore.</p>
<ol style="text-align:justify;">
<li>Conventional Backup and Restore</li>
<li>Spilt File Backup and Restore</li>
<li>Mirror File Backup</li>
<li>Understanding FORMAT Clause</li>
<li>Miscellaneous details about Backup and Restore</li>
</ol>
<div style="text-align:justify;"><strong>Note: </strong>Before running all the examples, make sure that you have the required folders created on your drive. It is mandatory to create Backup folders prior to creating backup files using SQL Server.</div>
<p style="text-align:justify;">In our example, we will require the following folders:</p>
<ul style="text-align:justify;">
<li>C:\Backup\SingleFile</li>
<li>C:\Backup\MultiFile</li>
<li>C:\Backup\MirrorFile</li>
</ul>
<h3 style="text-align:justify;">Conventional and Split File Backup and Restore</h3>
<p style="text-align:justify;">Just a day before working on one of the projects, I had to take a backup of one database of 14 GB. My hard drive lacked sufficient space at that moment. Fortunately, I had two 8 GB USB Drives with me. Now, the question was how to take a backup in two equal sizes, each of 7 GB, so I can fit them on each USB drive. Well, conventional backup takes one large backup in one file. However, SQL Server backup command can take backups in two or more split parts.</p>
<p style="text-align:justify;">Let us see an example of a conventional one-file backup using the AdventureWorks database.</p>
<div id="highlighter_735873" style="text-align:justify;"><code style="font-size:12px;"><span style="color:blue;">BACKUP DATABASE </span><span style="color:black;">AdventureWorks<br />
</span><span style="color:blue;">TO DISK = </span><span style="color:red;">'C:\Backup\SingleFile\AdventureWorks.bak'<br />
</span><span style="color:black;">GO </span></code></div>
<p style="text-align:justify;">The result is displayed below. Here, the backup is taken in a single file.</p>
<p style="text-align:justify;"><img src="http://www.pinaldave.com/bimg/sqlmirror/sql-mirrored-backup1.jpg" alt="" /></p>
<p style="text-align:justify;">Now, let us see how we can split one database into two different database files. This method is very similar to taking a single-file backup. By simply adding an additional DISK option we can split the files backup files.</p>
<div id="highlighter_539944" style="text-align:justify;"><code style="font-size:12px;"><span style="color:blue;">BACKUP DATABASE </span><span style="color:black;">AdventureWorks<br />
</span><span style="color:blue;">TO DISK = </span><span style="color:red;">'C:\Backup\MultiFile\AdventureWorks1.bak'</span><span style="color:gray;">,<br />
</span><span style="color:blue;">DISK = </span><span style="color:red;">'C:\Backup\MultiFile\AdventureWorks2.bak'</span><span style="color:gray;">,<br />
</span><span style="color:blue;">DISK = </span><span style="color:red;">'C:\Backup\MultiFile\AdventureWorks3.bak'<br />
</span><span style="color:black;">GO<br />
</span></code></div>
<p style="text-align:justify;">In the previous example, we can clearly see that backup is split into three equal parts of the original backup file size.</p>
<p style="text-align:justify;"><img src="http://www.pinaldave.com/bimg/sqlmirror/sql-mirrored-backup2.jpg" alt="" /></p>
<p style="text-align:justify;">Restoring a backup from a single-file backup is quite easy. Let us go over an example where we restore the AdventureWorks database from a single backup file.</p>
<div id="highlighter_977297" style="text-align:justify;"><code style="font-size:12px;"><span style="color:blue;">RESTORE DATABASE </span><span style="color:black;">AdventureWorks<br />
</span><span style="color:blue;">FROM DISK = </span><span style="color:red;">'C:\Backup\SingleFile\AdventureWorks.bak'<br />
</span><span style="color:black;">GO<br />
</span></code></div>
<p style="text-align:justify;">Running the above script will give a successful message.</p>
<p style="text-align:justify;"><img src="http://www.pinaldave.com/bimg/sqlmirror/sql-mirrored-backup3.jpg" alt="" /></p>
<p style="text-align:justify;">Now let us see an example where we restore a database from a split file. This method is very similar to restoring a database from a single file; just add an additional DISK option.</p>
<div id="highlighter_737278" style="text-align:justify;"><code style="font-size:12px;"><span style="color:blue;">RESTORE DATABASE </span><span style="color:black;">[AdventureWorks]<br />
</span><span style="color:blue;">FROM DISK = </span><span style="color:red;">N'C:\Backup\MultiFile\AdventureWorks1.bak'</span><span style="color:gray;">,<br />
</span><span style="color:blue;">DISK = </span><span style="color:red;">N'C:\Backup\MultiFile\AdventureWorks2.bak'</span><span style="color:gray;">,<br />
</span><span style="color:blue;">DISK = </span><span style="color:red;">N'C:\Backup\MultiFile\AdventureWorks3.bak'<br />
</span><span style="color:black;">GO </span></code></div>
<p style="text-align:justify;">Running the above script will give a successful message as shown in the image below.</p>
<p style="text-align:justify;"><img src="http://www.pinaldave.com/bimg/sqlmirror/sql-mirrored-backup4.jpg" alt="" /></p>
<p style="text-align:justify;">Make sure that while restoring database, the database is not in use, otherwise it will give an error of database in use. In the event of an error taking place, close all the connections and re-attempt to restore the database.</p>
<h3 style="text-align:justify;">Mirror Backup of the file</h3>
<p style="text-align:justify;">It is quite a common practice to create an exact copy of the backup and store it to several places to deal with any catastrophes which might affect the place where the database is stored. Once a full backup is accomplished DBAs generally copy the database to another location in their network using a third party tools like <em>robocopy </em> or native DOS commands like xcopy.</p>
<p style="text-align:justify;">In SQL Server 2005 and later versions, there is a Mirror command that makes a copy of the database backup to different locations while taking the original backup. The maximum limit of additional locations that can be specified with MIRROR clause is 3.</p>
<p style="text-align:justify;">Mirrored backup can be taken in local computer system as well as in a local network. Let us now see two examples of mirror backup.</p>
<h4 style="text-align:justify;">Example 1. Single File Backup to Multiple Locations using Mirror</h4>
<div id="highlighter_236370" style="text-align:justify;"><code style="font-size:12px;"><span style="color:blue;">BACKUP DATABASE </span><span style="color:black;">AdventureWorks<br />
</span><span style="color:blue;">TO DISK = </span><span style="color:red;">'C:\Backup\SingleFile\AdventureWorks.bak'<br />
</span><span style="color:black;">MIRROR </span><span style="color:blue;">TO DISK = </span><span style="color:red;">'C:\Backup\MirrorFile\AdventureWorks.bak'<br />
</span><span style="color:blue;">WITH </span><span style="color:black;">FORMAT<br />
GO<br />
</span></code></div>
<p style="text-align:justify;">If this command is being run for the first time, it is mandatory to use the <code>WITH FORMAT </code> clause; but for sub sequential runs it is not required. <code>WITH FORMAT </code> reinitializes the backup.</p>
<p style="text-align:justify;"><img src="http://www.pinaldave.com/bimg/sqlmirror/sql-mirrored-backup5.jpg" alt="" /></p>
<p style="text-align:justify;">When checked in both the folders ‘SingleFile’ and ‘MirrorFile’, backup files are exactly the same files. As mentioned earlier, four mirror backup can be specified in total.</p>
<h4 style="text-align:justify;">Example 2. Split File Backup to Multiple Locations using Mirror</h4>
<p style="text-align:justify;">We have earlier seen an example where we can have multiple split files of large database backup files. SQL Server Mirror functionality also supports backup of the split files.</p>
<div id="highlighter_897158" style="text-align:justify;"><code style="font-size:12px;"><span style="color:blue;">BACKUP DATABASE </span><span style="color:black;">AdventureWorks<br />
</span><span style="color:blue;">TO DISK = </span><span style="color:red;">'C:\Backup\MultiFile\AdventureWorks1.bak'</span><span style="color:gray;">,<br />
</span><span style="color:blue;">DISK = </span><span style="color:red;">'C:\Backup\MultiFile\AdventureWorks2.bak'</span><span style="color:gray;">,<br />
</span><span style="color:blue;">DISK = </span><span style="color:red;">'C:\Backup\MultiFile\AdventureWorks3.bak'<br />
</span><span style="color:black;">MIRROR </span><span style="color:blue;">TO DISK = </span><span style="color:red;">'C:\Backup\MirrorFile\AdventureWorks1.bak'</span><span style="color:gray;">,<br />
</span><span style="color:blue;">DISK = </span><span style="color:red;">'C:\Backup\MirrorFile\AdventureWorks2.bak'</span><span style="color:gray;">,<br />
</span><span style="color:blue;">DISK = </span><span style="color:red;">'C:\Backup\MirrorFile\AdventureWorks3.bak'<br />
</span><span style="color:blue;">WITH </span><span style="color:black;">FORMAT<br />
GO<br />
</span></code></div>
<p style="text-align:justify;">All the mirror sets will need the same number of <code>DISK </code> clauses as the original backup media.</p>
<p style="text-align:justify;"><img src="http://www.pinaldave.com/bimg/sqlmirror/sql-mirrored-backup6.jpg" alt="" /></p>
<p style="text-align:justify;">Mirrored database backup can be restored using the same method as the original backup. Mirrored backup is in fact an exact replica of the original backup.</p>
<h3 style="text-align:justify;">Understanding the FORMAT Clause</h3>
<p style="text-align:justify;">The <code>FORMAT </code> clause is used to reinitiate a backup media. Although it is a very useful clause it should be used with caution. When the clause is used it erases everything present in backup media. I have noticed that some DBAs are confused while taking a backup on a local disk where they have SQL Server installed. They have a misconception that if the format command is used, it will erase the complete disk including the SQL Server installation. However, the fact is that SQL Server format clause is quite different from OS format. The effect of SQL Server format clause is limited to a folder or path specified in the <code>DISK </code> clause.</p>
<p style="text-align:justify;">In our example, when the <code>FORMAT </code> clause is specified, it will format only folders like C:\Backup\MultiFile\ or C:\Backup\SingleFile.</p>
<h3 style="text-align:justify;">Related Errors</h3>
<h4 style="text-align:justify;"><strong><span style="color:#ff0000;">Error 3010<em><br />
Invalid backup mirror specification. All mirrors must have the same number of members.</em></span></strong></h4>
<p style="text-align:justify;">This error can show up while taking a mirrored database backup along with a regular backup; and <code>DISK </code> and <code>MIRROR TO DISK </code> do not match accurately.</p>
<p style="text-align:justify;">The following image demonstrates how the error takes place.</p>
<p style="text-align:justify;"><img src="http://www.pinaldave.com/bimg/sqlmirror/sql-mirrored-backup7.jpg" alt="" /></p>
<p style="text-align:justify;">To fix the error, match the members of <code>DISK </code> and <code>MIRROR TO DISK </code> to each other.</p>
<p style="text-align:justify;"><img src="http://www.pinaldave.com/bimg/sqlmirror/sql-mirrored-backup8.jpg" alt="" /></p>
<h4 style="text-align:justify;"><span style="color:#ff0000;">Error 3215<em><br />
Use WITH FORMAT to create a new mirrored backup set</em></span></h4>
<p style="text-align:justify;">This error can spring up when a new backup is initiated and an existing media header needs to be reset for all headers on the backup media. If there is already a backup on the media, it will display this error and prevent backup from being overwritten. To fix this error, use <code>WITH FORMAT </code> as shown in an earlier example.</p>
<h3 style="text-align:justify;">Miscellaneous details about Backup and Restore</h3>
<p style="text-align:justify;">When no options are specified, <code>BACKUP DATABASE </code> takes only full backups. Before taking the first log backup, full database backup is necessary to take one full backup. Backups created on later versions of SQL Server cannot be restored to earlier versions of SQL Server. The user needs permissions of <code>sysadmin </code> or <code>db_owner </code> or <code>db_backupoperator </code> roles to perform backup operation.</p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (</strong><a href="http://blog.sqlauthority.com/" target="_blank"><strong>http://blog.sqlauthority.com</strong></a><strong>),</strong> <a href="http://dotnetslackers.com/articles/sql/Mirrored-Backup-and-Restore-and-Split-File-Backup.aspx" target="_blank">DNS</a></p>
Posted in Pinal Dave, SQL, SQL Authority, SQL Backup and Restore, SQL Data Storage, SQL Query, SQL Scripts, SQL Server, SQL Tips and Tricks, SQLServer, T SQL, Technology  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/6660/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/6660/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/6660/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/6660/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/6660/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/6660/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/6660/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/6660/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/6660/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/6660/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=6660&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/09/02/sql-server-mirrored-backup-and-restore-and-split-file-backup-2/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>

		<media:content url="http://www.pinaldave.com/bimg/sqlmirror/sql-mirrored-backup1.jpg" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/sqlmirror/sql-mirrored-backup2.jpg" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/sqlmirror/sql-mirrored-backup3.jpg" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/sqlmirror/sql-mirrored-backup4.jpg" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/sqlmirror/sql-mirrored-backup5.jpg" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/sqlmirror/sql-mirrored-backup6.jpg" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/sqlmirror/sql-mirrored-backup7.jpg" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/sqlmirror/sql-mirrored-backup8.jpg" medium="image" />
	</item>
		<item>
		<title>SQL SERVER &#8211; Introduction to SQL Azure</title>
		<link>http://blog.sqlauthority.com/2009/08/27/sql-server-introduction-to-sql-azure/</link>
		<comments>http://blog.sqlauthority.com/2009/08/27/sql-server-introduction-to-sql-azure/#comments</comments>
		<pubDate>Thu, 27 Aug 2009 01:30:39 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Data Storage]]></category>
		<category><![CDATA[SQL Documentation]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Cloud Computing]]></category>
		<category><![CDATA[SQL Azure]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=6657</guid>
		<description><![CDATA[What is SQL Azure?
In short, SQL Azure is simply a Microsoft branding change. SQL Services and SQL Data Services are now known as Microsoft SQL Azure and SQL Azure Database. There are a few changes, but fundamentally Microsoft’s plans to extend SQL server capabilities in cloud as web-based services remain intact. SQL Azure will continue [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=6657&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><h3 style="text-align:justify;">What is SQL Azure?</h3>
<p style="text-align:justify;">In short, SQL Azure is simply a Microsoft branding change. SQL Services and SQL Data Services are now known as Microsoft SQL Azure and SQL Azure Database. There are a few changes, but fundamentally Microsoft’s plans to extend SQL server capabilities in cloud as web-based services remain intact. SQL Azure will continue to deliver an integrated set of services for relational databases. The reporting, analytics and data synchronization with end-users and partners also remains unchanged. This makes it most appealing to current users of SQL Server.</p>
<p style="text-align:justify;">SQL Azure is going to be the Next Big Thing from Microsoft. It is just giving SQL Server a new way of doing operations it was doing for long time. Being on cloud, it keeps development relatively simple by keeping the heart of the programming almost the same. Additionally, SQL Azure keeps the goals of SQL Server, i.e. high availability, scalability and security in the core.</p>
<p style="text-align:justify;">Developers can just start developing SQL Azure application locally using SQL Server Express version (<a rel="nofollow" href="http://www.microsoft.com/express/sql/download/">http://www.microsoft.com/express/sql/download/),</a> or the CTP version that will be available in August.</p>
<p style="text-align:justify;"><strong><a href="http://dotnetslackers.com/articles/sql/Introduction-to-SQL-Azure.aspx" target="_blank">Read my complete article here.</a></strong></p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (</strong><a href="http://blog.sqlauthority.com/" target="_blank"><strong>http://blog.sqlauthority.com</strong></a><strong>)</strong></p>
Posted in Pinal Dave, SQL, SQL Authority, SQL Data Storage, SQL Documentation, SQL Query, SQL Server, SQL Tips and Tricks, T SQL, Technology Tagged: Cloud Computing, SQL Azure <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/6657/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/6657/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/6657/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/6657/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/6657/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/6657/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/6657/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/6657/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/6657/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/6657/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=6657&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/08/27/sql-server-introduction-to-sql-azure/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL SERVER &#8211; SQL Server Express &#8211; A Complete Reference Guide</title>
		<link>http://blog.sqlauthority.com/2009/08/26/sql-server-sql-server-express-a-complete-reference-guide/</link>
		<comments>http://blog.sqlauthority.com/2009/08/26/sql-server-sql-server-express-a-complete-reference-guide/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 01:30:26 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Data Storage]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[SQL Server Express]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=6664</guid>
		<description><![CDATA[
SQL Server Express is one of the most valuable products of Microsoft. Very often, I face many questions with regard to SQL Server Express. Today, we will be covering some of the most commonly asked questions.
Q: What is the cost of SQL Server Express?
A: SQL Server Express is a FREE product from Microsoft.
Q: Where can [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=6664&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;">
<p style="text-align:justify;">SQL Server Express is one of the most valuable products of Microsoft. Very often, I face many questions with regard to SQL Server Express. Today, we will be covering some of the most commonly asked questions.</p>
<p style="text-align:justify;">Q: What is the cost of SQL Server Express?<br />
A: SQL Server Express is a<strong> FREE</strong> product from Microsoft.</p>
<p style="text-align:justify;">Q: Where can I find more details about SQL Server Express?<br />
A: On official Microsoft Site:<a href="http://www.microsoft.com/express/sql/default.aspx" target="_blank"> http://www.microsoft.com/express/sql/default.aspx</a></p>
<p style="text-align:justify;">Q: Why should I use SQL Server Express when I have full version available?<br />
A: Usually, I install only the license version product on my system. When I do not have to use all the features of SQL Server, I install SQL Server Express.</p>
<p style="text-align:justify;">Q: What is the maximum size per database for SQL Server Express?<br />
A: SQL Server Express supports a maximum size of 4 GB per database, which excludes all the log files. 4 GB is not a very large size; however, if database is properly designed and the tables are properly arranged in a separate database, this limitation can be resolved to a certain extent.<a href="#_msocom_2"></a></p>
<p style="text-align:justify;">Q: Can MySQL be compared with SQL Server Express as both of them are free products?<br />
A: Yes. Both are free and have their own space. However, thus far, I have never faced a situation wherein the task that can be accomplished by using MySQL is not accomplished by SQL Server Express.</p>
<p style="text-align:justify;">Q: Does SQL Server have sufficient help available online?<br />
A: Yes. There are so many online help resources available for SQL Server Express that user will find strongest community for any FREE product.
</p>
<p style="text-align:justify;">Let me give you quick list of the online help resources. Even though I took some time to build this reference list, I am sure that all of you will appreciate this and will share with others, which is worth the effort!</p>
<p style="text-align:justify;"><strong>Overview</strong></p>
<ul style="text-align:justify;">
<li><a href="http://www.microsoft.com/sql/techinfo/whitepapers/sql2008Overview.mspx" target="_blank">SQL Server 2008 Product Overview</a></li>
<li><a href="http://msdn2.microsoft.com/en-us/library/ms345154.aspx" target="_blank">SQL Server 2005 Express Edition Overview</a></li>
<li><a href="http://msdn2.microsoft.com/hi-in/express/aa718379.aspx" target="_blank">SQL Server Express Edition Comparison</a></li>
</ul>
<p style="text-align:justify;"><strong>Getting Started</strong></p>
<p style="text-align:justify;"><strong>Installation</strong></p>
<ul style="text-align:justify;">
<li><a href="http://msdn2.microsoft.com/hi-in/express/bb410792.aspx" target="_blank">Downloading SQL Server2005 SP2 Express Edition</a></li>
<li><a href="http://download.microsoft.com/download/f/1/0/f10c4f60-630e-4153-bd53-c3010e4c513b/RequirementsSQLEXP2005.htm" target="_blank">Installation Requirements for SQL Server Express</a></li>
<li><a href="http://download.microsoft.com/download/E/8/B/E8B42814-6A0C-40EB-911F-E7ADEC87F5D5/UpgrExptoWkgStd.doc" target="_blank">Upgrading from SQL Server 2005 Express Edition to Workgroup or Standard Editions</a></li>
<li><a href="http://msdn2.microsoft.com/en-us/library/ms143441.aspx" target="_blank">Installing SQL Server Express Edition</a></li>
<li><a href="http://www.microsoft.com/sql/editions/express/redistregister.mspx" target="_blank">Building and shipping applications using SQL Server Express 2005</a></li>
</ul>
<p style="text-align:justify;"><strong>Quick Start</strong></p>
<ul style="text-align:justify;">
<li><a href="http://msdn2.microsoft.com/en-us/library/ms165612.aspx" target="_blank">Getting Started &#8211; How To: SQL Server Express</a></li>
<li><a href="http://msdn2.microsoft.com/en-us/library/ms165732.aspx" target="_blank">Walkthrough: Creating an Application by Using SQL Server Express and Visual Web Developer 2005 Express</a></li>
<li><a href="http://www.microsoft.com/technet/prodtechnol/sql/2005/mgsqlexpwssmse.mspx" target="_blank">Managing SQL Server Express Edition with Management Studio Express</a></li>
<li><a href="http://msdn2.microsoft.com/en-us/library/bb264564.aspx" target="_blank">SQL Server 2005 Express Edition User Instances</a></li>
<li><a href="http://msdn2.microsoft.com/en-us/library/ms165702.aspx" target="_blank">Using the sqlcmd Utility (SQL Server Express)</a></li>
<li><a href="http://support.microsoft.com/kb/325003" target="_blank">How to manage the SQL Server Desktop Engine (MSDE 2000) or SQL Server 2005 Express Edition by using the osql utility</a></li>
<li><a href="http://msdn2.microsoft.com/en-us/library/ms165639.aspx" target="_blank">Distributing SQL Server Express</a></li>
<li><a href="http://msdn2.microsoft.com/en-us/library/ms365166.aspx" target="_blank">Reporting Services in SQL Server 2005 Express Edition with Advanced Services</a></li>
<li><a href="http://msdn2.microsoft.com/en-us/library/ms165673.aspx" target="_blank">How to: Attach a Database File to SQL Server Express</a></li>
<li><a href="http://msdn2.microsoft.com/en-us/library/ms165700.aspx" target="_blank">Replication in SQL Server Express</a></li>
<li><a href="http://msdn2.microsoft.com/en-us/library/Bb264562.aspx" target="_blank">Embedding SQL Server Express into Custom Applications</a></li>
</ul>
<p style="text-align:justify;"><strong>Misc</strong></p>
<ul style="text-align:justify;">
<li><a href="http://members.microsoft.com/CustomerEvidence/search/AdvancedSearchResults.aspx?Flag=0&amp;Keyword=sql%20server%202005%20express" target="_blank">View SQL Server Express Edition Case Studies</a></li>
<li><a href="http://msdn2.microsoft.com/en-us/library/ms165726.aspx" target="_blank">SQL Server Express Developer Infocenter</a></li>
<li><a href="http://support.microsoft.com/kb/322336" target="_blank">How to verify and change the system administrator password in MSDE or SQL Server 2005 Express Edition</a></li>
<li><a href="http://support.microsoft.com/kb/914278" target="_blank">How SQL Server 2005 Express Edition determines the CPU count and uses the CPUs during processing</a></li>
<li><a href="http://support.microsoft.com/kb/319930" target="_blank">How to connect to an instance of SQL Server Desktop Edition or of SQL Server 2005 Express Edition</a></li>
<li><a href="http://support.microsoft.com/kb/912426" target="_blank">How to detect the status of the SQL Server Express service or start the SQL Server Express service by using Visual Basic or Visual C#</a></li>
<li><a href="http://support.microsoft.com/kb/916784" target="_blank">How to perform full-text search related tasks in SQL Server 2005 Express Edition with Advanced Services</a></li>
</ul>
<p style="text-align:justify;"><strong>Blogs</strong></p>
<ul style="text-align:justify;">
<li><a href="http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=385&amp;SiteID=1" target="_blank">SQL Server Express &#8211; MSDN Forums</a></li>
<li><a href="http://blogs.msdn.com/sqlexpress" target="_blank">Blogs: SQL Server Express WebLog</a></li>
</ul>
<p style="text-align:justify;"><strong>Webcasts</strong></p>
<ul style="text-align:justify;">
<li><a href="http://msdn2.microsoft.com/hi-in/express/aa718391.aspx" target="_blank">8-Part series of Webcasts over SQL Server Express Edition</a></li>
<li><a href="http://msevents.microsoft.com/cui/webcasteventdetails.aspx?eventid=1032271510&amp;eventcategory=3&amp;culture=en-us&amp;countrycode=us" target="_blank">Using Service Broker in SQL Server 2005 Express Edition for Reliable Service-Oriented Architecture (SOA) Implementations (Level 300)</a></li>
<li><a href="http://msevents.microsoft.com/cui/webcasteventdetails.aspx?eventid=1032271453&amp;eventcategory=3&amp;culture=en-us&amp;countrycode=us" target="_blank">Introducing SQL Server 2005 Express Edition: Your Smart Client Data Store (Level 200)</a></li>
<li><a href="http://msevents.microsoft.com/cui/WebCastEventDetails.aspx?EventID=1032280289&amp;EventCategory=5&amp;culture=en-US&amp;CountryCode=US" target="_blank">TechNet Webcast: SQL Server 2005 Express Edition (Level 200)</a></li>
</ul>
<p style="text-align:justify;"><strong><a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=c7933d3e-b7b9-43a6-ade3-f8e37c8cb046" target="_blank"></a></strong></p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (</strong><a href="http://blog.sqlauthority.com/" target="_blank"><strong>http://blog.sqlauthority.com</strong></a><strong>)</strong></p>
Posted in Pinal Dave, SQL, SQL Authority, SQL Data Storage, SQL Query, SQL Server, SQL Tips and Tricks, T SQL, Technology Tagged: MySQL, SQL Server Express <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/6664/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/6664/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/6664/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/6664/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/6664/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/6664/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/6664/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/6664/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/6664/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/6664/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=6664&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/08/26/sql-server-sql-server-express-a-complete-reference-guide/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL SERVER &#8211; Introduction to Change Data Capture (CDC) in SQL Server 2008</title>
		<link>http://blog.sqlauthority.com/2009/08/15/sql-server-introduction-to-change-data-capture-cdc-in-sql-server-2008/</link>
		<comments>http://blog.sqlauthority.com/2009/08/15/sql-server-introduction-to-change-data-capture-cdc-in-sql-server-2008/#comments</comments>
		<pubDate>Sat, 15 Aug 2009 01:30:46 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Data Storage]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Scripts]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[SQL Utility]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=6599</guid>
		<description><![CDATA[Simple-Talk.com has published my very first article on their site. This article is introducing Change Data Capture &#8211; the new concept introduced in SQL Server 2008. Change Data Capture records INSERTs, UPDATEs, and DELETEs applied to SQL Server tables, and makes a record available of what changed, where, and when, in simple relational &#8216;change tables&#8217; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=6599&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;"><strong>Simple-Talk.com</strong> has published my very first article on their site. This article is introducing Change Data Capture &#8211; the new concept introduced in SQL Server 2008. Change Data Capture records INSERTs, UPDATEs, and DELETEs applied to SQL Server tables, and makes a record available of what changed, where, and when, in simple relational &#8216;change tables&#8217; rather than in an esoteric chopped salad of XML. These change tables contain columns that reflect the column structure of the source table you have chosen to track, along with the metadata needed to understand the changes that have been made.</p>
<p style="text-align:justify;"><a href="http://www.simple-talk.com/sql/learn-sql-server/introduction-to-change-data-capture-%28cdc%29-in-sql-server-2008/" target="_blank">Introduction to Change Data Capture (CDC) in SQL Server 2008</a></p>
<p style="text-align:justify;">Please read my article and leave your valuable comments here. If you like the article do not forget to rate it.</p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (</strong><a href="http://blog.sqlauthority.com/" target="_blank"><strong>http://blog.sqlauthority.com</strong></a><strong>)</strong></p>
<p style="text-align:justify;">
<p style="text-align:justify;">
Posted in Database, Pinal Dave, SQL, SQL Authority, SQL Data Storage, SQL Query, SQL Scripts, SQL Server, SQL Tips and Tricks, SQL Utility, T SQL, Technology  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/6599/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/6599/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/6599/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/6599/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/6599/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/6599/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/6599/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/6599/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/6599/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/6599/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=6599&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/08/15/sql-server-introduction-to-change-data-capture-cdc-in-sql-server-2008/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL SERVER &#8211; Four Different Ways to Find Recovery Model for Database</title>
		<link>http://blog.sqlauthority.com/2009/07/16/sql-server-four-different-ways-to-find-recovery-model-for-database/</link>
		<comments>http://blog.sqlauthority.com/2009/07/16/sql-server-four-different-ways-to-find-recovery-model-for-database/#comments</comments>
		<pubDate>Thu, 16 Jul 2009 01:30:26 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Backup and Restore]]></category>
		<category><![CDATA[SQL Data Storage]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Scripts]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5915</guid>
		<description><![CDATA[Perhaps, the best thing about technical domain is that most of the things can be executed in more than one ways. It is always useful to know about the various methods of performing a single task. Today, we will observe four different ways to find out recovery model for any database.
Method 1
Right Click on Database [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5915&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;">Perhaps, the best thing about technical domain is that most of the things can be executed in more than one ways. It is always useful to know about the various methods of performing a single task. Today, we will observe four different ways to find out recovery model for any database.</p>
<p style="text-align:justify;"><strong>Method 1</strong></p>
<p style="text-align:justify;">Right Click on Database &gt;&gt; Go to Properties &gt;&gt; Go to Option. On the Right side you can find recovery model.</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/rm1.jpg" alt="" width="500" height="619" /></p>
<p style="text-align:justify;"><strong>Method 2</strong></p>
<p style="text-align:justify;">Click on the Database Node in Object Explorer. In Object Explorer Details, you can see the column Recovery Model.</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/rm2.jpg" alt="" width="500" height="290" /></p>
<p style="text-align:justify;"><strong>Method 3</strong></p>
<p style="text-align:justify;">This is a very easy method and it gives all the database information in one script.</p>
<p style="text-align:justify;"><code style="font-size:12px;"><span style="color:blue;">SELECT </span><span style="color:black;">name </span><span style="color:blue;">AS </span><span style="color:black;">[Database Name]</span><span style="color:gray;">,<br />
</span><span style="color:black;">recovery_model_desc </span><span style="color:blue;">AS </span><span style="color:black;">[Recovery Model]<br />
</span><span style="color:blue;">FROM </span><span style="color:black;">sys.databases<br />
GO</span></code>
</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/rm3.jpg" alt="" width="417" height="454" /></p>
<p style="text-align:justify;"><strong>Method 4</strong></p>
<p style="text-align:justify;">This method provides only one database at a time.</p>
<p style="text-align:justify;"><code style="font-size:12px;"><span style="color:blue;">SELECT </span><span style="color:red;">'ADVENTUREWORKS' </span><span style="color:blue;">AS </span><span style="color:black;">[Database Name]</span><span style="color:gray;">,<br />
</span><span style="color:magenta;">DATABASEPROPERTYEX</span><span style="color:gray;">(</span><span style="color:red;">'ADVENTUREWORKS'</span><span style="color:gray;">, </span><span style="color:red;">'RECOVERY'</span><span style="color:gray;">)<br />
</span><span style="color:blue;">AS </span><span style="color:black;">[Recovery Model]<br />
GO</span></code>
</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/rm4.jpg" alt="" width="489" height="187" /></p>
<p style="text-align:justify;"><strong>My recommendation </strong></p>
<p>Of all the above methods, I prefer Method 3. It is accurate and can be used in T-SQL code. Besides, I can use it for many other purposes as well.</p>
<p>I would like to know which one is your favorite method .</p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (<a href="http://blog.sqlauthority.com/" target="_blank">http://blog.SQLAuthority.com</a>)</strong></p>
Posted in Pinal Dave, SQL, SQL Authority, SQL Backup and Restore, SQL Data Storage, SQL Query, SQL Scripts, SQL Server, SQL Tips and Tricks, T SQL, Technology  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/5915/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/5915/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/5915/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/5915/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/5915/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/5915/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/5915/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/5915/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/5915/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/5915/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5915&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/07/16/sql-server-four-different-ways-to-find-recovery-model-for-database/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>

		<media:content url="http://www.pinaldave.com/bimg/rm1.jpg" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/rm2.jpg" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/rm3.jpg" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/rm4.jpg" medium="image" />
	</item>
		<item>
		<title>SQL SERVER &#8211; Restore Sequence and Understanding NORECOVERY and RECOVERY</title>
		<link>http://blog.sqlauthority.com/2009/07/15/sql-server-restore-sequence-and-understanding-norecovery-and-recovery/</link>
		<comments>http://blog.sqlauthority.com/2009/07/15/sql-server-restore-sequence-and-understanding-norecovery-and-recovery/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 01:30:29 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[Readers Question]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Backup and Restore]]></category>
		<category><![CDATA[SQL Data Storage]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Scripts]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5895</guid>
		<description><![CDATA[I maintain a spreadsheet of questions sent by users and from that I single out a topic to write and share my knowledge and opinion. Unless and until I find an issue appealing, I do not prefer to write about it, till the issue crosses the threshold. Today the question that crossed the threshold is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5895&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;">I maintain a spreadsheet of questions sent by users and from that I single out a topic to write and share my knowledge and opinion. Unless and until I find an issue appealing, I do not prefer to write about it, till the issue crosses the threshold. Today the question that crossed the threshold is &#8211; <strong>what is the difference between NORECOERY and RECOVERY when restoring database.</strong></p>
<p style="text-align:justify;">The fact is that one can easily go to MSDN and learn the difference, so I head myself to MSDN and read the difference. This is what the Book On Line suggests <a href="http://msdn.microsoft.com/en-us/library/ms186858.aspx" target="_blank">here</a>.</p>
<p style="padding-left:60px;text-align:justify;"><em><strong> </strong></em></p>
<p style="padding-left:60px;text-align:justify;"><em>NORECOVERY specifies that roll back not occur. This allows roll forward to continue with the next statement in the sequence.<br />
In this case, the restore sequence can restore other backups and roll them forward.<br />
RECOVERY (the default) indicates that roll back should be performed after roll forward is completed for the current backup.<br />
Recovering the database requires that the entire set of data being restored (the roll forward set) is consistent with the database. If the roll forward set has not been rolled forward far enough to be consistent with the database and RECOVERY is specified, the Database Engine issues an error.</em>
</p>
<p style="text-align:justify;">Book On Line has very clearly explained the same subject and provides succinct explanation of the difference.</p>
<p style="text-align:justify;">In other words -</p>
<p style="text-align:justify;"><em><strong>While doing RESTORE Operation if you restoring database files, always use NORECOVER option as that will keep database in state where more backup file are restored. This will also keep database offline also to prevent any changes, which can create itegrity issues. Once all backup file is restored run RESTORE command with RECOVERY option to get database online and operational.</strong></em></p>
<p style="text-align:justify;">It is also important to be acquainted with the restore sequence of how full database backup is restored.</p>
<p style="text-align:justify;">First, restore full database backup, differential database backup and all transactional log backups WITH NORECOVERY Option. After that, bring back database online using WITH RECOVERY option.</p>
<p style="text-align:justify;">Following is the sample Restore Sequence</p>
<p style="text-align:justify;"><code style="font-size:12px;"><span style="color:blue;">RESTORE DATABASE DATABASE FROM </span><span style="color:black;">full_database_backup </span><span style="color:blue;">WITH </span><span style="color:black;">NORECOVERY</span><span style="color:gray;">;<br />
</span><span style="color:blue;">RESTORE DATABASE DATABASE FROM </span><span style="color:black;">differential_backup </span><span style="color:blue;">WITH </span><span style="color:black;">NORECOVERY</span><span style="color:gray;">;<br />
</span><span style="color:blue;">RESTORE </span><span style="color:magenta;">LOG </span><span style="color:blue;">DATABASE FROM </span><span style="color:black;">log_backup </span><span style="color:blue;">WITH </span><span style="color:black;">NORECOVERY</span><span style="color:gray;">;<br />
</span><span style="color:green;">-- Repeat this till you restore last log backup<br />
</span><span style="color:blue;">RESTORE DATABASE DATABASE WITH </span><span style="color:black;">RECOVERY</span><span style="color:gray;">;</span></code>
</p>
<p style="text-align:justify;">I hope now it is very clear to you all what is restore sequence and the difference between recovery options.</p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (<a href="http://blog.sqlauthority.com/" target="_blank">http://blog.SQLAuthority.com</a>)</strong></p>
Posted in Pinal Dave, Readers Question, SQL, SQL Authority, SQL Backup and Restore, SQL Data Storage, SQL Query, SQL Scripts, SQL Server, SQL Tips and Tricks, T SQL, Technology  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/5895/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/5895/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/5895/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/5895/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/5895/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/5895/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/5895/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/5895/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/5895/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/5895/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5895&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/07/15/sql-server-restore-sequence-and-understanding-norecovery-and-recovery/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL SERVER &#8211; BLOB &#8211; Pointer to Image, Image in Database, FILESTREAM Storage</title>
		<link>http://blog.sqlauthority.com/2009/07/13/sql-server-blob-pointer-to-image-image-in-database-filestream-storage/</link>
		<comments>http://blog.sqlauthority.com/2009/07/13/sql-server-blob-pointer-to-image-image-in-database-filestream-storage/#comments</comments>
		<pubDate>Mon, 13 Jul 2009 01:30:54 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Data Storage]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[SQLServer]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5823</guid>
		<description><![CDATA[When it comes to storing images in database there are two common methods. I had previously blogged about the same subject on my visit to Toronto. With SQL Server 2008, we have a new method of FILESTREAM storage. However, the answer on when to use FILESTREAM and when to use other methods is still vague [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5823&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;">When it comes to storing images in database there are two common methods. I had previously blogged about the same subject on <a href="http://blog.sqlauthority.com/2009/03/06/sqlauthority-news-author-visit-toronto-canada-insert-image-in-database/" target="_blank">my visit to Toronto</a>. With SQL Server 2008, we have a new method of FILESTREAM storage. However, the answer on when to use FILESTREAM and when to use other methods is still vague in community.</p>
<p style="text-align:justify;">Let us look into two traditional methods first along with their advantage and disadvantages.</p>
<p style="text-align:justify;"><strong>Method 1) Store image in filesystem and store pointer in database</strong></p>
<p style="text-align:justify;">This is quite an old method and you can find this implemented in many places, even though SQL Server 2005 has been released 5 years ago.<br />
The advantage of this method is that there is no limit on the size of images file and it is the fastest way to retrieve images from system.<br />
The drawback of this method is that application and database security acts separately and application/OS has to take backup for images.
</p>
<p style="text-align:justify;">
<p style="text-align:justify;"><strong>Method 2) Store images in a database</strong><br />
This was introduced in SQL Server 2005 where images (binary data) can be stored in database.<br />
The advantage of this method is same as the disadvantages of method 1, i.e. security and permissions.<br />
The disadvantage of this method is same as the advantages of method 1, i.e. speed and maximum size is limited to 2 GB.
</p>
<p style="text-align:justify;">On observing Method 1 and Method 2, it is very clear that they are complementing each other but both are very powerful methods on their own.</p>
<p style="text-align:justify;">Although both the methods are very good they have limitations, which together only they can provide. This is where FILESTREAM Storage comes into action.</p>
<p style="text-align:justify;">FILESTREAM Storage system can store BLOB (Binary Large Object OBject) or images file, which is larger than 2 GB, and it can store them in database itself. It can be backed up just like regular database backup, and the security of the BLOB is maintained along with database application. After all this, it is as fast as filesystem. Now, this is what makes this superior to any other methods described earlier.</p>
<p style="text-align:justify;"><strong>Summary: We can use FILESTREAM Storage to overcome traditional limitations of SQL Server storage of BLOB, varbinary or images.</strong></p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (<a href="http://blog.sqlauthority.com/" target="_blank">http://blog.sqlauthority.com</a>)</strong></p>
Posted in Pinal Dave, SQL, SQL Authority, SQL Data Storage, SQL Query, SQL Server, SQL Tips and Tricks, SQLServer, T SQL, Technology  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/5823/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/5823/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/5823/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/5823/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/5823/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/5823/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/5823/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/5823/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/5823/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/5823/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5823&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/07/13/sql-server-blob-pointer-to-image-image-in-database-filestream-storage/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL SERVER &#8211; Standby Servers and Types of Standby Servers</title>
		<link>http://blog.sqlauthority.com/2009/07/11/sql-server-standby-servers-and-types-of-standby-servers/</link>
		<comments>http://blog.sqlauthority.com/2009/07/11/sql-server-standby-servers-and-types-of-standby-servers/#comments</comments>
		<pubDate>Sat, 11 Jul 2009 01:30:32 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Backup and Restore]]></category>
		<category><![CDATA[SQL Data Storage]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5849</guid>
		<description><![CDATA[Standby servers - Standby Server is a type of server that can be brought online in a situation when Primary Server goes offline and application needs continuous (high) availability of the server. There is always a need to set up a mechanism where data and objects from primary server are moved to secondary (standby) server. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5849&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;"><strong>Standby servers </strong>- Standby Server is a type of server that can be brought online in a situation when Primary Server goes offline and application needs continuous (high) availability of the server. There is always a need to set up a mechanism where data and objects from primary server are moved to secondary (standby) server. This mechanism usually involves the process of moving backup from the primary server to the secondary server using T-SQL scripts. Often, database wizards are used to set up this process.</p>
<p style="text-align:justify;">We will now glance at the various types of standby servers.</p>
<p style="text-align:justify;"><strong>Hot Standby</strong> &#8211; Hot Standby can be achieved in SQL Server using SQL Server 2005 Enterprise Edition and the later enterprise versions. SQL Server 2005 has introduced Mirroring of database that can be configured for automatic failover in a disaster situation. In the case of synchronous mirroring database is replicated to both the servers simultaneously.  This is a little expensive but provides the best high availability. In this case, both primary and standby servers have same data all the time.</p>
<p style="text-align:justify;"><strong>Warm Standby</strong> – In Warm Standby automatic failover is not configured. This is usually set up using Log Shipping or asynchronous mirroring. Sometimes warm standby is lagging by a few minutes or seconds, which results into loss of few latest updates when primary server fails and newer server needs to be failed over. Sometimes warm server that is lagging by a few transactions is brought back to the current state by applying recent transaction log.</p>
<p style="text-align:justify;"><strong>Cold Standby</strong> &#8211; Code Standby servers need to be switched manually, and sometimes all the backups as well as the required OS need to be applied. Cold Standby  just physically replaces the previous server.</p>
<p style="text-align:justify;">I am curious to know what do you all think about this these three types of standby servers. I am eager to know what kind of server setup you have at your workplace. If you can share these details, it will be very useful to all the readers. If I find your information interesting, I will create a new blog post with due credit to you.</p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (</strong><a href="http://blog.sqlauthority.com/" target="_blank"><strong>http://blog.SQLAuthority.com</strong></a><strong>)</strong></p>
Posted in Pinal Dave, SQL, SQL Authority, SQL Backup and Restore, SQL Data Storage, SQL Query, SQL Server, SQL Tips and Tricks, T SQL, Technology  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/5849/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/5849/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/5849/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/5849/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/5849/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/5849/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/5849/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/5849/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/5849/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/5849/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5849&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/07/11/sql-server-standby-servers-and-types-of-standby-servers/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL SERVER &#8211; Restore or Attach Database Without .NDF or .MDF is Not Possible</title>
		<link>http://blog.sqlauthority.com/2009/04/10/sql-server-restore-or-attach-database-without-ndf-or-mdf-is-not-possible/</link>
		<comments>http://blog.sqlauthority.com/2009/04/10/sql-server-restore-or-attach-database-without-ndf-or-mdf-is-not-possible/#comments</comments>
		<pubDate>Fri, 10 Apr 2009 01:30:57 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Backup and Restore]]></category>
		<category><![CDATA[SQL Data Storage]]></category>
		<category><![CDATA[SQL Error Messages]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4271</guid>
		<description><![CDATA[This article revolves around a trivial yet common issue. There might be a set of people for whom the current topic might appear to be insignificant. But I have been asked this question innumerable times, particularly from   people who are frequenting using forums or have blog related to storage and highly availability, which instigated me [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=4271&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;">This article revolves around a trivial yet common issue. There might be a set of people for whom the current topic might appear to be insignificant. But I have been asked this question innumerable times, particularly from   people who are frequenting using forums or have blog related to storage and highly availability, which instigated me to write this article.</p>
<p style="text-align:justify;">Here goes this frequently asked question.</p>
<p style="text-align:justify;"><strong>Question:</strong> Is it possible to restore database if one of the files of .mdf (primary data file) or .ndf (secondary data file) is missing?</p>
<p style="text-align:justify;"><strong>Answer:</strong> In one word the answer is <strong>NO</strong>. All the .mdf and .ndf files are mandatory to attach or restore database successfully.  Even though  you have all the transactions stored in .ldf you will not be able to restore the database completely.</p>
<p>I hope this answer removes the cloud of doubt hovering over my targeted readers.</p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (<a href="http://blog.sqlauthority.com" target="_blank">http://blog.sqlauthority.com</a>)</strong></p>
<p style="text-align:justify;">
Posted in Database, Pinal Dave, SQL, SQL Authority, SQL Backup and Restore, SQL Data Storage, SQL Error Messages, SQL Query, SQL Server, SQL Tips and Tricks, T SQL, Technology  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/4271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/4271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/4271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/4271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/4271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/4271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/4271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/4271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/4271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/4271/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=4271&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/04/10/sql-server-restore-or-attach-database-without-ndf-or-mdf-is-not-possible/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL SERVER &#8211; Mirrored Backup and Restore and Split File Backup</title>
		<link>http://blog.sqlauthority.com/2009/04/05/sql-server-mirrored-backup-and-restore-and-split-file-backup/</link>
		<comments>http://blog.sqlauthority.com/2009/04/05/sql-server-mirrored-backup-and-restore-and-split-file-backup/#comments</comments>
		<pubDate>Sun, 05 Apr 2009 01:30:04 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Backup and Restore]]></category>
		<category><![CDATA[SQL Data Storage]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Scripts]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4670</guid>
		<description><![CDATA[Introduction
This article is based on a real life experience of the author while working with database backup and restore during his consultancy work for various organizations. We will go over the following important concepts of database backup and restore.

Conventional Backup and Restore
Spilt File Backup and Restore
Mirror File Backup
Understanding FORMAT Clause
Miscellaneous details about Backup and Restore

Conventional [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=4670&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><h3 style="text-align:justify;">Introduction</h3>
<p style="text-align:justify;">This article is based on a real life experience of the author while working with database backup and restore during his consultancy work for various organizations. We will go over the following important concepts of database backup and restore.</p>
<ol style="text-align:justify;">
<li>Conventional Backup and Restore</li>
<li>Spilt File Backup and Restore</li>
<li>Mirror File Backup</li>
<li>Understanding FORMAT Clause</li>
<li>Miscellaneous details about Backup and Restore</li>
</ol>
<h3 style="text-align:justify;">Conventional and Split File Backup and Restore</h3>
<p style="text-align:justify;">Just a day before working on one of the projects, I had to take a backup of one database of 14 GB. My hard drive lacked sufficient space at that moment. Fortunately, I had two 8 GB USB Drives with me. Now, the question was how to take a backup in two equal sizes, each of 7 GB, so I can fit them on each USB drive. Well, conventional backup takes one large backup in one file. However, SQL Server backup command can take backups in two or more split parts.</p>
<h3 style="text-align:justify;"><a href="http://dotnetslackers.com/articles/sql/Mirrored-Backup-and-Restore-and-Split-File-Backup.aspx" target="_blank">Read Complete Article here.</a></h3>
<p><strong>Reference : </strong><strong>Pinal Dave (<a href="http://blog.sqlauthority.com/" target="_blank">http://blog.SQLAuthority.com</a>)</strong></p>
Posted in Pinal Dave, SQL, SQL Authority, SQL Backup and Restore, SQL Data Storage, SQL Query, SQL Scripts, SQL Server, SQL Tips and Tricks, T SQL, Technology  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/4670/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/4670/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/4670/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/4670/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/4670/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/4670/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/4670/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/4670/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/4670/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/4670/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=4670&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/04/05/sql-server-mirrored-backup-and-restore-and-split-file-backup/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL SERVER &#8211; Very Powerful and Feature-Rich Backup, Zip and FTP Utility SQLBackupAndFTP</title>
		<link>http://blog.sqlauthority.com/2009/04/02/sql-server-very-powerful-and-feature-rich-backup-zip-and-ftp-utility-sqlbackupandftp/</link>
		<comments>http://blog.sqlauthority.com/2009/04/02/sql-server-very-powerful-and-feature-rich-backup-zip-and-ftp-utility-sqlbackupandftp/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 01:30:35 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Add-On]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Backup and Restore]]></category>
		<category><![CDATA[SQL Data Storage]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[SQL Utility]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[FTP]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4206</guid>
		<description><![CDATA[It goes without saying that Database Backup is the most important task for any Database Administrator (DBA). Naturally, large organizations always have a team of DBAs who execute Database Backup tasks. No matter how big or small an organization is, the importance of database backup remains the same across the board. It’s a common practice [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=4206&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;">It goes without saying that Database Backup is the most important task for any Database Administrator (DBA). Naturally, large organizations always have a team of DBAs who execute Database Backup tasks. No matter how big or small an organization is, the importance of database backup remains the same across the board. It’s a common practice in several organizations to upload the backup to their remote location for additional safety. I totally vouch for this safety measure of having their additional backup on remote/satellite location. This redundancy comes in handy whenever a catastrophe of not having proper backup surfaces abruptly.</p>
<p style="text-align:justify;">While I was searching online for a very simple solution for one of my clients, I came across a small-sized but feature-rich application from <strong><a href="http://www.SqlBackupAndFTP.com" target="_blank">SqlBackupAndFTP.com</a></strong>. This practical application has been created by Pranas.NET (<a href="http://pranas.net" target="_blank">http://pranas.net</a>) I have made extensive use of this tool for some time now and undoubtedly, this tool is very impressive by all standards!</p>
<p style="text-align:justify;">To put it simply, <a href="http://www.SqlBackupAndFTP.com" target="_blank"><strong>SQLBackupAndFTP</strong> </a>is MS SQL Server backup software. This tool performs several tasks such as running scheduled backups of SQL Server or SQL Server Express databases, zipping the backups, storing them on a network or on a FTP server, removing old backups, and finally, sending an e-mail confirmation on job&#8217;s success or failure. Besides, SQLBackupAndFTP Free is freeware, which is free from any spyware. Best of all, this ingeniously simple tool is extremely affordable for all. You just need to install it on the server and you can get up and running really fast.</p>
<p style="text-align:justify;">Given below are some important tasks which this tool can perform using daily scheduler:<br />
•    Backup SQL Server Database<br />
•    Zip the backups<br />
•    Encrypt the backups<br />
•    FTP the backups to remove FTP server<br />
•    Move file to local area network<br />
•    Send final status of tasks in email.
</p>
<p style="text-align:justify;">Let us now see how we can take backup and move it to the desired folder.</p>
<p style="text-align:justify;"><strong>Image 1: </strong>First, connect to the desired server.<br />
<img class="alignnone" src="http://www.pinaldave.com/bimg/backup1.jpg" alt="" width="482" height="675" /></p>
<p style="text-align:justify;"><strong>Image 2:</strong> As you can see, all the settings are very easy as described in the following image. Pay attention to these very simple, one screen settings. From database selection to job scheduling, you can configure everything from this page itself.<br />
<img class="alignnone" src="http://www.pinaldave.com/bimg/backup2.jpg" alt="" width="500" height="451" /></p>
<p style="text-align:justify;"><strong>Image 3:</strong> This screen describes all the steps that are being performed. User can easily view the status of all the jobs &#8211; either success or failure &#8211; on this page.<br />
<img class="alignnone" src="http://www.pinaldave.com/bimg/backup3.jpg" alt="" width="500" height="247" /></p>
<p style="text-align:justify;"><strong>Image 4:</strong> The following screen displays the settings for advanced users who have to deal with large database.<br />
<img class="alignnone" src="http://www.pinaldave.com/bimg/backup4.jpg" alt="" width="500" height="648" /></p>
<p style="text-align:justify;"><strong>Image 5: </strong>This screen displays email regarding final status of tasks, which is sent to the user after task completion.<br />
<img class="alignnone" src="http://www.pinaldave.com/bimg/backup5.jpg" alt="" width="500" height="192" />
</p>
<p style="text-align:justify;">Now, a question that might baffle your mind is – how this tool is better than maintenance tasks available in SQL Server. Well, here goes the answer. Maintenance tasks are easy to set up for backups; however, SQLBackupAndFTP have integrated solution for encryption, FTP and email which make it superior to maintenance tasks in every aspect.</p>
<p style="text-align:justify;">I would like to present my unbiased view about this tool. At the same time, I want to give my readers a broad perspective about backup tools in general.  On comparing this tool with other backup tools I have experienced that it is not the fanciest tool to manage backups or check their health. This is one tool that smoothly performs the job in a few steps compared to native SQL Server backup, which takes numerous steps to execute the same job.</p>
<p style="text-align:justify;"><a href="http://www.SqlBackupAndFTP.com" target="_blank"><strong>SQLBackupAndFTP</strong></a> is best suited for developers/DBAs who just want to ensure that they have schedule job that takes care of backup and moves them to appropriate place. In fact, it is ideal for any SQL Server database where backups need to be sent every day to a remote FTP server. It saves maintenance time on any SQL Server version. Besides, it is especially useful for SQL Server Express 2005 and SQL Server Express 2008, as they lack built in tools for backup.</p>
<p style="text-align:justify;">This tool is compatible with almost all the known SQL Server versions. It works with SQL Server 2008 (all versions) and many of the previous versions.</p>
<p style="text-align:justify;">While testing this tool, I noticed that there are few limitations. It does not support differential or transaction backups. I also found that this tool only works on local SQL Server instances and cannot connect to another SQL Server on LAN. When I contacted support, I came to know that they are planning to release its updated version in April 2009, which will not have any such limitations.</p>
<p style="text-align:justify;">I strongly recommend this tool to all the DBAs. They must try it as it is absolutely free and does exactly what it promises. You can <strong><a href="http://sqlbackupandftp.com/download/SqlBakSetup.exe" target="_blank">download your free copy</a></strong> of the tool from here.</p>
<p style="text-align:justify;">Please share your experience about using this tool. I am eager to receive your feedback regarding this article.</p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (<a href="http://blog.sqlauthority.com/" target="_blank">http://blog.sqlauthority.com</a>)</strong></p>
Posted in Database, Pinal Dave, SQL, SQL Add-On, SQL Authority, SQL Backup and Restore, SQL Data Storage, SQL Query, SQL Server, SQL Tips and Tricks, SQL Utility, T SQL, Technology Tagged: FTP <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/4206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/4206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/4206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/4206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/4206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/4206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/4206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/4206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/4206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/4206/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=4206&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/04/02/sql-server-very-powerful-and-feature-rich-backup-zip-and-ftp-utility-sqlbackupandftp/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>

		<media:content url="http://www.pinaldave.com/bimg/backup1.jpg" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/backup2.jpg" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/backup3.jpg" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/backup4.jpg" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/backup5.jpg" medium="image" />
	</item>
		<item>
		<title>SQL SERVER &#8211; Reasons to Backup Master Database &#8211; Why Should Master Database Backedup</title>
		<link>http://blog.sqlauthority.com/2009/02/15/sql-server-reasons-to-backup-master-database-why-should-master-database-backedup/</link>
		<comments>http://blog.sqlauthority.com/2009/02/15/sql-server-reasons-to-backup-master-database-why-should-master-database-backedup/#comments</comments>
		<pubDate>Sun, 15 Feb 2009 01:30:06 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Best Practices]]></category>
		<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Backup and Restore]]></category>
		<category><![CDATA[SQL Data Storage]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Security]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[SQL Utility]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2582</guid>
		<description><![CDATA[The most interesting thing about writing blog at SQLAuthority.com is follow up question. Just a day before I wrote article about SQL SERVER &#8211; Restore Master Database &#8211; An Easy Solution, right following it, I received email from user requesting reason for importance of backing up master database.
Master database contains all the system level information [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=2582&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;">The most interesting thing about writing blog at SQLAuthority.com is follow up question. Just a day before I wrote article about <strong><a href="http://blog.sqlauthority.com/2009/02/14/sql-server-restore-master-database-an-easy-solution/" target="_blank">SQL SERVER &#8211; Restore Master Database &#8211; An Easy Solution</a></strong>, right following it, I received email from user requesting reason for importance of backing up master database.</p>
<p style="text-align:justify;">Master database contains all the system level information of server. Information about all the login account, system configurations and information required to access all the other database are stored in master database. If master database is damaged, it will be difficult to use any other database in SQL Server and that makes it most important database of the SQL Server.</p>
<p style="text-align:justify;">Let us understand the important of the master database using an example. We will take example of SQL Server DBA and follow his timeline. Make sure to understand it correctly, as I have small question at the end of the timeline.</p>
<p style="text-align:justify;">9:00 AM &#8211; DBA takes backup of the master database.<br />
10:00 AM &#8211; DBA creates new Database named <em><strong>AfterMaster</strong></em>.<br />
11:00 AM &#8211; DBA restores the master database backup taken at 9:00 AM.<br />
12:00 PM &#8211; I have following two questions for the DBA :</p>
<p style="text-align:justify;"><em><strong>Question 1)</strong> What will be the state of the database AfterMaster? If AfterMaster database will be in active state after restoring master database?<br />
<strong>Question 2) </strong>What should be the next step after restoring master database?</em>
</p>
<p style="text-align:justify;">Let us understand the answer of question.</p>
<p style="text-align:justify;"><em><strong>Answer 1)</strong></em> Once master database is restored it will have no record of AfterMaster database in its system database and it will not recognize it.<br />
<em><strong>Answer 2)</strong></em> If master database is restored from backup all the operation which are done after last master database backup should be repeated in order to bring SQL Server in the current operational state. In our case, the database files (ldf and mdf) of AfterMaster database will still exists on server. They should be reattached to the server. You can search about how to attach mdf and ldf file at <strong><a href="http://search.sqlauthority.com" target="_blank">Search@SQLAuthority.com</a></strong>.
</p>
<p style="text-align:justify;">It is clear from our example that master database contains user login, files, filegroups and server wide settings.</p>
<p style="text-align:justify;">In summary, it is extremely important to take backup of the master database.</p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (</strong><a href="http://blog.SQLAuthority.com" target="_blank"><strong>http://blog.SQLAuthority.com</strong></a><strong>)</strong></p>
Posted in Best Practices, Pinal Dave, SQL, SQL Authority, SQL Backup and Restore, SQL Data Storage, SQL Query, SQL Security, SQL Server, SQL Tips and Tricks, SQL Utility, T SQL, Technology  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/2582/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/2582/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/2582/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/2582/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/2582/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/2582/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/2582/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/2582/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/2582/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/2582/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=2582&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/02/15/sql-server-reasons-to-backup-master-database-why-should-master-database-backedup/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL SERVER &#8211; Shrinking NDF and MDF Files &#8211; A Safe Operation</title>
		<link>http://blog.sqlauthority.com/2009/01/25/sql-server-shrinking-ndf-and-mdf-files-a-safe-operation/</link>
		<comments>http://blog.sqlauthority.com/2009/01/25/sql-server-shrinking-ndf-and-mdf-files-a-safe-operation/#comments</comments>
		<pubDate>Sun, 25 Jan 2009 01:30:56 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[Readers Question]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Data Storage]]></category>
		<category><![CDATA[SQL Performance]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Scripts]]></category>
		<category><![CDATA[SQL Security]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server DBCC]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2118</guid>
		<description><![CDATA[Just a day ago I have received following email from Siddhi and I found it interesting so I am sharing with all of you.
Hello Pinal,


I have seen many blogs from you on SQL server and i have always found them useful and easy to understand. Thanks for all the information you provide.


I have one query [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=2118&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;">Just a day ago I have received following email from <strong>Siddhi </strong>and I found it interesting so I am sharing with all of you.</p>
<div style="padding-left:30px;text-align:justify;"><em>Hello Pinal,</em></div>
<div style="padding-left:30px;text-align:justify;"><em><br />
</em></div>
<div style="padding-left:30px;text-align:justify;"><em>I have seen many blogs from you on SQL server and i have always found them useful and easy to understand. Thanks for all the information you provide.</em></div>
<div style="padding-left:30px;text-align:justify;"><em><br />
</em></div>
<div style="padding-left:30px;text-align:justify;"><em>I have one query about shrinking NDF and MDF files.</em></div>
<div style="padding-left:30px;text-align:justify;"><em><br />
</em></div>
<div style="padding-left:30px;text-align:justify;"><em><strong>Can we shrink NDF and MDF</strong> <strong>files?? If you do so is there any data loss?</strong></em></div>
<div style="padding-left:30px;text-align:justify;"><em><br />
</em></div>
<div style="padding-left:30px;text-align:justify;"><em>I have been shrinking the .LDF files every now and then but I am not too sure about NDF and MDF files.</em></div>
<div style="padding-left:30px;text-align:justify;"><em><br />
</em></div>
<div style="padding-left:30px;text-align:justify;"><em>Can you please answer my query.</em></div>
<div style="padding-left:30px;text-align:justify;"><em><br />
</em></div>
<div style="padding-left:30px;text-align:justify;"><em>Waiting for your early response.</em></div>
<div style="padding-left:30px;text-align:justify;"><em><br />
</em></div>
<div style="padding-left:30px;text-align:justify;"><em>Regards,</em></div>
<div style="padding-left:30px;text-align:justify;"><em>Siddhi</em></div>
<div style="padding-left:30px;text-align:justify;"><em><br />
</em></div>
<div style="text-align:justify;"><strong>Answer:</strong></div>
<div style="text-align:justify;"><strong>Shrinking MDF and NDF file is possible and there is no chance of data loss.</strong></div>
<div style="text-align:justify;"><strong><br />
</strong></div>
<div style="text-align:justify;">It is not always advisable to shrink those file as those files are usually growing. There are cases when one database is separated in multiple database of any large table is dropped from database MDF and NDF can contain large empty space. This is the time they should be shrank. Shrinking database can be many hours process but it there are very slim chances of data lose.</div>
<div style="text-align:justify;">Following is the script to shrink whole database.</div>
<div style="text-align:justify;"><code style="font-size:12px;"><span style="color:blue;">DBCC </span><span style="color:black;">SHRINKDATABASE </span><span style="color:gray;">(</span><span style="color:black;">dbName</span><span style="color:gray;">)</span></code></div>
<div style="text-align:justify;"><span style="color:gray;"><br />
</span></div>
<div style="text-align:justify;">Following is the script to shrink single file.</div>
<div style="text-align:justify;"><code style="font-size:12px;"><span style="color:blue;">DBCC </span><span style="color:black;">SHRINKFILE </span><span style="color:gray;">(</span><span style="color:black;">logicalLogFileName</span><span style="color:gray;">)</span></code></div>
<div style="text-align:justify;"><span style="color:gray;"><br />
</span></div>
<div style="text-align:justify;">To find logicalLogFileName following command has to be ran.</div>
<div style="text-align:justify;"><code style="font-size:12px;"><span style="color:blue;">USE </span><span style="color:black;">dbName<br />
</span><span style="color:blue;">EXEC </span><span style="color:darkred;">sp_helpfile</span></code></div>
<div style="text-align:justify;"><span style="color:darkred;"><br />
</span></div>
<div style="text-align:justify;">Let us understand this using database AdventureWorks.</div>
<div style="text-align:justify;"><code style="font-size:12px;"><span style="color:green;">/* Shrink Whole AdventureWorks Database */<br />
</span><span style="color:blue;">DBCC </span><span style="color:black;">SHRINKDATABASE </span><span style="color:gray;">(</span><span style="color:black;">AdventureWorks</span><span style="color:gray;">)<br />
</span><span style="color:black;">GO<br />
</span><span style="color:green;">/* Get the Logical File Name */<br />
</span><span style="color:blue;">USE </span><span style="color:black;">AdventureWorks<br />
</span><span style="color:blue;">EXEC </span><span style="color:darkred;">sp_helpfile<br />
</span><span style="color:black;">GO<br />
</span><span style="color:green;">/* Shrink MDF File of AdventureWorks Database */<br />
</span><span style="color:blue;">DBCC </span><span style="color:black;">SHRINKFILE </span><span style="color:gray;">(</span><span style="color:black;">AdventureWorks_Data</span><span style="color:gray;">)<br />
</span><span style="color:black;">GO</span></code></div>
<div style="text-align:justify;">Following image of the same process show when whole process is done there will be resultset with information about the new states of the database files.</div>
<div style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/shrinkdb.gif" alt="" width="445" height="384" /></div>
<div style="text-align:justify;"><span style="color:black;"><br />
</span></div>
<div style="text-align:justify;">Reference : <strong>Pinal Dave (<a href="http://blog.SQLAuthority.com" target="_blank">http://blog.SQLAuthority.com</a>)</strong></div>
Posted in Pinal Dave, Readers Question, SQL, SQL Authority, SQL Data Storage, SQL Performance, SQL Query, SQL Scripts, SQL Security, SQL Server, SQL Server DBCC, SQL Tips and Tricks, T SQL, Technology  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/2118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/2118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/2118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/2118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/2118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/2118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/2118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/2118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/2118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/2118/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=2118&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/01/25/sql-server-shrinking-ndf-and-mdf-files-a-safe-operation/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>

		<media:content url="http://www.pinaldave.com/bimg/shrinkdb.gif" medium="image" />
	</item>
		<item>
		<title>SQL SERVER &#8211; Find Number of Rows and Disk Space Reserved &#8211; Using sp_spaceused Interesting Observation</title>
		<link>http://blog.sqlauthority.com/2009/01/14/sql-server-find-number-of-rows-and-disk-space-reserved-using-sp_spaceused-interesting-observation/</link>
		<comments>http://blog.sqlauthority.com/2009/01/14/sql-server-find-number-of-rows-and-disk-space-reserved-using-sp_spaceused-interesting-observation/#comments</comments>
		<pubDate>Wed, 14 Jan 2009 01:30:24 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Data Storage]]></category>
		<category><![CDATA[SQL Function]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Scripts]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server DBCC]]></category>
		<category><![CDATA[SQL Stored Procedure]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[SQL Utility]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2016</guid>
		<description><![CDATA[Previously I posted SQL SERVER &#8211; Find Row Count in Table &#8211; Find Largest Table in Database &#8211; T-SQL. Today we will look into the same issue but with some additional interesting detail.
We can find the row count using another system SP sp_spaceused. This SP gives additional information regarding disk space reserved on database as [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=2016&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;">Previously I posted <strong><a href="http://blog.sqlauthority.com/2008/12/09/sql-server-find-table-rowcount-without-using-t-sql-and-without-opening-table/" target="_blank">SQL SERVER &#8211; Find Row Count in Table &#8211; Find Largest Table in Database &#8211; T-SQL</a></strong>. Today we will look into the same issue but with some additional interesting detail.<br />
We can find the row count using another system SP sp_spaceused. This SP gives additional information regarding disk space reserved on database as well. Well, when I ran the SP on AdventureWorks first time, I suspected that database SP is not providing me correct results.
</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/spaceused.jpg" alt="" width="330" height="257" /></p>
<p style="text-align:justify;">After a bit investigating I found that it may be possible that due to any reason may be the usage on AdventureWorks database might not be updated. I ran same SP with additional param as shown below and it provided me updated information for the same. Once I ran the SP with @updateusage param, it updated the status of the database. When I ran it again next time without param it gave the same results.</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/spaceused1.jpg" alt="" width="367" height="244" /></p>
<p style="text-align:justify;">The reason for above behavior is when dellocation of space happened in database (e.g. dropping table or truncating table) it does not release the used space right away. However, when @updateusage param is used database engine scans whole database and update the sapce usage in respective tables.<br />
Let me know if you guys have any interesting observation like this.
</p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (<a href="http://blog.SQLAuthority.com" target="_blank">http://blog.SQLAuthority.com</a>)</strong></p>
Posted in Pinal Dave, SQL, SQL Authority, SQL Data Storage, SQL Function, SQL Query, SQL Scripts, SQL Server, SQL Server DBCC, SQL Stored Procedure, SQL Tips and Tricks, SQL Utility, T SQL, Technology  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/2016/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/2016/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/2016/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/2016/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/2016/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/2016/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/2016/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/2016/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/2016/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/2016/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=2016&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/01/14/sql-server-find-number-of-rows-and-disk-space-reserved-using-sp_spaceused-interesting-observation/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>

		<media:content url="http://www.pinaldave.com/bimg/spaceused.jpg" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/spaceused1.jpg" medium="image" />
	</item>
		<item>
		<title>SQLAuthority News &#8211; Book Review &#8211; Pro SQL Server 2005 Replication (Definitive Guide)</title>
		<link>http://blog.sqlauthority.com/2008/10/13/sqlauthority-news-book-review-pro-sql-server-2005-replication-definitive-guide/</link>
		<comments>http://blog.sqlauthority.com/2008/10/13/sqlauthority-news-book-review-pro-sql-server-2005-replication-definitive-guide/#comments</comments>
		<pubDate>Mon, 13 Oct 2008 01:30:31 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[DBA]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Backup and Restore]]></category>
		<category><![CDATA[SQL Data Storage]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[SQLAuthority Book Review]]></category>
		<category><![CDATA[SQLAuthority News]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[SQL Replication]]></category>

		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1285</guid>
		<description><![CDATA[
Pro SQL Server 2005 Replication (Definitive Guide) (Hardcover)
by Sujoy Paul (Author) 

Link to Amazon (This is not affiliate link)
Quick Review:
This is good book for any novice developer to start in the world of database replication implementation and maintenance. Replication is important part of highly availability and one book covers all the concept and methodology at [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=1285&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;"><img class="alignleft" style="margin:10px;" src="http://www.pinaldave.com/blogfolder/proreplication.jpg" alt="" width="157" height="209" /></p>
<p style="text-align:justify;"><strong>Pro SQL Server 2005 Replication (Definitive Guide) (Hardcover)<br />
<em>by Sujoy Paul (Author) </em></strong>
</p>
<p style="text-align:justify;"><a href="http://www.amazon.com/dp/1590596501/" target="_blank">Link to Amazon</a> (This is not affiliate link)</p>
<p style="text-align:justify;"><strong>Quick Review:</strong><br />
This is good book for any novice developer to start in the world of database replication implementation and maintenance. Replication is important part of highly availability and one book covers all the concept and methodology at one place.</p>
<p style="text-align:justify;"><strong>Detail Review: </strong><br />
Replication is the process of sharing information so as to ensure consistency between redundant resources, such as software or hardware components, to improve reliability, fault-tolerance, or accessibility. Database replication can be used on many database management systems, usually with a master/slave relationship between the original and the copies. The master logs the updates, which then ripple through to the slaves. The slave outputs a message stating that it has received the update successfully, thus allowing the sending of subsequent updates.
</p>
<p style="text-align:justify;">This books talks about different replication types and methods. This book explains different scenarios where types of replication can be used. Sujoy Paul (SQL Server – MCP) explains the concept with many screenshots and simple examples. This book is not limited to replication types only but it also covers replication between heterogeneous databases and other objects.</p>
<p style="text-align:justify;"><strong>Pros :</strong></p>
<ul style="text-align:justify;">
<li>Lots of screen shots</li>
<li>Lots of explanation of how different procedures works</li>
<li>Good coverage of different kind of replications</li>
<li>Step by Step guidance</li>
<li>Complete coverage of any methodology</li>
<li>Truly useful to novice programmers</li>
</ul>
<p style="text-align:justify;"><strong>Cons:</strong></p>
<ul style="text-align:justify;">
<li>No discussion about potential errors can come across during replication process</li>
<li>Some of the screen shots are hard to read (Apress should look into this matter)</li>
<li>Some of the chapters are very blurry</li>
</ul>
<p style="text-align:justify;">Overall, this is great book for any novice developer who is beginning in the world of replication. Though this book covers many screenshots and material directly from Book On Line this is great collection of all the concept at any place. I have personally used this book when I was new DBA and have learned replication basics from this book.</p>
<p style="text-align:justify;"><strong>Stars: 4 Stars</strong></p>
<p style="text-align:justify;"><strong>Summary: </strong>This a comprehensive single source of information will save lots of time as there is no need to go through multiple books to implement and maintain replication solutions.</p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (</strong><a href="http://blog.SQLAuthority.com" target="_blank"><strong>http://blog.SQLAuthority.com</strong></a><strong>)</strong></p>
Posted in Database, DBA, Pinal Dave, SQL, SQL Authority, SQL Backup and Restore, SQL Data Storage, SQL Query, SQL Server, SQL Tips and Tricks, SQLAuthority Book Review, SQLAuthority News, T SQL, Technology Tagged: SQL Replication <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/1285/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/1285/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/1285/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/1285/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/1285/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/1285/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/1285/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/1285/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/1285/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/1285/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=1285&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2008/10/13/sqlauthority-news-book-review-pro-sql-server-2005-replication-definitive-guide/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>

		<media:content url="http://www.pinaldave.com/blogfolder/proreplication.jpg" medium="image" />
	</item>
		<item>
		<title>SQL SERVER &#8211; Guidelines and Coding Standards Complete List Download</title>
		<link>http://blog.sqlauthority.com/2008/09/25/sql-server-guidelines-and-coding-standards/</link>
		<comments>http://blog.sqlauthority.com/2008/09/25/sql-server-guidelines-and-coding-standards/#comments</comments>
		<pubDate>Thu, 25 Sep 2008 01:30:54 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Best Practices]]></category>
		<category><![CDATA[DBA]]></category>
		<category><![CDATA[Data Warehousing]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Coding Standards]]></category>
		<category><![CDATA[SQL Constraint and Keys]]></category>
		<category><![CDATA[SQL Cursor]]></category>
		<category><![CDATA[SQL Data Storage]]></category>
		<category><![CDATA[SQL Documentation]]></category>
		<category><![CDATA[SQL Download]]></category>
		<category><![CDATA[SQL Function]]></category>
		<category><![CDATA[SQL Index]]></category>
		<category><![CDATA[SQL Joins]]></category>
		<category><![CDATA[SQL Performance]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Scripts]]></category>
		<category><![CDATA[SQL Security]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Stored Procedure]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[SQL Trigger]]></category>
		<category><![CDATA[SQL Utility]]></category>
		<category><![CDATA[SQLAuthority]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1143</guid>
		<description><![CDATA[SQL SERVER &#8211; Guidelines and Coding Standards complete List Download
Coding standards and guidelines are very important for any developer on the path of successful career. A coding standard is a set of guidelines, rules and regulations on how to write code. Coding standards should be flexible enough or should take care of the situation where [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=1143&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><h2 style="text-align:justify;"><a href="http://www.pinaldave.com/best-sql-server-download.cfm?download=SQL-SERVER-Database-Coding-Standards-and-Guidelines-Complete-List-Download"><strong>SQL SERVER &#8211; Guidelines and Coding Standards complete List Download</strong></a></h2>
<p style="text-align:justify;">Coding standards and guidelines are very important for any developer on the path of successful career. A coding standard is a set of guidelines, rules and regulations on how to write code. Coding standards should be flexible enough or should take care of the situation where they should not prevent best practices for coding. They are basically the guidelines that one should follow for better understanding.</p>
<p style="text-align:justify;">The concept behind implementing coding standards and guidelines, is that the consistency and uniformity in programming so that if multiple people are working on the same code, it becomes easier to communicate, share with or understand each other’s work.</p>
<p style="text-align:justify;">With the goal of promoting good coding standards and guidelines I have created document which can guide developers.</p>
<p style="text-align:justify;"><a href="http://blog.sqlauthority.com/2008/09/23/sql-server-coding-standards-guidelines-part-1/" target="_blank"><strong>SQL SERVER &#8211; Guidelines and Coding Standards Part &#8211; 1</strong></a></p>
<p style="text-align:justify;"><a href="http://blog.sqlauthority.com/2008/09/24/sql-server-coding-standards-guidelines-part-2/" target="_blank"><strong>SQL SERVER &#8211; Guidelines and Coding Standards Part &#8211; 2</strong></a></p>
<h2 style="text-align:justify;"><a href="http://www.pinaldave.com/best-sql-server-download.cfm?download=SQL-SERVER-Database-Coding-Standards-and-Guidelines-Complete-List-Download"><strong>SQL SERVER &#8211; Guidelines and Coding Standards complete List Download</strong></a></h2>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (</strong><a href="http://blog.SQLAuthority.com" target="_blank"><strong>http://blog.SQLAuthority.com</strong></a><strong>)</strong></p>
Posted in Best Practices, Data Warehousing, Database, DBA, Pinal Dave, SQL, SQL Authority, SQL Coding Standards, SQL Constraint and Keys, SQL Cursor, SQL Data Storage, SQL Documentation, SQL Download, SQL Function, SQL Index, SQL Joins, SQL Performance, SQL Query, SQL Scripts, SQL Security, SQL Server, SQL Stored Procedure, SQL Tips and Tricks, SQL Trigger, SQL Utility, SQLAuthority, T SQL, Technology  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/1143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/1143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/1143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/1143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/1143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/1143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/1143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/1143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/1143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/1143/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=1143&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2008/09/25/sql-server-guidelines-and-coding-standards/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL SERVER &#8211; 2008 &#8211; Interview Questions and Answers Complete List Download</title>
		<link>http://blog.sqlauthority.com/2008/09/20/sql-server-2008-interview-questions-and-answers-complete-list-download/</link>
		<comments>http://blog.sqlauthority.com/2008/09/20/sql-server-2008-interview-questions-and-answers-complete-list-download/#comments</comments>
		<pubDate>Sat, 20 Sep 2008 01:30:39 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Constraint and Keys]]></category>
		<category><![CDATA[SQL Cursor]]></category>
		<category><![CDATA[SQL Data Storage]]></category>
		<category><![CDATA[SQL DateTime]]></category>
		<category><![CDATA[SQL Documentation]]></category>
		<category><![CDATA[SQL Download]]></category>
		<category><![CDATA[SQL Error Messages]]></category>
		<category><![CDATA[SQL Function]]></category>
		<category><![CDATA[SQL Index]]></category>
		<category><![CDATA[SQL Interview Questions and Answers]]></category>
		<category><![CDATA[SQL Joins]]></category>
		<category><![CDATA[SQL Performance]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Scripts]]></category>
		<category><![CDATA[SQL Security]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server DBCC]]></category>
		<category><![CDATA[SQL Stored Procedure]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[SQL Trigger]]></category>
		<category><![CDATA[SQL Utility]]></category>
		<category><![CDATA[SQLAuthority]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[SQL XML]]></category>

		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1134</guid>
		<description><![CDATA[Download SQL Server 2008 Interview Questions and Answers Complete List
Interview is very important event for any person. A good interview leads to good career if candidate is willing to learn. I always enjoy interview questions and answers series. This is my very humble attempt to write SQL Server 2008 interview questions and answers. SQL Server [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=1134&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><h2 style="text-align:justify;"><a href="http://www.pinaldave.com/best-sql-server-download.cfm?download=SQL-SERVER-2008-Download-Interview-Questions-and-Answers"><strong>Download SQL Server 2008 Interview Questions and Answers Complete List</strong></a></h2>
<p style="text-align:justify;">Interview is very important event for any person. A good interview leads to good career if candidate is willing to learn. I always enjoy interview questions and answers series. This is my very humble attempt to write SQL Server 2008 interview questions and answers. SQL Server is very large subject and not everything is usually asked in interview. In interview what matters the most is <strong>conceptual knowledge</strong> and <strong>learning attitude</strong>.</p>
<p style="text-align:justify;">I have listed all the series in this post so that it can be easily downloaded and used. All the questions are collected and listed in one PDF which is here to download. If you have any question or if you want to add to any of the question please send me mail or write a comment.</p>
<p style="text-align:justify;"><a href="http://blog.sqlauthority.com/2008/09/12/sql-server-2008-interview-questions-and-answers-part-1/"><strong>SQL SERVER &#8211; 2008 &#8211; Interview Questions and Answers &#8211; Part 1</strong></a></p>
<p style="text-align:justify;"><a href="http://blog.sqlauthority.com/2008/09/13/sql-server-2008-interview-questions-and-answers-part-2/"><strong>SQL SERVER &#8211; 2008 &#8211; Interview Questions and Answers &#8211; Part 2</strong></a></p>
<p style="text-align:justify;"><a href="http://blog.sqlauthority.com/2008/09/14/sql-server-2008-interview-questions-and-answers-part-3/"><strong>SQL SERVER &#8211; 2008 &#8211; Interview Questions and Answers &#8211; Part 3</strong></a></p>
<p style="text-align:justify;"><a href="http://blog.sqlauthority.com/2008/09/15/sql-server-2008-interview-questions-and-answers-part-4/"><strong>SQL SERVER &#8211; 2008 &#8211; Interview Questions and Answers &#8211; Part 4</strong></a></p>
<p style="text-align:justify;"><a href="http://blog.sqlauthority.com/2008/09/16/sql-server-2008-interview-questions-and-answers-part-5/"><strong>SQL SERVER &#8211; 2008 &#8211; Interview Questions and Answers &#8211; Part 5</strong></a></p>
<p style="text-align:justify;"><a href="http://blog.sqlauthority.com/2008/09/17/sql-server-2008-interview-questions-and-answers-part-6/"><strong>SQL SERVER &#8211; 2008 &#8211; Interview Questions and Answers &#8211; Part 6</strong></a></p>
<p style="text-align:justify;"><a href="http://blog.sqlauthority.com/2008/09/18/sql-server-2008-interview-questions-and-answers-part-7/"><strong>SQL SERVER &#8211; 2008 &#8211; Interview Questions and Answers &#8211; Part 7</strong></a></p>
<p style="text-align:justify;"><a href="http://blog.sqlauthority.com/2008/09/19/sql-server-2008-interview-questions-and-answers-part-8/"><strong>SQL SERVER &#8211; 2008 &#8211; Interview Questions and Answers &#8211; Part 8</strong></a></p>
<h2 style="text-align:justify;"><a href="http://www.pinaldave.com/best-sql-server-download.cfm?download=SQL-SERVER-2008-Download-Interview-Questions-and-Answers"><strong>Download SQL Server 2008 Interview Questions and Answers Complete List</strong></a></h2>
<p style="text-align:justify;">
<p style="text-align:justify;">Reference : <strong>Pinal Dave (</strong><a href="http://blog.SQLAuthority.com" target="_blank"><strong>http://blog.SQLAuthority.com</strong></a><strong>)</strong></p>
Posted in Database, Pinal Dave, SQL, SQL Authority, SQL Constraint and Keys, SQL Cursor, SQL Data Storage, SQL DateTime, SQL Documentation, SQL Download, SQL Error Messages, SQL Function, SQL Index, SQL Interview Questions and Answers, SQL Joins, SQL Performance, SQL Query, SQL Scripts, SQL Security, SQL Server, SQL Server DBCC, SQL Stored Procedure, SQL Tips and Tricks, SQL Trigger, SQL Utility, SQLAuthority, T SQL, Technology Tagged: SQL XML <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/1134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/1134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/1134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/1134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/1134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/1134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/1134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/1134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/1134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/1134/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=1134&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2008/09/20/sql-server-2008-interview-questions-and-answers-complete-list-download/feed/</wfw:commentRss>
		<slash:comments>55</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL SERVER &#8211; 2008 &#8211; Interview Questions and Answers &#8211; Part 8</title>
		<link>http://blog.sqlauthority.com/2008/09/19/sql-server-2008-interview-questions-and-answers-part-8/</link>
		<comments>http://blog.sqlauthority.com/2008/09/19/sql-server-2008-interview-questions-and-answers-part-8/#comments</comments>
		<pubDate>Fri, 19 Sep 2008 01:30:07 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Data Warehousing]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Data Storage]]></category>
		<category><![CDATA[SQL Function]]></category>
		<category><![CDATA[SQL Index]]></category>
		<category><![CDATA[SQL Interview Questions and Answers]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Scripts]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server DBCC]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[SQL Utility]]></category>
		<category><![CDATA[SQLAuthority]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1012</guid>
		<description><![CDATA[SQL SERVER &#8211; 2008 &#8211; Interview Questions and Answers Complete List Download
What is Data Compression?
In SQL SERVE 2008 Data Compression comes in two flavors:

 Row Compression
 Page Compression

Row Compression
Row compression changes the format of physical storage of data. It minimize the metadata (column information, length, offsets etc) associated with each record. Numeric data types and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=1012&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><h2 style="text-align:justify;"><strong><a href="http://blog.sqlauthority.com/2008/09/20/sql-server-2008-interview-questions-and-answers-complete-list-download/" target="_blank">SQL SERVER &#8211; 2008 &#8211; Interview Questions and Answers Complete List Download</a></strong></h2>
<p style="text-align:justify;"><strong>What is Data Compression?</strong></p>
<p style="text-align:justify;">In SQL SERVE 2008 Data Compression comes in two flavors:<strong></strong></p>
<ul class="unIndentedList" style="text-align:justify;">
<li> Row Compression</li>
<li> Page Compression</li>
</ul>
<p style="text-align:justify;"><strong>Row Compression</strong></p>
<p style="text-align:justify;">Row compression changes the format of physical storage of data. It minimize the metadata (column information, length, offsets etc) associated with each record. Numeric data types and fixed length strings are stored in variable-length storage format, just like Varchar.  (<a href="http://blog.sqlauthority.com/2008/07/06/sql-server-2008-introduction-to-row-compression/" target="_blank">Read More Here</a>)</p>
<p style="text-align:justify;"><strong>Page Compression</strong></p>
<p style="text-align:justify;">Page compression allows common data to be shared between rows for a given page. Its uses the following techniques to compress data:<strong></strong></p>
<ul class="unIndentedList" style="text-align:justify;">
<li> Row compression.</li>
<li> Prefix Compression. For every column in a page duplicate prefixes are identified. These prefixes are saved in compression information headers (CI) which resides after page header. A reference number is assigned to these prefixes and that reference number is replaced where ever those prefixes are being used.</li>
</ul>
<p style="text-align:justify;"><strong>Dictionary Compression</strong>.</p>
<p style="text-align:justify;">Dictionary compression searches for duplicate values throughout the page and stores them in CI. The main difference between prefix and dictionary compression is that prefix is only restricted to one column while dictionary is applicable to the complete page.</p>
<p style="text-align:justify;"><strong>What is use of DBCC Commands?</strong></p>
<p style="text-align:justify;">The Transact-SQL programming language provides DBCC statements that act as Database Console Commands for SQL Server.  DBCC commands are used to perform following tasks.</p>
<ul class="unIndentedList" style="text-align:justify;">
<li> Maintenance tasks on database, index, or filegroup.</li>
<li> Tasks that gather and display various types of information.</li>
<li> Validation operations on a database, table, index, catalog, filegroup, or allocation of database pages.</li>
<li> Miscellaneous tasks such as enabling trace flags or removing a DLL from memory.</li>
</ul>
<p style="text-align:justify;">(<a href="http://blog.sqlauthority.com/2007/05/15/sql-server-dbcc-commands-list-documented-and-undocumented/" target="_blank">Read More Here</a>)</p>
<p style="text-align:justify;"><strong>How to find tables without Indexes?</strong></p>
<p style="text-align:justify;">Run following query in Query Editor.</p>
<p style="text-align:justify;"><code style="font-size:12px;"><span style="color:blue;">USE </span><span style="color:gray;">&lt;</span><span style="color:black;">database_name</span><span style="color:gray;">&gt;;<br />
</span><span style="color:black;">GO<br />
</span><span style="color:blue;">SELECT </span><span style="color:black;">SCHEMA_NAME</span><span style="color:gray;">(</span><span style="color:black;">schema_id</span><span style="color:gray;">) </span><span style="color:blue;">AS </span><span style="color:black;">schema_name<br />
</span><span style="color:gray;">,</span><span style="color:black;">name </span><span style="color:blue;">AS </span><span style="color:black;">table_name<br />
</span><span style="color:blue;">FROM </span><span style="color:black;">sys.tables<br />
</span><span style="color:blue;">WHERE </span><span style="color:magenta;">OBJECTPROPERTY</span><span style="color:gray;">(</span><span style="color:magenta;">OBJECT_ID</span><span style="color:gray;">,</span><span style="color:red;">'IsIndexed'</span><span style="color:gray;">) </span><span style="color:blue;">= </span><span style="color:black;">0<br />
</span><span style="color:blue;">ORDER BY </span><span style="color:black;">schema_name</span><span style="color:gray;">, </span><span style="color:black;">table_name</span><span style="color:gray;">;<br />
</span><span style="color:black;">GO</span></code>
</p>
<p style="text-align:justify;"><strong>How to copy the tables, schema and views from one SQL Server to another?</strong></p>
<p style="text-align:justify;">There are multiple ways to do this.</p>
<ol style="text-align:justify;">
<li> &#8220;Detach Database&#8221; from one server and &#8220;Attach Database&#8221; to another server.</li>
<li> Manually script all the objects using SSMS and run the script on new server.</li>
<li> Use Wizard of SSMS. (<a href="http://blog.sqlauthority.com/2007/08/21/sql-server-2005-create-script-to-copy-database-schema-and-all-the-objects-stored-procedure-functions-triggers-tables-views-constraints-and-all-other-database-objects/" target="_blank">Read More Here</a>)</li>
</ol>
<p style="text-align:justify;"><strong>How to copy data from one table to another table?</strong></p>
<p style="text-align:justify;">There are multiple ways to do this.</p>
<p style="text-align:justify;"><strong><em>1) </em></strong><strong><em>INSERT INTO SELECT</em></strong></p>
<p style="text-align:justify;">This method is used when table is already created in the database earlier and data is to be inserted into this table from another table. If columns listed in insert clause and select clause are same, they are not required to list them.</p>
<p style="text-align:justify;"><strong><em>2) SELECT INTO</em></strong></p>
<p style="text-align:justify;">This method is used when table is not created earlier and needs to be created when data from one table is to be inserted into newly created table from another table. New table is created with same data types as selected columns.</p>
<p style="text-align:justify;">(<a href="http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/" target="_blank">Read More Here</a>)</p>
<p style="text-align:justify;"><strong>What is Catalog Views?</strong></p>
<p style="text-align:justify;">Catalog views return information that is used by the SQL Server Database Engine. Catalog Views are the most general interface to the catalog metadata and provide the most efficient way to obtain, transform, and present customized forms of this information. All user-available catalog metadata is exposed through catalog views.</p>
<p style="text-align:justify;"><strong>What is PIVOT and UNPIVOT?</strong></p>
<p style="text-align:justify;"><em>A Pivot Table</em> can automatically sort, count, and total the data stored in one table or spreadsheet and create a second table displaying the summarized data. The PIVOT operator turns the values of a specified column into column names, effectively rotating a table.</p>
<p style="text-align:justify;">UNPIVOT table is reverse of PIVOT Table. (<a href="http://blog.sqlauthority.com/2008/05/29/sql-server-unpivot-table-example/" target="_blank">Read More Here</a>)</p>
<p style="text-align:justify;"><strong>What is Filestream?</strong></p>
<p style="text-align:justify;">Filestream allows you to store large objects in the file system and have these files integrated within the database. It enables SQL Server based applications to store unstructured data such as documents, images, audios, videos etc. in the file system. FILESTREAM basically integrates the SQL Server Database Engine with New Technology File System (NTFS); it basically stores the data in varbinary (max) data type. Using this data type, the unstructured data is stored in the NTFS file system and the SQL Server Database Engine manages the link between the Filestream column and the actual file located in the NTFS. Using Transact SQL statements users can insert, update, delete and select the data stored in FILESTREAM enabled tables.</p>
<p style="text-align:justify;"><strong>What is Dirty Read ?</strong></p>
<p style="text-align:justify;">A dirty read occurs when two operations say, read and write occurs together giving the incorrect or unedited data. Suppose, A has changed a row, but has not committed the changes. B reads the uncommitted data but his view of the data may be wrong so that is Dirty Read.<strong> </strong></p>
<p style="text-align:justify;"><strong>What is SQLCMD?</strong></p>
<p style="text-align:justify;">sqlcmd is enhanced version of the isql and osql and it provides way more functionality than other two options. In other words sqlcmd is better replacement of isql (which will be deprecated eventually) and osql (not included in SQL Server 2005 RTM). sqlcmd can work two modes &#8211; i) BATCH and ii) interactive modes. (<a href="http://blog.sqlauthority.com/2007/09/06/sql-server-2005-introduction-and-explanation-to-sqlcmd/" target="_blank">Read More</a>)</p>
<p style="text-align:justify;"><strong>What is Aggregate Functions? </strong></p>
<p style="text-align:justify;">Aggregate functions perform a calculation on a set of values and return a single value. Aggregate functions ignore NULL values except COUNT function. HAVING clause is used, along with GROUP BY, for filtering query using aggregate values.</p>
<p style="text-align:justify;">Following functions are aggregate functions.</p>
<p style="text-align:justify;"><strong>AVG, MIN, CHECKSUM_AGG, SUM, COUNT, STDEV, COUNT_BIG, STDEVP, GROUPING, VAR, MAX, VARP </strong>(<a href="http://blog.sqlauthority.com/2008/01/19/sql-server-introduction-to-aggregate-functions/" target="_blank">Read More Here</a> )</p>
<p style="text-align:justify;"><strong>What do you mean by Table Sample?<br />
</strong>TABLESAMPLE allows you to extract a sampling of rows from a table in the FROM clause. The rows retrieved are random and they are not in any order. This sampling can be based on a percentage of number of rows. You can use TABLESAMPLE when only a sampling of rows is necessary for the application instead of a full result set. (<a href="http://blog.sqlauthority.com/2007/05/27/sql-server-2005-limiting-result-sets-by-using-tablesample-examples/" target="_blank">Read More Here</a>)</p>
<p style="text-align:justify;"><strong>What is Row_Number()?<br />
</strong>ROW_NUMBER() returns a column as an expression that contains the row&#8217;s number within the result set. This is only a number used in the context of the result set, if the result changes, the ROW_NUMBER() will change.
</p>
<p style="text-align:justify;"><strong>What are Ranking Functions?</strong></p>
<p style="text-align:justify;">Ranking functions return a ranking value for each row in a partition. All the ranking functions are non-deterministic. Different Ranking functions are:</p>
<p style="text-align:justify;"><strong><em>ROW_NUMBER () OVER ([&lt;partition_by_clause&gt;] &lt;order_by_clause&gt;)</em></strong><br />
Returns the sequential number of a row within a partition of a result set, starting at 1 for the first row in each partition.</p>
<p style="text-align:justify;"><strong><em>RANK () OVER ([&lt;partition_by_clause&gt;] &lt;order_by_clause&gt;)</em></strong><br />
Returns the rank of each row within the partition of a result set.</p>
<p style="text-align:justify;"><strong><em>DENSE_RANK () OVER ([&lt;partition_by_clause&gt;] &lt;order_by_clause&gt;)</em></strong><br />
Returns the rank of rows within the partition of a result set, without any gaps in the ranking. (<a href="http://blog.sqlauthority.com/2007/10/09/sql-server-2005-sample-example-of-ranking-functions-row_number-rank-dense_rank-ntile/" target="_blank">Read More Here</a> )
</p>
<p style="text-align:justify;"><strong>What is the difference between UNION and UNION ALL?</strong></p>
<p style="text-align:justify;"><strong><em>UNION</em></strong><em><br />
</em>The UNION command is used to select related information from two tables, much like the JOIN command. However, when using the UNION command all selected columns need to be of the same data type. With UNION, only distinct values are selected.<strong></strong></p>
<p style="text-align:justify;"><strong><em>UNION ALL</em></strong><em><br />
</em>The UNION ALL command is equal to the UNION command, except that UNION ALL selects all values.
</p>
<p style="text-align:justify;">The difference between Union and Union all is that Union all will not eliminate duplicate rows, instead it just pulls all rows from all tables fitting your query specifics and combines them into a table. (<a href="http://blog.sqlauthority.com/2007/03/10/sql-server-union-vs-union-all-which-is-better-for-performance/" target="_blank">Read More Here</a>)</p>
<p style="text-align:justify;"><strong>What is B-Tree?</strong></p>
<p style="text-align:justify;">The database server uses a B-tree structure to organize index information. B-Tree generally has following types of index pages or nodes:</p>
<ul class="unIndentedList" style="text-align:justify;">
<li> <em>root node:</em> A root node contains node pointers to branch nodes which can be only one.</li>
<li> <em>branch nodes:</em> A branch node contains pointers to leaf nodes or other branch nodes which can be two or more.</li>
<li> <em>leaf nodes</em>: A leaf node contains index items and horizontal pointers to other leaf nodes which can be many.</li>
</ul>
<p style="text-align:justify;">© Copyright 2000-2009<a title="Pinal Dave" href="http://www.pinaldave.com/" target="_blank"> Pinal Dave.</a> All Rights Reserved. <a href="http://blog.sqlauthority.com/" target="_blank">SQLAuthority.com</a></p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (</strong><a href="http://blog.SQLAuthority.com" target="_blank"><strong>http://blog.SQLAuthority.com</strong></a><strong>)</strong></p>
Posted in Data Warehousing, Database, Pinal Dave, SQL, SQL Authority, SQL Data Storage, SQL Function, SQL Index, SQL Interview Questions and Answers, SQL Query, SQL Scripts, SQL Server, SQL Server DBCC, SQL Tips and Tricks, SQL Utility, SQLAuthority, T SQL, Technology  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/1012/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/1012/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/1012/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/1012/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/1012/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/1012/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/1012/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/1012/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/1012/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/1012/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=1012&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2008/09/19/sql-server-2008-interview-questions-and-answers-part-8/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL SERVER &#8211; 2008 &#8211; Interview Questions and Answers &#8211; Part 6</title>
		<link>http://blog.sqlauthority.com/2008/09/17/sql-server-2008-interview-questions-and-answers-part-6/</link>
		<comments>http://blog.sqlauthority.com/2008/09/17/sql-server-2008-interview-questions-and-answers-part-6/#comments</comments>
		<pubDate>Wed, 17 Sep 2008 01:30:05 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Data Storage]]></category>
		<category><![CDATA[SQL DateTime]]></category>
		<category><![CDATA[SQL Function]]></category>
		<category><![CDATA[SQL Index]]></category>
		<category><![CDATA[SQL Interview Questions and Answers]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Scripts]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[SQL Utility]]></category>
		<category><![CDATA[SQLAuthority]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1008</guid>
		<description><![CDATA[SQL SERVER &#8211; 2008 &#8211; Interview Questions and Answers Complete List Download
3) Questions of SQL SERVER 2008
What are the basic functions for master, msdb, model, tempdb and resource databases?
The master database holds information for all databases located on the SQL Server instance and is theglue that holds the engine together. Because SQL Server cannot start [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=1008&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><h2 style="text-align:justify;"><strong><a href="http://blog.sqlauthority.com/2008/09/20/sql-server-2008-interview-questions-and-answers-complete-list-download/" target="_blank">SQL SERVER &#8211; 2008 &#8211; Interview Questions and Answers Complete List Download</a></strong></h2>
<p style="text-align:justify;"><strong>3) </strong><strong>Questions of SQL SERVER 2008</strong></p>
<p style="text-align:justify;"><strong>What are the basic functions for master, msdb, model, tempdb and resource databases?</strong></p>
<p style="text-align:justify;"><em>The <strong>master</strong> database </em>holds information for all databases located on the SQL Server instance and is theglue that holds the engine together. Because SQL Server cannot start without a functioning masterdatabase, you must administer this database with care.</p>
<p style="text-align:justify;"><em>The <strong>msdb</strong> database </em>stores information regarding database backups, SQL Agent information, DTS packages, SQL Server jobs, and some replication information such as for log shipping.</p>
<p style="text-align:justify;"><em>The <strong>tempdb</strong> </em>holds temporary objects such as global and local temporary tables and stored procedures.</p>
<p style="text-align:justify;"><em>The <strong>model</strong></em> is essentially a template database used in the creation of any new user database created in the instance.</p>
<p style="text-align:justify;"><em>The <strong>resoure</strong> Database </em>is a read-only database that contains all the system objects that are included with SQL Server. SQL Server system objects, such as sys.objects, are physically persisted in the Resource database, but they logically appear in the sys schema of every database. The Resource database does not contain user data or user metadata.</p>
<p style="text-align:justify;"><strong>What is Service Broker?</strong></p>
<p style="text-align:justify;">Service Broker is a message-queuing technology in SQL Server that allows developers to integrate SQL Server fully into distributed applications. Service Broker is feature which provides facility to SQL Server to send an asynchronous, transactional message. it allows a database to send a message to another database without waiting for the response, so the application will continue to function if the remote database is temporarily unavailable. (<a href="http://blog.sqlauthority.com/2008/07/18/sql-server-introduction-to-service-broker/" target="_blank">Read More Here</a>)</p>
<p style="text-align:justify;"><strong>Where SQL server user names and passwords are stored in SQL server?</strong></p>
<p style="text-align:justify;">They get stored in System Catalog Views sys.server_principals and sys.sql_logins.</p>
<p style="text-align:justify;"><strong>What is Policy Management?</strong></p>
<p style="text-align:justify;">Policy Management in SQL SERVER 2008 allows you to define and enforce policies for configuring and managing SQL Server across the enterprise. Policy-Based Management is configured in SQL Server Management Studio (SSMS).  Navigate to the Object Explorer and expand the Management node and the Policy Management node; you will see the Policies, Conditions, and Facets nodes. (<a href="http://blog.sqlauthority.com/2008/06/13/sql-server-2008-introduction-to-policy-management-enforcing-rules-on-sql-server/" target="_blank">Read More Here</a>)<strong></strong></p>
<p style="text-align:justify;"><strong>What is Replication and Database Mirroring?</strong></p>
<p style="text-align:justify;">Database mirroring can be used with replication to provide availability for the publication database. Database mirroring involves two copies of a single database that typically reside on different computers. At any given time, only one copy of the database is currently available to clients which are known as the principal database. Updates made by clients to the principal database are applied on the other copy of the database, known as the mirror database. Mirroring involves applying the transaction log from every insertion, update, or deletion made on the principal database onto the mirror database.</p>
<p style="text-align:justify;"><strong>What are Sparse Columns?</strong></p>
<p style="text-align:justify;">A sparse column<em> </em>is another tool used to reduce the amount of physical storage used in a database. They are the ordinary columns that have an optimized storage for null values. Sparse columns reduce the space requirements for null values at the cost of more overhead to retrieve nonnull values. (<a href="http://blog.sqlauthority.com/2008/07/10/sql-server-2008-introduction-to-sparse-columns/" target="_blank">Read More Here</a>)</p>
<p style="text-align:justify;"><strong>What does TOP Operator Do?</strong></p>
<p style="text-align:justify;">The TOP operator is used to specify the number of rows to be returned by a query. The TOP operator has new addition in SQL SERVER 2008 that it accepts variables as well as literal values and can be used with INSERT, UPDATE, and DELETES statements.</p>
<p style="text-align:justify;"><strong>What is CTE?</strong></p>
<p style="text-align:justify;">CTE is an abbreviation Common Table Expression. A Common Table Expression (CTE) is an expression that can be thought of as a temporary result set which is defined within the execution of a single SQL statement<strong>. </strong>A CTE is similar to a derived table in that it is not stored as an object and lasts only for the duration of the query. (<a href="http://blog.sqlauthority.com/2008/07/28/sql-server-simple-example-of-recursive-cte/" target="_blank">Read More Here</a>)</p>
<p style="text-align:justify;"><strong>What is MERGE Statement?</strong><strong><br />
</strong>MERGE is a new feature that provides an efficient way to perform multiple DML operations. In previous versions of SQL Server, we had to write separate statements to INSERT, UPDATE, or DELETE data based on certain conditions, but now, using MERGE statement we can include the logic of such data modifications in one statement that even checks when the data is matched then just update it and when unmatched then insert it. One of the most important advantages of MERGE statement is all the data is read and processed only once.  (<a href="http://blog.sqlauthority.com/2008/08/28/sql-server-2008-introduction-to-merge-statement-one-statement-for-insert-update-delete/" target="_blank">Read More Here</a>)
</p>
<p style="text-align:justify;"><strong>What is Filtered Index?</strong></p>
<p style="text-align:justify;">Filtered Index is used to index a portion of rows in a table that means it applies filter on INDEX which improves query performance, reduce index maintenance costs, and reduce index storage costs compared with full-table indexes. When we see an Index created with some where clause then that is actually a FILTERED INDEX.</p>
<p style="text-align:justify;"><strong>Which are new data types introduced in SQL SERVER 2008?</strong></p>
<p style="text-align:justify;"><strong><em>The GEOMETRY Type: </em></strong>The GEOMETRY data type is a system .NET common language runtime (CLR) data type in SQL Server. This type represents data in a two-dimensional Euclidean coordinate system.</p>
<p style="text-align:justify;"><strong><em>The GEOGRAPHY Type:</em></strong> The GEOGRAPHY datatype&#8217;s functions are the same as with GEOMETRY. The difference between the two is that when you specify GEOGRAPHY, you are usually specifying points in terms of latitude and longitude.</p>
<p style="text-align:justify;"><strong><em>New Date and Time Datatypes:</em></strong> SQL Server 2008 introduces four new datatypes related to date and time: DATE, TIME, DATETIMEOFFSET, and DATETIME2.</p>
<ul class="unIndentedList" style="text-align:justify;">
<li> <strong><em>DATE</em></strong><em>:</em> The new DATE type just stores the date itself. It is based on the Gregorian calendar and handles years from 1 to 9999.</li>
<li> <strong><em>TIME</em></strong><em>:</em> The new TIME (<em>n</em>) type stores time with a range of 00:00:00.0000000 through 23:59:59.9999999. The precision is allowed with this type. TIME supports seconds down to 100 nanoseconds. The <em>n </em>in TIME (<em>n</em>) defines this level of fractional second precision, from 0 to 7 digits of precision.</li>
</ul>
<ul class="unIndentedList" style="text-align:justify;">
<li> <strong><em>The DATETIMEOFFSET Type</em></strong>: DATETIMEOFFSET (<em>n</em>) is the time-zone-aware version of a datetime datatype. The name will appear less odd when you consider what it really is: a date + a time + a time-zone offset. The offset is based on how far behind or ahead you are from Coordinated Universal Time (UTC) time.</li>
</ul>
<ul class="unIndentedList" style="text-align:justify;">
<li> <strong><em>The DATETIME2 Type</em></strong>: It is an extension of the datetime type in earlier versions of SQL Server. This new datatype has a date range covering dates from January 1 of year 1 through December 31 of year 9999. This is a definite improvement over the 1753 lower boundary of the datetime datatype. DATETIME2 not only includes the larger date range, but also has a timestamp and the same fractional precision that TIME type provides</li>
</ul>
<p style="text-align:justify;"><strong>What are the Advantages of using CTE?</strong></p>
<ul class="unIndentedList" style="text-align:justify;">
<li> Using CTE improves the readability and makes maintenance of complex queries easy.</li>
<li> The query can be divided into separate, simple, logical building blocks which can be then used to build more complex CTEs until final result set is generated.</li>
<li> CTE can be defined in functions, stored procedures, triggers or even views.</li>
<li> After a CTE is defined, it can be used as a Table or a View and can SELECT, INSERT, UPDATE or DELETE Data.</li>
</ul>
<p style="text-align:justify;">© Copyright 2000-2009<a title="Pinal Dave" href="http://www.pinaldave.com/" target="_blank"> Pinal Dave.</a> All Rights Reserved. <a href="http://blog.sqlauthority.com/" target="_blank">SQLAuthority.com</a></p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (</strong><a href="http://blog.SQLAuthority.com" target="_blank"><strong>http://blog.SQLAuthority.com</strong></a><strong>)</strong></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sqlauthority.wordpress.com/1008/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sqlauthority.wordpress.com/1008/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/1008/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/1008/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/1008/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/1008/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/1008/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/1008/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/1008/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/1008/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/1008/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/1008/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=1008&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2008/09/17/sql-server-2008-interview-questions-and-answers-part-6/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>
	</item>
	</channel>
</rss>