<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title><![CDATA[SQL Server Pro News Articles]]></title><link>http://www.sqlmag.com/home/rss/sqlnews</link><description><![CDATA[The latest articles from SQL Server Pro]]></description><language>en-US</language><pubDate>Sat, 26 May 2012 09:01:41 GMT</pubDate><lastBuildDate>Sat, 26 May 2012 09:01:41 GMT</lastBuildDate><managingEditor>brian.reinholz@penton.com (Managing Editor)</managingEditor><webMaster>service@sqlmag.com (Customer Service)</webMaster><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/SQLBytes" /><feedburner:info uri="sqlbytes" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item><title><![CDATA[SQL Injection – Beyond the Basics]]></title><link>http://feedproxy.google.com/~r/SQLBytes/~3/K5lLW-x3Y0g/sql-injection-basics-142364</link><description>&lt;img src="http://www.sqlmag.com/content/authors/1626.jpg" border="0" hspace="10" vspace="10" align="left" /&gt;&lt;br /&gt;By Michael K. Campbell&lt;br /&gt;Ensuring a proper understanding of core concepts and avoiding common pitfalls are the keys to protecting against SQL injection.&lt;img src="http://feeds.feedburner.com/~r/SQLBytes/~4/K5lLW-x3Y0g" height="1" width="1"/&gt;</description><dc:creator>Michael K. Campbell</dc:creator><pubDate>Wed, 23 May 2012 05:00:00 GMT</pubDate><guid isPermaLink="false">http://www.sqlmag.com/article/sql-server/sql-injection-basics-142364</guid><feedburner:origLink>http://www.sqlmag.com/article/sql-server/sql-injection-basics-142364</feedburner:origLink></item><item><title><![CDATA[Product Review: NetWrix SQL Server Change Reporter 2.2]]></title><link>http://feedproxy.google.com/~r/SQLBytes/~3/oKl9RXM1Nqc/netwrix-sql-server-change-reporter-142820</link><description>By: Robert Pearl&lt;br /&gt;This change-auditing solution lets you monitor, track, and report changes occurring on multiple SQL Server instances across a company.&lt;img src="http://feeds.feedburner.com/~r/SQLBytes/~4/oKl9RXM1Nqc" height="1" width="1"/&gt;</description><dc:creator>Robert Pearl</dc:creator><pubDate>Tue, 22 May 2012 18:00:00 GMT</pubDate><guid isPermaLink="false">http://www.sqlmag.com/article/product-review/netwrix-sql-server-change-reporter-142820</guid><feedburner:origLink>http://www.sqlmag.com/article/product-review/netwrix-sql-server-change-reporter-142820</feedburner:origLink></item><item><title><![CDATA[Introducing Microsoft Power View]]></title><link>http://feedproxy.google.com/~r/SQLBytes/~3/AWHI0e--FxQ/introducing-microsoft-power-view-142663</link><description>&lt;img src="http://www.sqlmag.com/content/authors/1574.jpg" border="0" hspace="10" vspace="10" align="left" /&gt;&lt;br /&gt;By Tyler Chessman&lt;br /&gt;Power View is an easy-to-use business intelligence (BI) tool that helps people make sense of their data.&lt;img src="http://feeds.feedburner.com/~r/SQLBytes/~4/AWHI0e--FxQ" height="1" width="1"/&gt;</description><dc:creator>Tyler Chessman</dc:creator><pubDate>Tue, 22 May 2012 15:17:00 GMT</pubDate><guid isPermaLink="false">http://www.sqlmag.com/article/sql-server/introducing-microsoft-power-view-142663</guid><feedburner:origLink>http://www.sqlmag.com/article/sql-server/introducing-microsoft-power-view-142663</feedburner:origLink></item><item><title><![CDATA[Using Registered Servers in SSMS]]></title><link>http://feedproxy.google.com/~r/SQLBytes/~3/aDTb5V7Qet4/registered-servers-142469</link><description>&lt;img src="http://www.sqlmag.com/content/authors/5795617.jpg" border="0" hspace="10" vspace="10" align="left" /&gt;&lt;br /&gt;By Sarbjit Singh Gugnani&lt;br /&gt;The Registered Servers tool in SQL Server Management Studio lets you easily save the connection information for multiple SQL Server instances.&lt;img src="http://feeds.feedburner.com/~r/SQLBytes/~4/aDTb5V7Qet4" height="1" width="1"/&gt;</description><dc:creator>Sarbjit Singh Gugnani</dc:creator><pubDate>Tue, 22 May 2012 12:11:00 GMT</pubDate><guid isPermaLink="false">http://www.sqlmag.com/article/sql-server/registered-servers-142469</guid><feedburner:origLink>http://www.sqlmag.com/article/sql-server/registered-servers-142469</feedburner:origLink></item><item><title><![CDATA[Query Performance Tuning]]></title><link>http://feedproxy.google.com/~r/SQLBytes/~3/XW5ZnxHevig/query-performance-tuning-142267</link><description>&lt;img src="http://www.sqlmag.com/content/authors/5022653.jpg" border="0" hspace="10" vspace="10" align="left" /&gt;&lt;br /&gt;By Denny Cherry&lt;br /&gt;Performance tuning is half science and half art form. Learn about the science half of the tuning process.&lt;img src="http://feeds.feedburner.com/~r/SQLBytes/~4/XW5ZnxHevig" height="1" width="1"/&gt;</description><dc:creator>Denny Cherry</dc:creator><pubDate>Tue, 22 May 2012 11:27:00 GMT</pubDate><guid isPermaLink="false">http://www.sqlmag.com/article/performancetuning/query-performance-tuning-142267</guid><feedburner:origLink>http://www.sqlmag.com/article/performancetuning/query-performance-tuning-142267</feedburner:origLink></item><item><title><![CDATA[T-SQL Best Practices, Part 2]]></title><link>http://feedproxy.google.com/~r/SQLBytes/~3/ySipALvXZdc/tsql-best-practices-141537</link><description>&lt;img src="http://www.sqlmag.com/content/authors/5779340.jpg" border="0" hspace="10" vspace="10" align="left" /&gt;&lt;br /&gt;By Itzik Ben-Gan&lt;br /&gt;Itzik continues his discussion of T-SQL best practices; he discusses cloud compatibility, date and time best practices, the importance of writing in a standard way, and performance-related best practices.&lt;img src="http://feeds.feedburner.com/~r/SQLBytes/~4/ySipALvXZdc" height="1" width="1"/&gt;</description><dc:creator>Itzik Ben-Gan</dc:creator><pubDate>Tue, 22 May 2012 10:07:00 GMT</pubDate><guid isPermaLink="false">http://www.sqlmag.com/article/tsql/tsql-best-practices-141537</guid><feedburner:origLink>http://www.sqlmag.com/article/tsql/tsql-best-practices-141537</feedburner:origLink></item><item><title><![CDATA[Things You Might Not Know about SQL Server 2012]]></title><link>http://feedproxy.google.com/~r/SQLBytes/~3/XBJ_G8wRRT0/sql-server-2012-142813</link><description>&lt;img src="http://www.sqlmag.com/content/authors/61.jpg" border="0" hspace="10" vspace="10" align="left" /&gt;&lt;br /&gt;By Michael Otey&lt;br /&gt;Microsoft SQL Server 2012 has major new features, such as the new Business Intelligence edition, as well as smaller changes to licensing and a new LocalDB edition.&lt;img src="http://feeds.feedburner.com/~r/SQLBytes/~4/XBJ_G8wRRT0" height="1" width="1"/&gt;</description><dc:creator>Michael Otey</dc:creator><pubDate>Tue, 22 May 2012 09:38:00 GMT</pubDate><guid isPermaLink="false">http://www.sqlmag.com/article/sql-server-2012/sql-server-2012-142813</guid><feedburner:origLink>http://www.sqlmag.com/article/sql-server-2012/sql-server-2012-142813</feedburner:origLink></item><item><title><![CDATA[SQL Server Database Corruption–Part X: Page Level Restore Operations]]></title><link>http://feedproxy.google.com/~r/SQLBytes/~3/bO5iN-DgIlg/sql-server-database-corruptionndashpart-page-level-restore-operations-143132</link><description>&lt;img src="http://www.sqlmag.com/content/authors/1626.jpg" border="0" hspace="10" vspace="10" align="left" /&gt;&lt;br /&gt;By Michael K. Campbell&lt;br /&gt;In my previous post in my ongoing series on SQL Server database corruption I covered a list of best practices for responding to database corruption when it happens. In that post I mentioned that I’d provide a follow-up post on the specifics of how to execute page-level restore operations from within SQL Server.  Page Level Restore Operations  As documented in Books Online, SQL Server’s RESTORE DATABASE command has an optional parameter or switch that instructs it to only restore one or more pages instead of an entire database – which is very handy and helpful in dealing with situations in which only a hand-full of pages have been corrupted by some sort of problem with the IO subsystem.   Accordingly, the basic order of operations for this kind of operation is as follows     Kick the database into single user mode. You can set the database to RESTRICTED_USER, but if you have end-users or applications connecting using logins that map to the db_owner role, they’ll still be able to connect to the database. So use SINGLE_USER mode instead and do NOT close the query window you use to set to SINGLE_USER.      To set the database to SINGLE_USER mode, execute the following:             ALTER DATABASE &lt;yourDbNameHere&gt; SET SINGLE_USER       WITH ROLLBACK AFTER 10 SECONDS       GO             And note that the WITH ROLLBACK AFTER n SECONDS option can/will kill connections and on-going operations. It’s documented in here (towards the end of the page). Likewise note that to pull this recovery operation off you’re, OBVIOUSLY, kicking everyone out of the database.     Then, START your recovery process by backing up the tail-end of the log file – or the portion of your log file that hasn’t already been backed up. (This is CRITICAL as it ensures that all operations up to a certain point have been accounted for. And you’ll want to do this AFTER switching the database to SINGLE_USER mode – otherwise you risk allowing a few operations to ‘sneak’ by – which means that end-users or&lt;img src="http://feeds.feedburner.com/~r/SQLBytes/~4/bO5iN-DgIlg" height="1" width="1"/&gt;</description><dc:creator>Michael K. Campbell</dc:creator><pubDate>Fri, 18 May 2012 18:18:46 GMT</pubDate><guid isPermaLink="false">http://www.sqlmag.com/blog/practical-sql-server-45/sql-server-2012/sql-server-database-corruptionndashpart-page-level-restore-operations-143132</guid><feedburner:origLink>http://www.sqlmag.com/blog/practical-sql-server-45/sql-server-2012/sql-server-database-corruptionndashpart-page-level-restore-operations-143132</feedburner:origLink></item></channel></rss>

