<?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>Ajaxus place on the net</title>
	<atom:link href="http://ajaxus.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://ajaxus.net</link>
	<description>Newly published articles on web 2.0 topics and ASP.NET controls</description>
	<lastBuildDate>Mon, 19 Nov 2012 13:31:23 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>E-Book Gallery for Microsoft Technologies</title>
		<link>http://ajaxus.net/e-book-gallery-for-microsoft-technologies/</link>
		<comments>http://ajaxus.net/e-book-gallery-for-microsoft-technologies/#comments</comments>
		<pubDate>Fri, 15 Jun 2012 11:00:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.NET 4.0]]></category>
		<category><![CDATA[.NET 4.5]]></category>
		<category><![CDATA[ASP.NET MVC]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server 2012]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[MS SQL]]></category>
		<category><![CDATA[MVC 4]]></category>
		<category><![CDATA[Windows Azure]]></category>

		<guid isPermaLink="false">http://ajaxus.net/?p=563</guid>
		<description><![CDATA[Download existing and new content for ASP.NET, Office, SQL Server, Windows Azure, and other Microsoft technologies in e-book formats. Reference, guide, and step-by-step information are all available. All the e-books are free. New books will be posted as they become &#8230;<p class="read-more"><a href="http://ajaxus.net/e-book-gallery-for-microsoft-technologies/">Read more &#187;</a></p><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href='http://ajaxus.net/free-download-visual-web-developer-book/' rel='bookmark' title='Free download Visual Web Developer book!'>Free download Visual Web Developer book!</a></li>
<li><a href='http://ajaxus.net/introducing-microsoft-sql-server-2012/' rel='bookmark' title='Introducing Microsoft SQL Server 2012'>Introducing Microsoft SQL Server 2012</a></li>
<li><a href='http://ajaxus.net/2009-predictions-aspnet-linq-2-sql-vb-and-c-are-dead/' rel='bookmark' title='2009 Predictions &#8211; ASP.NET, LINQ 2 SQL, VB and C# are dead'>2009 Predictions &#8211; ASP.NET, LINQ 2 SQL, VB and C# are dead</a></li>
</ol>

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.
</div>
]]></description>
				<content:encoded><![CDATA[<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="medium" count="1" href="http://ajaxus.net/e-book-gallery-for-microsoft-technologies/"></g:plusone></div><p>Download existing and new content for ASP.NET, Office, SQL Server, Windows Azure, and other Microsoft technologies in e-book formats. Reference, guide, and step-by-step information are all available. All the e-books are free. New books will be posted as they become available.</p>
<ul>
<li>Deploying an ASP.NET Web Application to a Hosting Provider using Visual Studio</li>
<li>Getting Started with ASP.NET 4.5 Web Forms (Beta)</li>
<li>Intro to ASP.NET MVC 4 with Visual Studio (Beta)</li>
<li>Configure Kerberos Authentication for SharePoint 2010 Products</li>
<li>SQL Server Master Data Services Capacity Guidelines</li>
<li>Microsoft SQL Server AlwaysOn Solutions Guide for High Availability and Disaster Recovery</li>
<li>Microsoft SQL Server Analysis Services Multidimensional Performance and Operations Guide</li>
<li>QuickStart: Learn DAX Basics in 30 Minutes</li>
<li>SQL Server 2012 Transact-SQL DML Reference</li>
<li>Windows Azure Prescriptive Guidance</li>
<li>Windows Azure Service Bus Reference</li>
</ul>
<p>All the books are available in EPUB, MOBI, PDF format!</p>
<p>Download all the books from <a href="http://social.technet.microsoft.com/wiki/contents/articles/11608.e-book-gallery-for-microsoft-technologies.aspx" target="_blank">here</a>.</p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href='http://ajaxus.net/free-download-visual-web-developer-book/' rel='bookmark' title='Free download Visual Web Developer book!'>Free download Visual Web Developer book!</a></li>
<li><a href='http://ajaxus.net/introducing-microsoft-sql-server-2012/' rel='bookmark' title='Introducing Microsoft SQL Server 2012'>Introducing Microsoft SQL Server 2012</a></li>
<li><a href='http://ajaxus.net/2009-predictions-aspnet-linq-2-sql-vb-and-c-are-dead/' rel='bookmark' title='2009 Predictions &#8211; ASP.NET, LINQ 2 SQL, VB and C# are dead'>2009 Predictions &#8211; ASP.NET, LINQ 2 SQL, VB and C# are dead</a></li>
</ol></p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://ajaxus.net/e-book-gallery-for-microsoft-technologies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introducing Microsoft SQL Server 2012</title>
		<link>http://ajaxus.net/introducing-microsoft-sql-server-2012/</link>
		<comments>http://ajaxus.net/introducing-microsoft-sql-server-2012/#comments</comments>
		<pubDate>Tue, 17 Apr 2012 07:23:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SQL Server 2012]]></category>
		<category><![CDATA[ebook]]></category>
		<category><![CDATA[sql server 2012]]></category>

		<guid isPermaLink="false">http://ajaxus.net/?p=554</guid>
		<description><![CDATA[For tech guys here is a free Microsoft ebook. Its a 288 pages book that gets you into shape with latest SQL Server 2012. Microsoft SQL Server 2012 is Microsoft’s first cloud-ready information platform. It gives organizations effective tools to &#8230;<p class="read-more"><a href="http://ajaxus.net/introducing-microsoft-sql-server-2012/">Read more &#187;</a></p><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href='http://ajaxus.net/sql-server-2012-cheatsheet/' rel='bookmark' title='SQL Server 2012 Cheatsheet'>SQL Server 2012 Cheatsheet</a></li>
</ol>

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.
</div>
]]></description>
				<content:encoded><![CDATA[<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="medium" count="1" href="http://ajaxus.net/introducing-microsoft-sql-server-2012/"></g:plusone></div><p><img src="http://ajaxus.net/wp-content/uploads/2012/04/41rYAFQaxbL._BO2204203200_PIsitb-sticker-arrow-clickTopRight35-76_AA278_PIkin4BottomRight-4322_AA300_SH20_OU01_.jpg" alt="41rYAFQaxbL. BO2204203200 PIsitb sticker arrow clickTopRight35 76 AA278 PIkin4BottomRight 4322 AA300 SH20 OU01  Introducing Microsoft SQL Server 2012" title="Introducing Microsoft SQL Server 2012" width="300" height="300" class="alignleft size-full wp-image-555" />For tech guys here is a free Microsoft ebook. Its a 288 pages book that gets you into shape with latest SQL Server 2012.</p>
<blockquote><p>Microsoft SQL Server 2012 is Microsoft’s first cloud-ready information platform. It gives organizations effective tools to protect, unlock, and scale the power of their data, and it works<br />
across a variety of devices and data sources, from desktops, phones, and tablets, to datacenters and both private and public clouds. Our purpose in Introducing Microsoft SQL Server 2012 is to point out both the new and the improved capabilities as they apply to achieving mission-critical confidence, breakthrough insight, and using a cloud on your terms. </p>
<p>As you read this book, we think you will find that there are a lot of exciting enhancements and new capabilities engineered into SQL Server 2012 that allow you to greatly enhance performance and availability at a low total cost of ownership, unlock new insights with pervasive data discovery across the organization and create business solutions fast—on your terms.</p></blockquote>
<p>Download from <a target="_blank" href="http://ajaxus.net/wp-content/uploads/2012/04/microsoft_press_ebook_introducing_microsoft_sql_server_2012_pdf.pdf">here</a>.</p>
<p><a href="http://www.amazon.com/dp/B007PJ6DSW/ref=as_li_ss_til?tag=buzzmanagement&#038;camp=0&#038;creative=0&#038;linkCode=as4&#038;creativeASIN=B007PJ6DSW&#038;adid=0ZT3NNZ5E8NSP0SHVF44" target="_blank">You can get it for Kindle as well</a>.</p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href='http://ajaxus.net/sql-server-2012-cheatsheet/' rel='bookmark' title='SQL Server 2012 Cheatsheet'>SQL Server 2012 Cheatsheet</a></li>
</ol></p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://ajaxus.net/introducing-microsoft-sql-server-2012/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Server 2012 Cheatsheet</title>
		<link>http://ajaxus.net/sql-server-2012-cheatsheet/</link>
		<comments>http://ajaxus.net/sql-server-2012-cheatsheet/#comments</comments>
		<pubDate>Tue, 17 Apr 2012 07:12:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SQL Server 2012]]></category>
		<category><![CDATA[cheatsheet]]></category>
		<category><![CDATA[sql server 2012]]></category>

		<guid isPermaLink="false">http://ajaxus.net/?p=549</guid>
		<description><![CDATA[Pinal Dave has released his latest cheatsheet regarding the latest SQL Server 2012. Whats in there: SSMS Shortcuts Columnstore Index SQL Server 2012 Datetime Functions SQL Server Ranking Functions SQL Server 2012 Analytic functions Download from here.<div class='yarpp-related-rss yarpp-related-none'>

No related posts.
</div>
]]></description>
				<content:encoded><![CDATA[<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="medium" count="1" href="http://ajaxus.net/sql-server-2012-cheatsheet/"></g:plusone></div><p>Pinal Dave has released his latest cheatsheet regarding the latest SQL Server 2012. Whats in there:</p>
<ul>
<li>SSMS Shortcuts</li>
<li>Columnstore Index</li>
<li>SQL Server 2012 Datetime Functions</li>
<li>SQL Server Ranking Functions</li>
<li>SQL Server 2012 Analytic functions</li>
</ul>
<p>Download from <a target="_blank" title="SQL Server 2012 Cheatsheet" href='http://ajaxus.net/wp-content/uploads/2012/04/SQLServerCheatSheet.pdf'>here</a>.</p>
<div class='yarpp-related-rss yarpp-related-none'>
<p>No related posts.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://ajaxus.net/sql-server-2012-cheatsheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Validate asp.net multiline TextBox</title>
		<link>http://ajaxus.net/validate-asp-net-multiline-textbox/</link>
		<comments>http://ajaxus.net/validate-asp-net-multiline-textbox/#comments</comments>
		<pubDate>Thu, 15 Dec 2011 08:08:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.NET 3.5]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[multiline]]></category>
		<category><![CDATA[TextArea]]></category>

		<guid isPermaLink="false">http://ajaxus.net/?p=546</guid>
		<description><![CDATA[Because it is rendered to TextArea the MaxLength property does not work. One way around this is to attach a regular expression validator to that control. What is important is to set the ValidationExpression to something like &#8220;^[\s\S]{0,255}$&#8220;. Where 255 &#8230;<p class="read-more"><a href="http://ajaxus.net/validate-asp-net-multiline-textbox/">Read more &#187;</a></p><div class='yarpp-related-rss yarpp-related-none'>

No related posts.
</div>
]]></description>
				<content:encoded><![CDATA[<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="medium" count="1" href="http://ajaxus.net/validate-asp-net-multiline-textbox/"></g:plusone></div><p>Because it is rendered to TextArea the MaxLength property does not work. One way around this is to attach a regular expression validator to that control. What is important is to set the  ValidationExpression to something like &#8220;<strong>^[\s\S]{0,255}$</strong>&#8220;. Where 255 is the maximum length allowed.</p>
<p>Hope this helps <img src='http://ajaxus.net/wp-includes/images/smilies/icon_smile.gif' alt="icon smile Validate asp.net multiline TextBox" class='wp-smiley' title="Validate asp.net multiline TextBox" /> </p>
<div class='yarpp-related-rss yarpp-related-none'>
<p>No related posts.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://ajaxus.net/validate-asp-net-multiline-textbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is coming with VS2011 and Framework 4.5</title>
		<link>http://ajaxus.net/what-is-coming-with-vs2011-and-framework-4_5/</link>
		<comments>http://ajaxus.net/what-is-coming-with-vs2011-and-framework-4_5/#comments</comments>
		<pubDate>Sat, 24 Sep 2011 00:28:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.NET 4.5]]></category>
		<category><![CDATA[Visual Basic]]></category>
		<category><![CDATA[vNext]]></category>
		<category><![CDATA[VS 2011]]></category>

		<guid isPermaLink="false">http://ajaxus.net/?p=539</guid>
		<description><![CDATA[Read here from Scott Hanselman&#8217;s post. Download Links You likely only need this one download: Visual Studio 11 Developer Preview Visual Studio Team Foundation Server 11 Developer Preview Visual Studio Agents 11 Developer Preview Visual Studio 11 Developer Preview Remote &#8230;<p class="read-more"><a href="http://ajaxus.net/what-is-coming-with-vs2011-and-framework-4_5/">Read more &#187;</a></p><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href='http://ajaxus.net/what-is-the-difference-between-vb-9-vbx-and-silverlight-scott-wisniewski/' rel='bookmark' title='What is the difference between VB 9, VBx and Silverlight? (Scott Wisniewski)'>What is the difference between VB 9, VBx and Silverlight? (Scott Wisniewski)</a></li>
</ol>

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.
</div>
]]></description>
				<content:encoded><![CDATA[<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="medium" count="1" href="http://ajaxus.net/what-is-coming-with-vs2011-and-framework-4_5/"></g:plusone></div><p><img src="http://ajaxus.net/wp-content/uploads/2011/09/ASPNET_vNext.png" alt="ASPNET vNext What is coming with VS2011 and Framework 4.5" title="What is coming with VS2011 and Framework 4" width="198" height="145" class="alignleft size-full wp-image-540" />Read <a target="_blank" href="http://www.hanselman.com/blog/NewToolsAndNewContentASPNETVisualStudio11WebAndNET45DeveloperPreviewWithCommentary.aspx">here</a> from Scott Hanselman&#8217;s post.</p>
<h3>Download Links</h3>
<ul>
<li><strong>You likely only need this one download: <a href="http://go.microsoft.com/fwlink/?LinkId=225709">Visual Studio 11 Developer Preview</a></strong>
<ul>
<li><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Visual Studios - Living together" border="0" alt="image c0e3415f 6823 4c1f a405 099d87a9d0bf What is coming with VS2011 and Framework 4.5" src="http://www.hanselman.com/blog/content/binary/Windows-Live-Writer/ASP.NET-Visual-Studi.5-Developer-Preview_BB14/image_c0e3415f-6823-4c1f-a405-099d87a9d0bf.png" width="288" height="56" /> </li>
</ul>
</li>
<li><strong><a href="http://go.microsoft.com/fwlink/?LinkId=225714">Visual Studio Team Foundation Server 11 Developer Preview</a></strong> </li>
<li><strong><a href="http://go.microsoft.com/fwlink/?LinkId=225758">Visual Studio Agents 11 Developer Preview</a></strong> </li>
<li><strong><a href="http://go.microsoft.com/fwlink/?LinkId=225757">Visual Studio 11 Developer Preview Remote Debugger</a></strong> </li>
<li><strong><a href="http://go.microsoft.com/fwlink/?LinkId=225767">.NET Framework 4.5 Developer Preview</a></strong> </li>
</ul>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href='http://ajaxus.net/what-is-the-difference-between-vb-9-vbx-and-silverlight-scott-wisniewski/' rel='bookmark' title='What is the difference between VB 9, VBx and Silverlight? (Scott Wisniewski)'>What is the difference between VB 9, VBx and Silverlight? (Scott Wisniewski)</a></li>
</ol></p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://ajaxus.net/what-is-coming-with-vs2011-and-framework-4_5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Readmission to hospital within 28 days of discharge</title>
		<link>http://ajaxus.net/readmission-to-hospital-within-28-days-of-discharge/</link>
		<comments>http://ajaxus.net/readmission-to-hospital-within-28-days-of-discharge/#comments</comments>
		<pubDate>Mon, 05 Sep 2011 11:02:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MS SQL]]></category>
		<category><![CDATA[28 readmissins]]></category>
		<category><![CDATA[HES]]></category>
		<category><![CDATA[NHS]]></category>

		<guid isPermaLink="false">http://ajaxus.net/?p=525</guid>
		<description><![CDATA[This is very common question when we deal with patients in NHS data. Here is how the task is defined &#8211; Readmission rates and HES. In short we need to know how many times(or when) a patient was readmitted within &#8230;<p class="read-more"><a href="http://ajaxus.net/readmission-to-hospital-within-28-days-of-discharge/">Read more &#187;</a></p><div class='yarpp-related-rss yarpp-related-none'>

No related posts.
</div>
]]></description>
				<content:encoded><![CDATA[<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="medium" count="1" href="http://ajaxus.net/readmission-to-hospital-within-28-days-of-discharge/"></g:plusone></div><p>This is very common question when we deal with patients in NHS data. Here is how the task is defined &#8211; <a target="_blank" href="http://www.hesonline.nhs.uk/Ease/servlet/ContentServer?siteID=1937&#038;categoryID=927">Readmission rates and HES</a>. In short we need to know how many times(or when) a patient was readmitted within 28 days of his last hospital discharge. Here is how I do that in SQL with self join.</p>
<p>The dates are being transferred from &#8220;DDMMYYYY&#8221; to SQL server datetime &#8220;YYYY-mm-dd&#8221;.</p>
<p>You can always ad disease code or any other conditions to the query. Hope it helps!</p>
<p>The columns are:<br />
[Column 8] &#8211; Patient identifier<br />
[Column 11] &#8211; Admission date<br />
[Column 15] &#8211; Method of admission<br />
[Column 19] &#8211; Discharge date<br />
[Column 28] &#8211; Spell end &#8211; Yes/No<br />
[Column 123] &#8211; PCT code<br />
[Column 187] &#8211; Unique record ID</p>
<pre lang="sql">
SELECT a.[Column 8] as 'PatientID', a.[Column 15] as 'Method of Admission',
convert(datetime, STUFF(STUFF(a.[Column 11],3,0,'-'),6,0,'-'), 105) as 'Admission Date',
convert(datetime, STUFF(STUFF(a.[Column 19],3,0,'-'),6,0,'-'), 105) as 'Dischrage Date',
MIN(convert(datetime, STUFF(STUFF(b.[Column 11],3,0,'-'),6,0,'-'), 105)) AS 'Readmission Date',
left(a.[Column 123],3) as 'PCT',
DateDiff(dd, convert(datetime, STUFF(STUFF(a.[Column 19],3,0,'-'),6,0,'-'), 105), MIN(convert(datetime, STUFF(STUFF(b.[Column 11],3,0,'-'),6,0,'-'), 105))) AS 'How many days'
FROM Readmissions_data a
INNER JOIN Readmissions_data b ON a.[Column 8] = b.[Column 8]
	AND convert(datetime, STUFF(STUFF(b.[Column 11],3,0,'-'),6,0,'-'), 105) BETWEEN convert(datetime, STUFF(STUFF(a.[Column 19],3,0,'-'),6,0,'-'), 105) AND DATEADD(dd, 28, convert(datetime, STUFF(STUFF(a.[Column 19],3,0,'-'),6,0,'-'), 105))
WHERE a.[Column 28]='Y' AND a.[Column 19]<>'' AND (right(a.[Column 19],2)='09' OR right(a.[Column 19],2)='10') AND a.[Column 187]<>b.[Column 187]
GROUP BY a.[Column 8],a.[Column 15],left(a.[Column 123],3),convert(datetime, STUFF(STUFF(a.[Column 11],3,0,'-'),6,0,'-'), 105),convert(datetime, STUFF(STUFF(a.[Column 19],3,0,'-'),6,0,'-'), 105)
ORDER BY convert(datetime, STUFF(STUFF(a.[Column 11],3,0,'-'),6,0,'-'), 105)
</pre>
<div class='yarpp-related-rss yarpp-related-none'>
<p>No related posts.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://ajaxus.net/readmission-to-hospital-within-28-days-of-discharge/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clean whole database from unwanted string</title>
		<link>http://ajaxus.net/clean-whole-database-from-unwanted-string/</link>
		<comments>http://ajaxus.net/clean-whole-database-from-unwanted-string/#comments</comments>
		<pubDate>Tue, 07 Jun 2011 12:43:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[MS SQL]]></category>

		<guid isPermaLink="false">http://ajaxus.net/?p=518</guid>
		<description><![CDATA[Often we end up having an unwanted string injected into our database. It might be a virus or any text that you don&#8217;t need. This stored procedure is doing the hard work to remove all the unwanted instances. SET ANSI_NULLS &#8230;<p class="read-more"><a href="http://ajaxus.net/clean-whole-database-from-unwanted-string/">Read more &#187;</a></p><div class='yarpp-related-rss yarpp-related-none'>

No related posts.
</div>
]]></description>
				<content:encoded><![CDATA[<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="medium" count="1" href="http://ajaxus.net/clean-whole-database-from-unwanted-string/"></g:plusone></div><p>Often we end up having an unwanted string injected into our database. It might be a virus or any text that you don&#8217;t need. This stored procedure is doing the hard work to remove all the unwanted instances. </p>
<pre lang="sql">
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROC [dbo].[UpdateAllTables]
(
	@SearchStr nvarchar(100)
)
AS
BEGIN

	SET NOCOUNT ON

	DECLARE @TableName nvarchar(256), @ColumnName nvarchar(128), @SearchStr2 nvarchar(110)
	SET  @TableName = ''
	SET @SearchStr2 = QUOTENAME('%' + @SearchStr + '%','''')
	SET @SearchStr = QUOTENAME('' + @SearchStr + '','''')

	WHILE @TableName IS NOT NULL
	BEGIN
		SET @ColumnName = ''
		SET @TableName = 
		(
			SELECT MIN(QUOTENAME(TABLE_SCHEMA) + '.' + QUOTENAME(TABLE_NAME))
			FROM 	INFORMATION_SCHEMA.TABLES
			WHERE 		TABLE_TYPE = 'BASE TABLE'
				AND	QUOTENAME(TABLE_SCHEMA) + '.' + QUOTENAME(TABLE_NAME) > @TableName
				AND	OBJECTPROPERTY(
						OBJECT_ID(
							QUOTENAME(TABLE_SCHEMA) + '.' + QUOTENAME(TABLE_NAME)
							 ), 'IsMSShipped'
						       ) = 0
		)

		WHILE (@TableName IS NOT NULL) AND (@ColumnName IS NOT NULL)
		BEGIN
			SET @ColumnName =
			(
				SELECT MIN(QUOTENAME(COLUMN_NAME))
				FROM 	INFORMATION_SCHEMA.COLUMNS
				WHERE 		TABLE_SCHEMA	= PARSENAME(@TableName, 2)
					AND	TABLE_NAME	= PARSENAME(@TableName, 1)
					AND	DATA_TYPE IN ('char', 'varchar', 'nchar', 'nvarchar')
					AND	QUOTENAME(COLUMN_NAME) > @ColumnName
			)
	
			IF @ColumnName IS NOT NULL
			BEGIN
				EXEC
				(
					'UPDATE ' + @TableName + ' SET ' + @ColumnName + '=REPLACE(' + @ColumnName + ','+ @SearchStr + ','''') WHERE ' + @ColumnName + ' LIKE ' + @SearchStr2
				)
			END
		END	
	END

END

</pre>
<div class='yarpp-related-rss yarpp-related-none'>
<p>No related posts.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://ajaxus.net/clean-whole-database-from-unwanted-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Thursdays links part 2</title>
		<link>http://ajaxus.net/thursdays-links-part-2/</link>
		<comments>http://ajaxus.net/thursdays-links-part-2/#comments</comments>
		<pubDate>Wed, 01 Jun 2011 22:24:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ASP.NET MVC]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://ajaxus.net/?p=516</guid>
		<description><![CDATA[What is Node.js? Let&#8217;s start with V8. V8 is the JavaScript implementation used within Chrome. It utilises &#8220;Just In Time&#8221; compilation to achieve performance that was previously unattainable in JavaScript. In fact, these improvements lift V8 JavaScript into the same &#8230;<p class="read-more"><a href="http://ajaxus.net/thursdays-links-part-2/">Read more &#187;</a></p><div class='yarpp-related-rss yarpp-related-none'>

No related posts.
</div>
]]></description>
				<content:encoded><![CDATA[<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="medium" count="1" href="http://ajaxus.net/thursdays-links-part-2/"></g:plusone></div><p><a href="http://blogs.msdn.com/b/ukmsdn/archive/2011/06/01/featured-article-hello-node.aspx" target="_blank">What is Node.js?</a> </p>
<blockquote><p>Let&#8217;s start with V8. V8 is the JavaScript implementation used within Chrome. It utilises &#8220;Just In Time&#8221; compilation to achieve performance that was previously unattainable in JavaScript. In fact, these improvements lift V8 JavaScript into the same realms of performance as Clojure, Java or Go.</p></blockquote>
<p><a href="http://www.hanselman.com/blog/ShouldIUseHTML5OrSilverlightOneMansOpinion.aspx" target="_blank">Should I use HTML5 or Silverlight?</a></p>
<blockquote><p>I was in Belgium and The Netherlands this last week presenting and talking to folks in the community. After I presented on ASP.NET MVC 3, HTML5 and jQuery, one fellow came up after and said, &#8220;Should I use Silverlight or HTML5. I don&#8217;t understand what Microsoft&#8217;s strategy is or what to use in my app.&#8221;</p></blockquote>
<div class='yarpp-related-rss yarpp-related-none'>
<p>No related posts.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://ajaxus.net/thursdays-links-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Thursdays links</title>
		<link>http://ajaxus.net/thursdays-links/</link>
		<comments>http://ajaxus.net/thursdays-links/#comments</comments>
		<pubDate>Thu, 10 Feb 2011 10:39:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.NET 4.0]]></category>
		<category><![CDATA[Sencha]]></category>

		<guid isPermaLink="false">http://ajaxus.net/?p=514</guid>
		<description><![CDATA[Countdown to Ext JS 4: Drawing and Charting Build a Data-Driven Enterprise Web Site in 5 Minutes Understanding the Dynamic Keyword in C# 4<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href='http://ajaxus.net/couple-of-interesting-links/' rel='bookmark' title='Couple of interesting links'>Couple of interesting links</a></li>
</ol>

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.
</div>
]]></description>
				<content:encoded><![CDATA[<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="medium" count="1" href="http://ajaxus.net/thursdays-links/"></g:plusone></div><p><a target="_blank" rel="nofollow" href="http://www.sencha.com/blog/ext-js-4-preview-drawing-and-charting/">Countdown to Ext JS 4: Drawing and Charting</a></p>
<p><a target="_blank" rel="nofollow" href="http://msdn.microsoft.com/en-gb/magazine/gg535665.aspx">Build a Data-Driven Enterprise Web Site in 5 Minutes</a></p>
<p><a target="_blank" rel="nofollow" href="http://msdn.microsoft.com/en-gb/magazine/gg598922.aspx">Understanding the Dynamic Keyword in C# 4</a></p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href='http://ajaxus.net/couple-of-interesting-links/' rel='bookmark' title='Couple of interesting links'>Couple of interesting links</a></li>
</ol></p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://ajaxus.net/thursdays-links/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Programming Windows Phone 7 Free eBook</title>
		<link>http://ajaxus.net/programming-windows-phone-7-free-ebook/</link>
		<comments>http://ajaxus.net/programming-windows-phone-7-free-ebook/#comments</comments>
		<pubDate>Thu, 16 Dec 2010 17:05:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Windows Phone 7]]></category>
		<category><![CDATA[Charles Petzold]]></category>

		<guid isPermaLink="false">http://ajaxus.net/?p=511</guid>
		<description><![CDATA[This book is from the famous Charles Petzold. Here is the introduction: This book is a gift from the Windows Phone 7 team at Microsoft to the programming community, and I am proud to have been a part of it. &#8230;<p class="read-more"><a href="http://ajaxus.net/programming-windows-phone-7-free-ebook/">Read more &#187;</a></p><div class='yarpp-related-rss yarpp-related-none'>

No related posts.
</div>
]]></description>
				<content:encoded><![CDATA[<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="medium" count="1" href="http://ajaxus.net/programming-windows-phone-7-free-ebook/"></g:plusone></div><p><img src="http://ajaxus.net/wp-content/uploads/2010/12/ProgWinPhone7-246x300.jpg" alt="ProgWinPhone7 246x300 Programming Windows Phone 7 Free eBook" title="Programming Windows Phone 7 Free eBook" width="246" height="300" class="alignleft size-medium wp-image-512" />This book is from the famous Charles Petzold. Here is the introduction:</p>
<blockquote><p>This book is a gift from the Windows Phone 7 team at Microsoft to the programming community, and I am proud to have been a part of it. Within the pages that follow, I show you the basics of writing applications for Windows Phone 7 using the C# programming language with the Silverlight and XNA 2D frameworks.<br />
Yes, Programming Windows Phone 7 is truly a free download, but for those readers who still love paper—as I certainly do—this book will also be available (for sale) divided into two fully-indexed print editions: Microsoft Silverlight Programming for Windows Phone 7 and Microsoft XNA Framework Programming for Windows Phone 7.<br />
With the money you’ve saved downloading this book, please buy other books. Despite the plethora of information available online, books are still the best way to learn about programming within a coherent and cohesive tutorial narrative. Every book sale brings a tear of joy to an author’s eye, so please help make them weep overflowing rivers.<br />
In particular, you might want to buy other books to supplement the material in this book. For example, I barely mention Web services in this book, and that’s a serious deficiency because Web services are likely to become increasingly important in Windows Phone 7 applications. My coverage of XNA is limited to 2D graphics and while I hope to add several 3D chapters in the next edition of this book, I don’t really get into the whole Xbox LIVE community aspect of game development. Nor do I discuss any programming tools beyond Visual Studio—not even Expression Blend.<br />
My publisher Microsoft Press has a couple additional Windows Phone 7 books coming soon: Windows Phone 7 Silverlight Development Step by Step by Andy Wigley &#038; Peter Foot offers a more tools-oriented approach. Although Michael Stroh’s Windows Phone 7 Plain &#038; Simple is a guide to using the phone rather than developing for it, I suspect it will give developers some insights and ideas.<br />
Moreover, I also hear that my old friend Doug Boling is working hard on a Windows Phone 7 enterprise-programming book that is likely to be considered his masterpiece. Be sure to check out that one.</p></blockquote>
<p>To download click <a target="_blank" href="http://download.microsoft.com/download/5/0/A/50A39509-D015-410F-A8F2-A5511E5A988D/Microsoft_Press_ebook_Programming_Windows_Phone_7_PDF.pdf">here</a>.</p>
<div class='yarpp-related-rss yarpp-related-none'>
<p>No related posts.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://ajaxus.net/programming-windows-phone-7-free-ebook/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
