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

<channel>
	<title>SQL Server Wave &#187; Uncategorized</title>
	<atom:link href="http://www.sqlserverwave.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sqlserverwave.com</link>
	<description>Views and Tips on SQL Server</description>
	<lastBuildDate>Fri, 22 Jul 2011 07:48:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Denali Contained Databases Not Compatible with Replication</title>
		<link>http://www.sqlserverwave.com/2011/07/21/denali-contained-database-not-compatible-with-replication/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=denali-contained-database-not-compatible-with-replication</link>
		<comments>http://www.sqlserverwave.com/2011/07/21/denali-contained-database-not-compatible-with-replication/#comments</comments>
		<pubDate>Thu, 21 Jul 2011 10:58:20 +0000</pubDate>
		<dc:creator>Arif</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.sqlserverwave.com/?p=249</guid>
		<description><![CDATA[I very much liked the idea of Contained Databases as it would make it much easier to move databases across different servers and even use this feature as part of a disaster recovery strategy. Here is really good article that explains how Contained Databases work in Denali: http://www.sqldbadiaries.com/2011/02/01/contained-databases-in-sql-server-denali/ While very excited about this feature, I [...]]]></description>
			<content:encoded><![CDATA[<p>I very much liked the idea of Contained Databases as it would make it much easier to move databases across different servers and even use this feature as part of a disaster recovery strategy. Here is really good article that explains how Contained Databases work in Denali:</p>
<p><a title="Contained Databases in Denali" href="http://www.sqldbadiaries.com/2011/02/01/contained-databases-in-sql-server-denali/" target="_blank">http://www.sqldbadiaries.com/2011/02/01/contained-databases-in-sql-server-denali/</a></p>
<p>While very excited about this feature, I came across a big issue as it is not supported on databases that are either part of Replication, Change Data Capture or Change Tracking.</p>
<p>Now, as most of the databases I have in production are replicated in one way or another, it simply will not be possible to use it.</p>
<p><a href="http://www.sqlserverwave.com/wp-content/uploads/2011/07/Contained-Database-Error2.png"><img class="aligncenter size-full wp-image-255" title="Contained Database Error" src="http://www.sqlserverwave.com/wp-content/uploads/2011/07/Contained-Database-Error2.png" alt="" width="613" height="602" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sqlserverwave.com/2011/07/21/denali-contained-database-not-compatible-with-replication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Run SQL queries in a batch file</title>
		<link>http://www.sqlserverwave.com/2010/07/14/run-sql-queries-in-a-batch-file/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=run-sql-queries-in-a-batch-file</link>
		<comments>http://www.sqlserverwave.com/2010/07/14/run-sql-queries-in-a-batch-file/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 09:49:40 +0000</pubDate>
		<dc:creator>Arif</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.sqlserverwave.com/?p=226</guid>
		<description><![CDATA[I recently had to delete records from a table regularly, every 10 minutes. I first obviously thought of setting up  a SQL Agent Job, easy!!! Now here is my problem, I am using SQL Server Express Edition, which doesn&#8217;t come with SQL Server Agent features. So the SQL way wasn&#8217;t an option. I then realised [...]]]></description>
			<content:encoded><![CDATA[<p>I recently had to delete records from a table regularly, every 10 minutes. I first obviously thought of setting up  a SQL Agent Job, easy!!!</p>
<p>Now here is my problem, I am using SQL Server Express Edition, which doesn&#8217;t come with SQL Server Agent features. So the SQL way wasn&#8217;t an option. I then realised that I could setup a scheduled task in Windows (XP) that would run a batch file every 10 minutes, job done!</p>
<p>Here is an example of the batch file:</p>
<pre>@ECHO OFF
cd C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn
SQLCMD -SserverName\instanceName -Uusername -Ppassword -Q"delete from DatabaseName.dbo.TableToDelete"
@ECHO OFF
</pre>
<p>Save it as something like Query.bat and call it via a scheduled task.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sqlserverwave.com/2010/07/14/run-sql-queries-in-a-batch-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

