<?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>SQL Journey</title>
	<atom:link href="http://sqljourney.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://sqljourney.wordpress.com</link>
	<description></description>
	<lastBuildDate>Mon, 31 Oct 2011 06:37:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='sqljourney.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>SQL Journey</title>
		<link>http://sqljourney.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://sqljourney.wordpress.com/osd.xml" title="SQL Journey" />
	<atom:link rel='hub' href='http://sqljourney.wordpress.com/?pushpress=hub'/>
		<item>
		<title>SQL Server: Allow Only Alpha Numeric Characters to a Column</title>
		<link>http://sqljourney.wordpress.com/2011/06/16/sql-server-allow-only-alpha-numeric-characters-to-a-column/</link>
		<comments>http://sqljourney.wordpress.com/2011/06/16/sql-server-allow-only-alpha-numeric-characters-to-a-column/#comments</comments>
		<pubDate>Thu, 16 Jun 2011 16:52:25 +0000</pubDate>
		<dc:creator>Prashant</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Allow Only Alpla Numeric Characters]]></category>
		<category><![CDATA[CHECK Constraint]]></category>
		<category><![CDATA[Constraints]]></category>

		<guid isPermaLink="false">http://sqljourney.wordpress.com/?p=303</guid>
		<description><![CDATA[Here is how to restrict non alpha numeric characters to a column in SQL Server --Create Demo Table CREATE TABLE AlphaNumDemo ( DemoCode NVARCHAR(100) ) GO --Restrict Special Characters ALTER TABLE AlphaNumDemo ADD CONSTRAINT CHK_AllowAplhaNumericCharactresOnly CHECK (DemoCode NOT LIKE '%[^a-zA-Z0-9 ]%') GO --Insert Test Data INSERT INTO AlphaNumDemo VALUES ('demo1') INSERT INTO AlphaNumDemo VALUES ('Demo1') [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqljourney.wordpress.com&amp;blog=14076446&amp;post=303&amp;subd=sqljourney&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://sqljourney.wordpress.com/2011/06/16/sql-server-allow-only-alpha-numeric-characters-to-a-column/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/69634a32c481d723b607bd04084ea106?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">excelelite</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL Server: Kill process running xp_cmdshell</title>
		<link>http://sqljourney.wordpress.com/2010/08/06/sql-server-kill-process-running-xp_cmdshell/</link>
		<comments>http://sqljourney.wordpress.com/2010/08/06/sql-server-kill-process-running-xp_cmdshell/#comments</comments>
		<pubDate>Fri, 06 Aug 2010 07:45:32 +0000</pubDate>
		<dc:creator>Prashant</dc:creator>
				<category><![CDATA[Kill Process]]></category>
		<category><![CDATA[Operating System]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[kill-xp_cmdshell]]></category>
		<category><![CDATA[Prashant Pattnaik]]></category>
		<category><![CDATA[SQL Journey]]></category>
		<category><![CDATA[xp_cmdshell]]></category>

		<guid isPermaLink="false">http://sqljourney.wordpress.com/?p=295</guid>
		<description><![CDATA[In our last post we discussed how to run a VB Script from SQL Server. Here I will share something interesting related to that task. Well, while extending the program logic of my VB Script I have used some message boxes to check the flow of some variable values. I also ran that script from [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqljourney.wordpress.com&amp;blog=14076446&amp;post=295&amp;subd=sqljourney&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://sqljourney.wordpress.com/2010/08/06/sql-server-kill-process-running-xp_cmdshell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/69634a32c481d723b607bd04084ea106?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">excelelite</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL Server: Running VB Script From TSQL</title>
		<link>http://sqljourney.wordpress.com/2010/08/03/sql-server-running-vb-script-from-tsql/</link>
		<comments>http://sqljourney.wordpress.com/2010/08/03/sql-server-running-vb-script-from-tsql/#comments</comments>
		<pubDate>Tue, 03 Aug 2010 08:40:36 +0000</pubDate>
		<dc:creator>Prashant</dc:creator>
				<category><![CDATA[Run VBScript from SQL Server]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Prashant Pattnaik]]></category>
		<category><![CDATA[run-vbscript-from-sql-server]]></category>
		<category><![CDATA[SQL Journey]]></category>
		<category><![CDATA[xp_cmdshell]]></category>

		<guid isPermaLink="false">http://sqljourney.wordpress.com/?p=280</guid>
		<description><![CDATA[In this post we will see if we can run a VB Script from SQL Server.  Yes, SQL Server allows to run external Scripts. So, here is the process how to run a VB Script from TSQL Code. Well to test this lets first create a sample VB Script which will just display a message. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqljourney.wordpress.com&amp;blog=14076446&amp;post=280&amp;subd=sqljourney&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://sqljourney.wordpress.com/2010/08/03/sql-server-running-vb-script-from-tsql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/69634a32c481d723b607bd04084ea106?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">excelelite</media:title>
		</media:content>

		<media:content url="http://sqljourney.files.wordpress.com/2010/08/vbs-from-commandline.png?w=300" medium="image">
			<media:title type="html">VBS-from-CommandLine</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL Server: SET vs SELECT in Variable Assignment</title>
		<link>http://sqljourney.wordpress.com/2010/07/14/pmost-set-select-interchangeably-assigning-values-variable-differences-post-discuss-diff-set-selectp/</link>
		<comments>http://sqljourney.wordpress.com/2010/07/14/pmost-set-select-interchangeably-assigning-values-variable-differences-post-discuss-diff-set-selectp/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 11:11:05 +0000</pubDate>
		<dc:creator>Prashant</dc:creator>
				<category><![CDATA[Database Development]]></category>
		<category><![CDATA[Interview Questions]]></category>
		<category><![CDATA[SET vs SELECT]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Prashant Pattnaik]]></category>
		<category><![CDATA[SELECT vs SET]]></category>
		<category><![CDATA[SQL Journey]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Variable Assignment]]></category>

		<guid isPermaLink="false">https://sqljourney.wordpress.com/2010/07/14/pmost-set-select-interchangeably-assigning-values-variable-differences-post-discuss-diff-set-selectp/</guid>
		<description><![CDATA[Most often we are using SET and SELECT interchangeably while assigning values to variable, however there are differences between them. In this post we will discuss some diff between SET and SELECT. SET can assign value to only one variable at a time, where as SELECT can assign values to multiple variables at once. Example [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqljourney.wordpress.com&amp;blog=14076446&amp;post=266&amp;subd=sqljourney&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://sqljourney.wordpress.com/2010/07/14/pmost-set-select-interchangeably-assigning-values-variable-differences-post-discuss-diff-set-selectp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/69634a32c481d723b607bd04084ea106?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">excelelite</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL Server: Remove Non-Alphanumeric Characters from a Column</title>
		<link>http://sqljourney.wordpress.com/2010/07/13/sql-server-remove-nonalphanumeric-special-characters-column/</link>
		<comments>http://sqljourney.wordpress.com/2010/07/13/sql-server-remove-nonalphanumeric-special-characters-column/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 11:44:23 +0000</pubDate>
		<dc:creator>Prashant</dc:creator>
				<category><![CDATA[Database Development]]></category>
		<category><![CDATA[Interview Questions]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[@@ROWCOUNT]]></category>
		<category><![CDATA[PATINDEX()]]></category>
		<category><![CDATA[Prashant Pattnaik]]></category>
		<category><![CDATA[Remove Non-alphanumeric Characters]]></category>
		<category><![CDATA[Remove Special Characters]]></category>
		<category><![CDATA[REPLACE()]]></category>
		<category><![CDATA[SQL Journey]]></category>
		<category><![CDATA[String Cleanup]]></category>
		<category><![CDATA[SubString]]></category>

		<guid isPermaLink="false">https://sqljourney.wordpress.com/2010/07/13/sql-server-remove-nonalphanumeric-special-characters-column/</guid>
		<description><![CDATA[In database we often need to clean the non-alphanumeric characters in some column of a table. Here is the code I use to remove non-alphanumeric characters in Sql Server. Create the table with sample data: 1: CREATE TABLE STRSTORE(COMMENT VARCHAR(2000)) 2:&#160; 3:&#160; 4: INSERT INTO STRSTORE(COMMENT) VALUES 5: ('1.We^lcom&#38;&#60;e&#62; to Sql{Journey}.&#38;'), 6: ('2=http://sqljourney.wordpress.com/'), 7: ('3#[S$tring] [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqljourney.wordpress.com&amp;blog=14076446&amp;post=264&amp;subd=sqljourney&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://sqljourney.wordpress.com/2010/07/13/sql-server-remove-nonalphanumeric-special-characters-column/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/69634a32c481d723b607bd04084ea106?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">excelelite</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL Server: Keyboard Shortcuts &#8211; Part 1</title>
		<link>http://sqljourney.wordpress.com/2010/07/08/keyboard-shortcuts-sql-server-management-studio-helps-write-clean-code-speed-updevelopment-works/</link>
		<comments>http://sqljourney.wordpress.com/2010/07/08/keyboard-shortcuts-sql-server-management-studio-helps-write-clean-code-speed-updevelopment-works/#comments</comments>
		<pubDate>Thu, 08 Jul 2010 07:24:15 +0000</pubDate>
		<dc:creator>Prashant</dc:creator>
				<category><![CDATA[Database Development]]></category>
		<category><![CDATA[Interview Questions]]></category>
		<category><![CDATA[Keyboard Shortcuts]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Prashant Pattnaik]]></category>
		<category><![CDATA[SQL Journey]]></category>

		<guid isPermaLink="false">https://sqljourney.wordpress.com/2010/07/08/keyboard-shortcuts-sql-server-management-studio-helps-write-clean-code-speed-updevelopment-works/</guid>
		<description><![CDATA[Writing clean code is an important part in development activity. People sometimes ignore this may be because of some or other reason, which creates difficult to understand the code in later stage when it need changes. Here are some quick keyboard shortcuts for SQL Server Management Studio, which helps to write clean code and speed [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqljourney.wordpress.com&amp;blog=14076446&amp;post=243&amp;subd=sqljourney&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://sqljourney.wordpress.com/2010/07/08/keyboard-shortcuts-sql-server-management-studio-helps-write-clean-code-speed-updevelopment-works/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/69634a32c481d723b607bd04084ea106?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">excelelite</media:title>
		</media:content>
	</item>
		<item>
		<title>Fixing Error: 8134 (Devided By Zero Error Encountered) in SQL Server</title>
		<link>http://sqljourney.wordpress.com/2010/07/02/fixing-error-8134-devided-by-zero-error-encountered-in-sql-server/</link>
		<comments>http://sqljourney.wordpress.com/2010/07/02/fixing-error-8134-devided-by-zero-error-encountered-in-sql-server/#comments</comments>
		<pubDate>Fri, 02 Jul 2010 12:15:28 +0000</pubDate>
		<dc:creator>Prashant</dc:creator>
				<category><![CDATA[Functions]]></category>
		<category><![CDATA[Interview Questions]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server Error]]></category>
		<category><![CDATA[arithabort]]></category>
		<category><![CDATA[divide by zero]]></category>
		<category><![CDATA[Prashant Pattnaik]]></category>
		<category><![CDATA[SQL Journey]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://sqljourney.wordpress.com/?p=209</guid>
		<description><![CDATA[Problem: While performing mathematical operations it throws Divided by zero error. Msg 8134, Level 16, State 1, Line 5 Divide by zero error encountered. This situation often arises in production databases if the script has not been tested with sufficient data before putting the script to production database. This happens when a number is divided [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqljourney.wordpress.com&amp;blog=14076446&amp;post=209&amp;subd=sqljourney&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://sqljourney.wordpress.com/2010/07/02/fixing-error-8134-devided-by-zero-error-encountered-in-sql-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/69634a32c481d723b607bd04084ea106?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">excelelite</media:title>
		</media:content>
	</item>
		<item>
		<title>Finding Nth highest number in SQL Server</title>
		<link>http://sqljourney.wordpress.com/2010/06/29/finding-nth-highest-number-in-sql-server/</link>
		<comments>http://sqljourney.wordpress.com/2010/06/29/finding-nth-highest-number-in-sql-server/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 06:15:47 +0000</pubDate>
		<dc:creator>Prashant</dc:creator>
				<category><![CDATA[Create Table]]></category>
		<category><![CDATA[CTE]]></category>
		<category><![CDATA[Data Types]]></category>
		<category><![CDATA[Functions]]></category>
		<category><![CDATA[Interview Questions]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Create table]]></category>
		<category><![CDATA[dense_rank()]]></category>
		<category><![CDATA[insert into]]></category>
		<category><![CDATA[Prashant Pattnaik]]></category>
		<category><![CDATA[SQL Journey]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://sqljourney.wordpress.com/?p=200</guid>
		<description><![CDATA[Many times you face this question while working with real time data and most interviews. In this post we will go through different ways to find the records with Nth highest number. Use this script to populate some sample data to test the results. CREATE TABLE PLAYER ( PLAYERID INT IDENTITY(100,2) NOT NULL, NAME VARCHAR(100) [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqljourney.wordpress.com&amp;blog=14076446&amp;post=200&amp;subd=sqljourney&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://sqljourney.wordpress.com/2010/06/29/finding-nth-highest-number-in-sql-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/69634a32c481d723b607bd04084ea106?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">excelelite</media:title>
		</media:content>
	</item>
		<item>
		<title>CHECK constraint with User Defined Function in SQL Server</title>
		<link>http://sqljourney.wordpress.com/2010/06/25/check-constraint-with-user-defined-function-in-sql-server/</link>
		<comments>http://sqljourney.wordpress.com/2010/06/25/check-constraint-with-user-defined-function-in-sql-server/#comments</comments>
		<pubDate>Fri, 25 Jun 2010 08:18:10 +0000</pubDate>
		<dc:creator>Prashant</dc:creator>
				<category><![CDATA[Constraints]]></category>
		<category><![CDATA[Create Table]]></category>
		<category><![CDATA[Functions]]></category>
		<category><![CDATA[Interview Questions]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[calculate age on date of birth]]></category>
		<category><![CDATA[Create table]]></category>
		<category><![CDATA[Prashant Pattnaik]]></category>
		<category><![CDATA[SQL Journey]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://sqljourney.wordpress.com/?p=190</guid>
		<description><![CDATA[This post describes how to use result of an user defined function with CHECK constraint in SQL Server.  For demonstration, considered a situation where it is not  allowed to insert or update records where calculated age of a person is less than 18 years as per his/her Date of Birth. So for this first we [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqljourney.wordpress.com&amp;blog=14076446&amp;post=190&amp;subd=sqljourney&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://sqljourney.wordpress.com/2010/06/25/check-constraint-with-user-defined-function-in-sql-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/69634a32c481d723b607bd04084ea106?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">excelelite</media:title>
		</media:content>
	</item>
		<item>
		<title>Generate Report with Alternate Order of an Attribute (say Gender) in SQL Server</title>
		<link>http://sqljourney.wordpress.com/2010/06/23/generate-result-with-alternate-order-of-an-attribute-say-gender-in-sql-server/</link>
		<comments>http://sqljourney.wordpress.com/2010/06/23/generate-result-with-alternate-order-of-an-attribute-say-gender-in-sql-server/#comments</comments>
		<pubDate>Wed, 23 Jun 2010 07:38:48 +0000</pubDate>
		<dc:creator>Prashant</dc:creator>
				<category><![CDATA[CTE]]></category>
		<category><![CDATA[Functions]]></category>
		<category><![CDATA[Interview Questions]]></category>
		<category><![CDATA[Reporting]]></category>
		<category><![CDATA[ROW_NUMBER()]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Prashant Pattnaik]]></category>
		<category><![CDATA[SQL Journey]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://sqljourney.wordpress.com/?p=179</guid>
		<description><![CDATA[Some times we may need to generate a report which display employees/customers in alternate order of any particular attribute.This post describes for employees with alternate order of Gender i.e. first a Male employee then a Female employee and so on or vice versa. In SQL Server this is just a simpler way. There could be [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqljourney.wordpress.com&amp;blog=14076446&amp;post=179&amp;subd=sqljourney&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://sqljourney.wordpress.com/2010/06/23/generate-result-with-alternate-order-of-an-attribute-say-gender-in-sql-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/69634a32c481d723b607bd04084ea106?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">excelelite</media:title>
		</media:content>
	</item>
	</channel>
</rss>
