<?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; Correct Syntax for Stored Procedure SP</title>
	<atom:link href="http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Thu, 09 Feb 2012 11:29:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-180748</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Wed, 19 Oct 2011 09:50:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-180748</guid>
		<description><![CDATA[Have a look at them in BOL, a SQL Server help file It has example codes as well as detailed information about them]]></description>
		<content:encoded><![CDATA[<p>Have a look at them in BOL, a SQL Server help file It has example codes as well as detailed information about them</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bojaraj</title>
		<link>http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-180228</link>
		<dc:creator><![CDATA[bojaraj]]></dc:creator>
		<pubDate>Tue, 18 Oct 2011 06:35:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-180228</guid>
		<description><![CDATA[I want to basic concept of sql stored procedures and code with example]]></description>
		<content:encoded><![CDATA[<p>I want to basic concept of sql stored procedures and code with example</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-161061</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Tue, 23 Aug 2011 14:47:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-161061</guid>
		<description><![CDATA[Create procedure proc_name
as
--procedure code here

GO

Create function func_name
returns datatype 
as
--procedure code here

return
GO


SQL Server help file will help you understand better]]></description>
		<content:encoded><![CDATA[<p>Create procedure proc_name<br />
as<br />
&#8211;procedure code here</p>
<p>GO</p>
<p>Create function func_name<br />
returns datatype<br />
as<br />
&#8211;procedure code here</p>
<p>return<br />
GO</p>
<p>SQL Server help file will help you understand better</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sathish</title>
		<link>http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-161010</link>
		<dc:creator><![CDATA[sathish]]></dc:creator>
		<pubDate>Tue, 23 Aug 2011 13:06:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-161010</guid>
		<description><![CDATA[i want to create a stored procedure and function in sql  any one pls help me.. give example and syntax]]></description>
		<content:encoded><![CDATA[<p>i want to create a stored procedure and function in sql  any one pls help me.. give example and syntax</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: manoj bhatt</title>
		<link>http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-135069</link>
		<dc:creator><![CDATA[manoj bhatt]]></dc:creator>
		<pubDate>Wed, 18 May 2011 20:28:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-135069</guid>
		<description><![CDATA[what r the basic difference between function and procedure]]></description>
		<content:encoded><![CDATA[<p>what r the basic difference between function and procedure</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-128441</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Tue, 12 Apr 2011 08:20:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-128441</guid>
		<description><![CDATA[Post some sample data with expected result]]></description>
		<content:encoded><![CDATA[<p>Post some sample data with expected result</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vartkes Nadjrian</title>
		<link>http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-128250</link>
		<dc:creator><![CDATA[Vartkes Nadjrian]]></dc:creator>
		<pubDate>Mon, 11 Apr 2011 10:26:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-128250</guid>
		<description><![CDATA[Hi, I&#039;m new to stored procedures. I can&#039;t seem to find resources on examples of Stored Procedures.

How can I write one to select a field from a table, do some calculations using that field, and then update the value of another field in the same table with the result of the calculation. In the select statement I need to select all the records so I&#039;m guessing there is a loop for the second part.]]></description>
		<content:encoded><![CDATA[<p>Hi, I&#8217;m new to stored procedures. I can&#8217;t seem to find resources on examples of Stored Procedures.</p>
<p>How can I write one to select a field from a table, do some calculations using that field, and then update the value of another field in the same table with the result of the calculation. In the select statement I need to select all the records so I&#8217;m guessing there is a loop for the second part.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-118640</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Tue, 15 Feb 2011 15:34:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-118640</guid>
		<description><![CDATA[It is optional. If you use IF statement it is better practice to use BEGIN and END]]></description>
		<content:encoded><![CDATA[<p>It is optional. If you use IF statement it is better practice to use BEGIN and END</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bhushan</title>
		<link>http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-117993</link>
		<dc:creator><![CDATA[Bhushan]]></dc:creator>
		<pubDate>Fri, 11 Feb 2011 06:48:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-117993</guid>
		<description><![CDATA[Is there any sence in writing begin at start and end at end of SP??

Is it working like transactions??

Please clarify me the use of begin and end.]]></description>
		<content:encoded><![CDATA[<p>Is there any sence in writing begin at start and end at end of SP??</p>
<p>Is it working like transactions??</p>
<p>Please clarify me the use of begin and end.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-88015</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Thu, 16 Sep 2010 11:10:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-88015</guid>
		<description><![CDATA[It is only for an example. You can use any number of statements inside BEGIN and END]]></description>
		<content:encoded><![CDATA[<p>It is only for an example. You can use any number of statements inside BEGIN and END</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Agnes</title>
		<link>http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-87998</link>
		<dc:creator><![CDATA[Agnes]]></dc:creator>
		<pubDate>Thu, 16 Sep 2010 06:51:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-87998</guid>
		<description><![CDATA[In your Guideliness of SQL Server , you have mention that &quot;Use BEGIN .. END blocks only when multiple statementa are present within a conditional code segment.&quot;
But the example you have given here contains only one statement where you have used BEGIN END block?]]></description>
		<content:encoded><![CDATA[<p>In your Guideliness of SQL Server , you have mention that &#8220;Use BEGIN .. END blocks only when multiple statementa are present within a conditional code segment.&#8221;<br />
But the example you have given here contains only one statement where you have used BEGIN END block?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-82654</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Mon, 02 Aug 2010 10:19:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-82654</guid>
		<description><![CDATA[Create database test

GO

Use test

GO

create table testing(i int)]]></description>
		<content:encoded><![CDATA[<p>Create database test</p>
<p>GO</p>
<p>Use test</p>
<p>GO</p>
<p>create table testing(i int)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-82653</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Mon, 02 Aug 2010 10:16:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-82653</guid>
		<description><![CDATA[Search for &quot;Learn SQL&quot; in google/bing]]></description>
		<content:encoded><![CDATA[<p>Search for &#8220;Learn SQL&#8221; in google/bing</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-82652</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Mon, 02 Aug 2010 10:15:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-82652</guid>
		<description><![CDATA[There is a datatype called tinyint in SQL Server whcih stores values between 0 and 255]]></description>
		<content:encoded><![CDATA[<p>There is a datatype called tinyint in SQL Server whcih stores values between 0 and 255</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JIgyanshu</title>
		<link>http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-82637</link>
		<dc:creator><![CDATA[JIgyanshu]]></dc:creator>
		<pubDate>Mon, 02 Aug 2010 07:22:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-82637</guid>
		<description><![CDATA[Hello sir..
I am working with SQL Server ,,
I don&#039;t know...
Create a Data base.
Create a table,
Please help me...
i am wait]]></description>
		<content:encoded><![CDATA[<p>Hello sir..<br />
I am working with SQL Server ,,<br />
I don&#8217;t know&#8230;<br />
Create a Data base.<br />
Create a table,<br />
Please help me&#8230;<br />
i am wait</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rohan</title>
		<link>http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-82636</link>
		<dc:creator><![CDATA[Rohan]]></dc:creator>
		<pubDate>Mon, 02 Aug 2010 07:19:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-82636</guid>
		<description><![CDATA[i want to  basic knowledge  Sql server....
please help me sir]]></description>
		<content:encoded><![CDATA[<p>i want to  basic knowledge  Sql server&#8230;.<br />
please help me sir</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rohan</title>
		<link>http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-82633</link>
		<dc:creator><![CDATA[Rohan]]></dc:creator>
		<pubDate>Mon, 02 Aug 2010 07:17:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-82633</guid>
		<description><![CDATA[Please help me sir....
i want know (TINY) in sql..
please reply me with Syntax]]></description>
		<content:encoded><![CDATA[<p>Please help me sir&#8230;.<br />
i want know (TINY) in sql..<br />
please reply me with Syntax</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-82301</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Fri, 30 Jul 2010 06:20:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-82301</guid>
		<description><![CDATA[Login to that specific user and create the objects]]></description>
		<content:encoded><![CDATA[<p>Login to that specific user and create the objects</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-82300</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Fri, 30 Jul 2010 06:18:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-82300</guid>
		<description><![CDATA[Can you be more specific on what you are trying to do?]]></description>
		<content:encoded><![CDATA[<p>Can you be more specific on what you are trying to do?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arul</title>
		<link>http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-82200</link>
		<dc:creator><![CDATA[Arul]]></dc:creator>
		<pubDate>Thu, 29 Jul 2010 11:34:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-82200</guid>
		<description><![CDATA[how to creat database and stored procedure in single schema
Regards
Arul]]></description>
		<content:encoded><![CDATA[<p>how to creat database and stored procedure in single schema<br />
Regards<br />
Arul</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: senthil</title>
		<link>http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-80390</link>
		<dc:creator><![CDATA[senthil]]></dc:creator>
		<pubDate>Thu, 15 Jul 2010 09:54:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-80390</guid>
		<description><![CDATA[how to create a store procedure to inner join]]></description>
		<content:encoded><![CDATA[<p>how to create a store procedure to inner join</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-78569</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Fri, 02 Jul 2010 11:20:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-78569</guid>
		<description><![CDATA[No impact. It is valid]]></description>
		<content:encoded><![CDATA[<p>No impact. It is valid</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JB</title>
		<link>http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-78550</link>
		<dc:creator><![CDATA[JB]]></dc:creator>
		<pubDate>Fri, 02 Jul 2010 07:52:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-78550</guid>
		<description><![CDATA[Hi,

Can we add sql select statements between &#039;AS&#039; and &#039;BEGIN&#039;? like ..

AS
	DECLARE	@sDate	varchar(20),
		@sNm	varchar(40),
		@sid int 

	SELECT  @sid= s_id 
	FROM	dbo.su 
	WHERE s_cd= @userid

BEGIN

Any impact?

- JB]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Can we add sql select statements between &#8216;AS&#8217; and &#8216;BEGIN&#8217;? like ..</p>
<p>AS<br />
	DECLARE	@sDate	varchar(20),<br />
		@sNm	varchar(40),<br />
		@sid int </p>
<p>	SELECT  @sid= s_id<br />
	FROM	dbo.su<br />
	WHERE s_cd= @userid</p>
<p>BEGIN</p>
<p>Any impact?</p>
<p>- JB</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-70834</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Fri, 14 May 2010 13:33:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-70834</guid>
		<description><![CDATA[Thanks Pinal]]></description>
		<content:encoded><![CDATA[<p>Thanks Pinal</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pinaldave</title>
		<link>http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-70833</link>
		<dc:creator><![CDATA[pinaldave]]></dc:creator>
		<pubDate>Fri, 14 May 2010 13:28:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/28/sql-server-correct-syntax-for-stored-procedure-sp/#comment-70833</guid>
		<description><![CDATA[James,

You are correct, with the help of Madhivanan I have corrected this post.

Many thanks to you and Many thanks to Madhi.

Kind Regards,
Pinal]]></description>
		<content:encoded><![CDATA[<p>James,</p>
<p>You are correct, with the help of Madhivanan I have corrected this post.</p>
<p>Many thanks to you and Many thanks to Madhi.</p>
<p>Kind Regards,<br />
Pinal</p>
]]></content:encoded>
	</item>
</channel>
</rss>

