<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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: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>Comments on: SQL SERVER &#8211; Guidelines and Coding Standards Part &#8211; 2</title>
	<atom:link href="http://blog.sqlauthority.com/2008/09/24/sql-server-coding-standards-guidelines-part-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2008/09/24/sql-server-coding-standards-guidelines-part-2/</link>
	<description>Notes of a SQL Server MVP and Database Administrator</description>
	<lastBuildDate>Wed, 17 Mar 2010 18:05:10 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Madeshwaran</title>
		<link>http://blog.sqlauthority.com/2008/09/24/sql-server-coding-standards-guidelines-part-2/#comment-52894</link>
		<dc:creator>Madeshwaran</dc:creator>
		<pubDate>Tue, 09 Jun 2009 23:10:24 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1110#comment-52894</guid>
		<description>I recently came to know your blog. Very good blog..</description>
		<content:encoded><![CDATA[<p>I recently came to know your blog. Very good blog..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajgopal</title>
		<link>http://blog.sqlauthority.com/2008/09/24/sql-server-coding-standards-guidelines-part-2/#comment-45389</link>
		<dc:creator>Rajgopal</dc:creator>
		<pubDate>Tue, 06 Jan 2009 06:11:00 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1110#comment-45389</guid>
		<description>Dear Pinal,

Recently, i came to know about your blog.  Lot of information gathered by me going through your site.  Awsome!!!!.  

I need to know more about cluster services and replication services offered by SQL 2005.  Effective use of both, advantages and disadvantages.

Thanks and regards

Rajgopal</description>
		<content:encoded><![CDATA[<p>Dear Pinal,</p>
<p>Recently, i came to know about your blog.  Lot of information gathered by me going through your site.  Awsome!!!!.  </p>
<p>I need to know more about cluster services and replication services offered by SQL 2005.  Effective use of both, advantages and disadvantages.</p>
<p>Thanks and regards</p>
<p>Rajgopal</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Parikshit Nemade</title>
		<link>http://blog.sqlauthority.com/2008/09/24/sql-server-coding-standards-guidelines-part-2/#comment-44383</link>
		<dc:creator>Parikshit Nemade</dc:creator>
		<pubDate>Tue, 25 Nov 2008 10:38:58 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1110#comment-44383</guid>
		<description>Very nice and helpfull articles.</description>
		<content:encoded><![CDATA[<p>Very nice and helpfull articles.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bijoy</title>
		<link>http://blog.sqlauthority.com/2008/09/24/sql-server-coding-standards-guidelines-part-2/#comment-43506</link>
		<dc:creator>Bijoy</dc:creator>
		<pubDate>Sat, 04 Oct 2008 11:15:37 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1110#comment-43506</guid>
		<description>i want to create a function which returns the following.
yyyyddmm#####
can you please help me out....

CREATE FUNCTION dbo.AutoGenerateID
	(
	
	@UserId char(15)
	
	)
RETURNS char(15)
AS
begin
	declare @date_extract char(8)
	declare @id_extract char(10)
	declare @max_id char(20)
	declare @userid1 char(15)
	declare @id_size char(10)			
	declare @temp1 char(15)
	declare @data char(10)
		
	set @max_id =  @userid

	set @date_extract = left(@max_id,8)
	set @id_size = LEN(@max_id) - LEN(@date_extract)
	set @id_extract = right(@max_id,@id_size)
	
	set @data = convert(varchar,getdate(),112)

	if ( @data = @date_extract) 
		 set @id_extract = id_extract + 1
	else
		set @id_extract = concat((repeat(&#039;0&#039;,@id_size-1)),&#039;1&#039;)
		set @date_extract = date
	end if
	set @userid1 = concat(@date_extract, @id_extract)
	set @temp1 = LEN(@max_id)-(LEN(@userid1))

	set @userid1 = concat(@date_extract,concat(repeat(&#039;0&#039;,@temp1),@id_extract))
	
	return @userid1
	
	GO</description>
		<content:encoded><![CDATA[<p>i want to create a function which returns the following.<br />
yyyyddmm#####<br />
can you please help me out&#8230;.</p>
<p>CREATE FUNCTION dbo.AutoGenerateID<br />
	(</p>
<p>	@UserId char(15)</p>
<p>	)<br />
RETURNS char(15)<br />
AS<br />
begin<br />
	declare @date_extract char(8)<br />
	declare @id_extract char(10)<br />
	declare @max_id char(20)<br />
	declare @userid1 char(15)<br />
	declare @id_size char(10)<br />
	declare @temp1 char(15)<br />
	declare @data char(10)</p>
<p>	set @max_id =  @userid</p>
<p>	set @date_extract = left(@max_id,8)<br />
	set @id_size = LEN(@max_id) &#8211; LEN(@date_extract)<br />
	set @id_extract = right(@max_id,@id_size)</p>
<p>	set @data = convert(varchar,getdate(),112)</p>
<p>	if ( @data = @date_extract)<br />
		 set @id_extract = id_extract + 1<br />
	else<br />
		set @id_extract = concat((repeat(&#8216;0&#8242;,@id_size-1)),&#8217;1&#8242;)<br />
		set @date_extract = date<br />
	end if<br />
	set @userid1 = concat(@date_extract, @id_extract)<br />
	set @temp1 = LEN(@max_id)-(LEN(@userid1))</p>
<p>	set @userid1 = concat(@date_extract,concat(repeat(&#8216;0&#8242;,@temp1),@id_extract))</p>
<p>	return @userid1</p>
<p>	GO</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER - Guidelines and Coding Standards Complete List Download Journey to SQL Authority with Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2008/09/24/sql-server-coding-standards-guidelines-part-2/#comment-43353</link>
		<dc:creator>SQL SERVER - Guidelines and Coding Standards Complete List Download Journey to SQL Authority with Pinal Dave</dc:creator>
		<pubDate>Mon, 29 Sep 2008 05:45:31 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1110#comment-43353</guid>
		<description>[...] SQL SERVER - Guidelines and Coding Standards Part - 2 [...]</description>
		<content:encoded><![CDATA[<p>[...] SQL SERVER &#8211; Guidelines and Coding Standards Part &#8211; 2 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: iliad</title>
		<link>http://blog.sqlauthority.com/2008/09/24/sql-server-coding-standards-guidelines-part-2/#comment-43236</link>
		<dc:creator>iliad</dc:creator>
		<pubDate>Thu, 25 Sep 2008 09:52:10 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1110#comment-43236</guid>
		<description>pinal AND stephen, THANKS FOR your comments.</description>
		<content:encoded><![CDATA[<p>pinal AND stephen, THANKS FOR your comments.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pinaldave</title>
		<link>http://blog.sqlauthority.com/2008/09/24/sql-server-coding-standards-guidelines-part-2/#comment-43205</link>
		<dc:creator>pinaldave</dc:creator>
		<pubDate>Wed, 24 Sep 2008 11:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1110#comment-43205</guid>
		<description>@iliad,

Yes, It is quite common to use Keywords in UPPER CASE.

It may be difficult to write and read in beggining but after a while it becomes second nature.

@Stephen,

I usually answer questions through email if I think it will be not useful to others.

If I think it is useful to everyone I post on blog.

Kind Regards,
Pinal Dave ( http://www.SQLAuthority.com )</description>
		<content:encoded><![CDATA[<p>@iliad,</p>
<p>Yes, It is quite common to use Keywords in UPPER CASE.</p>
<p>It may be difficult to write and read in beggining but after a while it becomes second nature.</p>
<p>@Stephen,</p>
<p>I usually answer questions through email if I think it will be not useful to others.</p>
<p>If I think it is useful to everyone I post on blog.</p>
<p>Kind Regards,<br />
Pinal Dave ( <a href="http://www.SQLAuthority.com" rel="nofollow">http://www.SQLAuthority.com</a> )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen Hill</title>
		<link>http://blog.sqlauthority.com/2008/09/24/sql-server-coding-standards-guidelines-part-2/#comment-43204</link>
		<dc:creator>Stephen Hill</dc:creator>
		<pubDate>Wed, 24 Sep 2008 11:16:15 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1110#comment-43204</guid>
		<description>@Iliad: I don&#039;t think the author of this blog ever reads his comments so I would expect a response.

I agree with what your saying though, even then typing in caps is the correct way to do it, I perfer to type my Sql in PascalCase so that it matches the style of my other languages.</description>
		<content:encoded><![CDATA[<p>@Iliad: I don&#8217;t think the author of this blog ever reads his comments so I would expect a response.</p>
<p>I agree with what your saying though, even then typing in caps is the correct way to do it, I perfer to type my Sql in PascalCase so that it matches the style of my other languages.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: iliad</title>
		<link>http://blog.sqlauthority.com/2008/09/24/sql-server-coding-standards-guidelines-part-2/#comment-43203</link>
		<dc:creator>iliad</dc:creator>
		<pubDate>Wed, 24 Sep 2008 09:42:31 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1110#comment-43203</guid>
		<description>I&#039;m just starting with T-SQL, so this series is the right guide at the right time. Thanks a lot!

I have one question. Do you really write all the SQL language keywords like (SELECT, FROM, JOIN, ON,...) with capital letters? From my newbie perspective this is 1) quite tiring to write; and 2) quite tiring to read. My eyes and fingers don&#039;t like it.</description>
		<content:encoded><![CDATA[<p>I&#8217;m just starting with T-SQL, so this series is the right guide at the right time. Thanks a lot!</p>
<p>I have one question. Do you really write all the SQL language keywords like (SELECT, FROM, JOIN, ON,&#8230;) with capital letters? From my newbie perspective this is 1) quite tiring to write; and 2) quite tiring to read. My eyes and fingers don&#8217;t like it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jahedur Rahman</title>
		<link>http://blog.sqlauthority.com/2008/09/24/sql-server-coding-standards-guidelines-part-2/#comment-43192</link>
		<dc:creator>Jahedur Rahman</dc:creator>
		<pubDate>Wed, 24 Sep 2008 04:34:16 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1110#comment-43192</guid>
		<description>I just came to know about your blog and became fan of your articles. I began to read previous posts. Thanks for your nice and helpful articles.</description>
		<content:encoded><![CDATA[<p>I just came to know about your blog and became fan of your articles. I began to read previous posts. Thanks for your nice and helpful articles.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
