<?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; 2005 &#8211; Search Stored Procedure Code &#8211; Search Stored Procedure Text</title>
	<atom:link href="http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Mon, 13 Feb 2012 15:11:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Dims</title>
		<link>http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-235969</link>
		<dc:creator><![CDATA[Dims]]></dc:creator>
		<pubDate>Thu, 12 Jan 2012 10:37:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-235969</guid>
		<description><![CDATA[hello sir 

I want to search a particular string from text  and retrieve the sub-string which is separated by &#039;.&#039; and that sentence contains searching string]]></description>
		<content:encoded><![CDATA[<p>hello sir </p>
<p>I want to search a particular string from text  and retrieve the sub-string which is separated by &#8216;.&#8217; and that sentence contains searching string</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-231187</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Wed, 04 Jan 2012 11:05:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-231187</guid>
		<description><![CDATA[You can call another procedure inside the main procedure that uses main procedure&#039;s argument]]></description>
		<content:encoded><![CDATA[<p>You can call another procedure inside the main procedure that uses main procedure&#8217;s argument</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ANU</title>
		<link>http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-226514</link>
		<dc:creator><![CDATA[ANU]]></dc:creator>
		<pubDate>Tue, 27 Dec 2011 04:26:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-226514</guid>
		<description><![CDATA[I HAVE TO PASS ARGUEMENTS FROM ONE SP TO ANOTHER. WHAT SHOULD I DO????]]></description>
		<content:encoded><![CDATA[<p>I HAVE TO PASS ARGUEMENTS FROM ONE SP TO ANOTHER. WHAT SHOULD I DO????</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Poongodi</title>
		<link>http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-203717</link>
		<dc:creator><![CDATA[Poongodi]]></dc:creator>
		<pubDate>Thu, 24 Nov 2011 14:43:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-203717</guid>
		<description><![CDATA[Hi, 
    I have written stored procedure with the where clause(e.g description=&#039;End of process&#039;). Can i find stored procedures with the above description.


Thanks
Poongodi]]></description>
		<content:encoded><![CDATA[<p>Hi,<br />
    I have written stored procedure with the where clause(e.g description=&#8217;End of process&#8217;). Can i find stored procedures with the above description.</p>
<p>Thanks<br />
Poongodi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kaushal</title>
		<link>http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-139043</link>
		<dc:creator><![CDATA[kaushal]]></dc:creator>
		<pubDate>Sun, 05 Jun 2011 16:45:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-139043</guid>
		<description><![CDATA[hello sir ... I am using 3 updated query inside the stored procedure... Like..


declare @qry nvarchar(500)
begin transaction
update table1 set status=&#039;A&#039; where appno=@appno

update table2 set entrydate=@entrydate where appno=@appno

set @qry=&#039;update &#039; + tablename+ &#039; set status=@status where appno=@appno
exec sp_executesql @qry

commit transaction

when I am calling this SP from my .net code .. the queries inside transaction are not updating the table and SP give no error ... what should I do?? how to troubleshoot this problem...... thanks in advance]]></description>
		<content:encoded><![CDATA[<p>hello sir &#8230; I am using 3 updated query inside the stored procedure&#8230; Like..</p>
<p>declare @qry nvarchar(500)<br />
begin transaction<br />
update table1 set status=&#8217;A&#8217; where appno=@appno</p>
<p>update table2 set entrydate=@entrydate where appno=@appno</p>
<p>set @qry=&#8217;update &#8216; + tablename+ &#8216; set status=@status where appno=@appno<br />
exec sp_executesql @qry</p>
<p>commit transaction</p>
<p>when I am calling this SP from my .net code .. the queries inside transaction are not updating the table and SP give no error &#8230; what should I do?? how to troubleshoot this problem&#8230;&#8230; thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Krishna</title>
		<link>http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-135417</link>
		<dc:creator><![CDATA[Krishna]]></dc:creator>
		<pubDate>Fri, 20 May 2011 09:06:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-135417</guid>
		<description><![CDATA[Hi,

How can i get the particular character location/position from table column.

ex. select * from TABLENAME Functionname(table_column,&#039;;&#039;)]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>How can i get the particular character location/position from table column.</p>
<p>ex. select * from TABLENAME Functionname(table_column,&#8217;;')</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: raja</title>
		<link>http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-134775</link>
		<dc:creator><![CDATA[raja]]></dc:creator>
		<pubDate>Tue, 17 May 2011 07:32:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-134775</guid>
		<description><![CDATA[how to add  validation &amp; condition (time)  for store procedure]]></description>
		<content:encoded><![CDATA[<p>how to add  validation &amp; condition (time)  for store procedure</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shabbir</title>
		<link>http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-133179</link>
		<dc:creator><![CDATA[shabbir]]></dc:creator>
		<pubDate>Fri, 06 May 2011 12:11:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-133179</guid>
		<description><![CDATA[i m giving some CreateXmlFile
procedure using visual studio

-------------procedure WriteDataToXml-----------------------------

Create proc Writedatatoxml @tbname nvarchar(20),@path nvarchar(100)
as
external name myxmlconvertionassembly.[createxml.converttoxml].writexml]]></description>
		<content:encoded><![CDATA[<p>i m giving some CreateXmlFile<br />
procedure using visual studio</p>
<p>&#8212;&#8212;&#8212;&#8212;-procedure WriteDataToXml&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>Create proc Writedatatoxml @tbname nvarchar(20),@path nvarchar(100)<br />
as<br />
external name myxmlconvertionassembly.[createxml.converttoxml].writexml</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Saidul Karim</title>
		<link>http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-129870</link>
		<dc:creator><![CDATA[Saidul Karim]]></dc:creator>
		<pubDate>Tue, 19 Apr 2011 01:02:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-129870</guid>
		<description><![CDATA[You are a handy-man. 
Thanks a lot for undertaking all hard-work.]]></description>
		<content:encoded><![CDATA[<p>You are a handy-man.<br />
Thanks a lot for undertaking all hard-work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sanjay rai</title>
		<link>http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-120459</link>
		<dc:creator><![CDATA[sanjay rai]]></dc:creator>
		<pubDate>Thu, 24 Feb 2011 07:32:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-120459</guid>
		<description><![CDATA[Hi,
Please give me the solution for:

I have Stored Procedure name: USP_Get_Daily_Report_PriorityWise

ALTER PROC [dbo].[USP_Get_Daily_Report_PriorityWise]
AS
Begin
set nocount on
  DECLARE @Loc_Table TABLE (Counts INT, Internal_Priority VARCHAR(20), Process_Area VARCHAR(1000))

	INSERT INTO @Loc_Table
			SELECT COUNT(*),Internal_Priority, Process_Area FROM AgedReportPivot (NOLOCK)
			WHERE (Internal_Priority IN (&#039;1&#039;,&#039;2&#039;,&#039;3&#039;,&#039;4&#039;,&#039;Other&#039;))
			AND (Status NOT IN (&#039;CANCELLED&#039;, &#039;RESOLVED&#039;, &#039;CLOSED&#039;))
			GROUP BY Process_Area,Internal_Priority

	DECLARE @loc_Result Table (Process_Area VARCHAr(1000),a INT,b INT,c INT,d INT,Other VARCHAr(10))
	--DECLARE @loc_Result Table (Process_Area VARCHAr(1000),1 INT,2 INT,3 INT,4 INT,Other VARCHAr(10))
	

	INSERT INTO @loc_Result
	  SELECT Process_Area,[1] as a,[2]As b,[3]AS c,
			[4] AS d,[Other] AS Others
      FROM(SELECT Counts,Internal_Priority,Process_Area
           FROM @Loc_Table
          ) p
          PIVOT
          (SUM(Counts)
          FOR Internal_Priority IN ([1],[2],[3],[4],[Other]))
          AS pvt

------------------------PSI last 30 days data---------------------------------
		declare @PSIData int;
		SELECT @PSIData = COUNT(*) FROM dbo.PSIAgedRequestAll (NOLOCK)
		WHERE (Status NOT IN (&#039;CANCELLED&#039;)) AND (Reported_Date &gt;= GETDATE() - 30)
		AND (Reported_Date = GETDATE() - 30)
		AND (Reported_Date = GETDATE() - 30)
		AND (Reported_Date &lt;= GETDATE())

set nocount off
END

There are 8 columns: 
LastDays is Last 30 days Requests inflow (Open, Closed, Resolved etc). 
Priority1,Priority2, Priority3, Priority4,PriorityOthers, are all open request count.
Total=Priority1+Priority2+Priority3+Priority4+PriorityOthers

Result:
Priority1	Priority2	Priority3	Priority4	PriorityOthers	Process_Area	LASTDAYS	Total
NULL	NULL	1	NULL	7	Customer Masterdata	13	61.54
NULL	1	6	NULL	15	P2P	48	45.83
NULL	NULL	3	NULL	1	CRM-Complaints	9	44.44
NULL	2	3	NULL	6	Material MasterData	25	44
NULL	NULL	4	NULL	NULL	CRM Field Service	10	40
NULL	2	11	NULL	1	TheEdge	36	38.89
NULL	10	31	NULL	57	Finance	305	32.13
NULL	1	24	NULL	NULL	Non-ERP	92	27.17
NULL	NULL	4	NULL	4	CRM Internet Sales	36	22.22
NULL	1	9	NULL	10	MFG	92	21.74
NULL	4	10	NULL	NULL	GEMS	65	21.54
NULL	10	33	NULL	132	PSI	395	19.25
NULL	3	3	1	20	EHS	163	16.56
NULL	3	9	NULL	42	OTC	364	14.84
NULL	4	11	NULL	1	APO	122	13.11
NULL	2	3	NULL	14	BI	281	6.76
NULL	1	3	NULL	6	ABAP	152	6.58
NULL	9	5	NULL	2	Basis	362	4.42


My Requirement in the same table:

Now I want to fibercate data according to Priority wise and in the same need to show out of last 30 days request count how many are Priority 1, Priority 2 etc
Ex:
If Priority 3 request count for Process_Area P2P are 6. Out of last 30 days 48 request count for P2P,how many are Priority 3?

  Priority 3	
10	6

Here 10 are Inflow Priority 3 out of 48 requests and 6 is Open for Priority 3.]]></description>
		<content:encoded><![CDATA[<p>Hi,<br />
Please give me the solution for:</p>
<p>I have Stored Procedure name: USP_Get_Daily_Report_PriorityWise</p>
<p>ALTER PROC [dbo].[USP_Get_Daily_Report_PriorityWise]<br />
AS<br />
Begin<br />
set nocount on<br />
  DECLARE @Loc_Table TABLE (Counts INT, Internal_Priority VARCHAR(20), Process_Area VARCHAR(1000))</p>
<p>	INSERT INTO @Loc_Table<br />
			SELECT COUNT(*),Internal_Priority, Process_Area FROM AgedReportPivot (NOLOCK)<br />
			WHERE (Internal_Priority IN (&#8217;1&#8242;,&#8217;2&#8242;,&#8217;3&#8242;,&#8217;4&#8242;,&#8217;Other&#8217;))<br />
			AND (Status NOT IN (&#8216;CANCELLED&#8217;, &#8216;RESOLVED&#8217;, &#8216;CLOSED&#8217;))<br />
			GROUP BY Process_Area,Internal_Priority</p>
<p>	DECLARE @loc_Result Table (Process_Area VARCHAr(1000),a INT,b INT,c INT,d INT,Other VARCHAr(10))<br />
	&#8211;DECLARE @loc_Result Table (Process_Area VARCHAr(1000),1 INT,2 INT,3 INT,4 INT,Other VARCHAr(10))</p>
<p>	INSERT INTO @loc_Result<br />
	  SELECT Process_Area,[1] as a,[2]As b,[3]AS c,<br />
			[4] AS d,[Other] AS Others<br />
      FROM(SELECT Counts,Internal_Priority,Process_Area<br />
           FROM @Loc_Table<br />
          ) p<br />
          PIVOT<br />
          (SUM(Counts)<br />
          FOR Internal_Priority IN ([1],[2],[3],[4],[Other]))<br />
          AS pvt</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;PSI last 30 days data&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
		declare @PSIData int;<br />
		SELECT @PSIData = COUNT(*) FROM dbo.PSIAgedRequestAll (NOLOCK)<br />
		WHERE (Status NOT IN (&#8216;CANCELLED&#8217;)) AND (Reported_Date &gt;= GETDATE() &#8211; 30)<br />
		AND (Reported_Date = GETDATE() &#8211; 30)<br />
		AND (Reported_Date = GETDATE() &#8211; 30)<br />
		AND (Reported_Date &lt;= GETDATE())</p>
<p>set nocount off<br />
END</p>
<p>There are 8 columns:<br />
LastDays is Last 30 days Requests inflow (Open, Closed, Resolved etc).<br />
Priority1,Priority2, Priority3, Priority4,PriorityOthers, are all open request count.<br />
Total=Priority1+Priority2+Priority3+Priority4+PriorityOthers</p>
<p>Result:<br />
Priority1	Priority2	Priority3	Priority4	PriorityOthers	Process_Area	LASTDAYS	Total<br />
NULL	NULL	1	NULL	7	Customer Masterdata	13	61.54<br />
NULL	1	6	NULL	15	P2P	48	45.83<br />
NULL	NULL	3	NULL	1	CRM-Complaints	9	44.44<br />
NULL	2	3	NULL	6	Material MasterData	25	44<br />
NULL	NULL	4	NULL	NULL	CRM Field Service	10	40<br />
NULL	2	11	NULL	1	TheEdge	36	38.89<br />
NULL	10	31	NULL	57	Finance	305	32.13<br />
NULL	1	24	NULL	NULL	Non-ERP	92	27.17<br />
NULL	NULL	4	NULL	4	CRM Internet Sales	36	22.22<br />
NULL	1	9	NULL	10	MFG	92	21.74<br />
NULL	4	10	NULL	NULL	GEMS	65	21.54<br />
NULL	10	33	NULL	132	PSI	395	19.25<br />
NULL	3	3	1	20	EHS	163	16.56<br />
NULL	3	9	NULL	42	OTC	364	14.84<br />
NULL	4	11	NULL	1	APO	122	13.11<br />
NULL	2	3	NULL	14	BI	281	6.76<br />
NULL	1	3	NULL	6	ABAP	152	6.58<br />
NULL	9	5	NULL	2	Basis	362	4.42</p>
<p>My Requirement in the same table:</p>
<p>Now I want to fibercate data according to Priority wise and in the same need to show out of last 30 days request count how many are Priority 1, Priority 2 etc<br />
Ex:<br />
If Priority 3 request count for Process_Area P2P are 6. Out of last 30 days 48 request count for P2P,how many are Priority 3?</p>
<p>  Priority 3<br />
10	6</p>
<p>Here 10 are Inflow Priority 3 out of 48 requests and 6 is Open for Priority 3.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-120085</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Tue, 22 Feb 2011 11:46:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-120085</guid>
		<description><![CDATA[You can use function in the procedure like below

create procedure proc_name
as
.
.
select dbo.function_name(parameter)]]></description>
		<content:encoded><![CDATA[<p>You can use function in the procedure like below</p>
<p>create procedure proc_name<br />
as<br />
.<br />
.<br />
select dbo.function_name(parameter)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jasmin Suma</title>
		<link>http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-119921</link>
		<dc:creator><![CDATA[Jasmin Suma]]></dc:creator>
		<pubDate>Mon, 21 Feb 2011 16:10:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-119921</guid>
		<description><![CDATA[Could anyone give pls give any information about how can i use user defined function in sore procedure using sql server 2005??]]></description>
		<content:encoded><![CDATA[<p>Could anyone give pls give any information about how can i use user defined function in sore procedure using sql server 2005??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-110976</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Fri, 14 Jan 2011 11:40:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-110976</guid>
		<description><![CDATA[Read about them in sql server help file]]></description>
		<content:encoded><![CDATA[<p>Read about them in sql server help file</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vatanak</title>
		<link>http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-110835</link>
		<dc:creator><![CDATA[vatanak]]></dc:creator>
		<pubDate>Thu, 13 Jan 2011 13:27:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-110835</guid>
		<description><![CDATA[can u tell me abt syntax of store procedure {control structure (Looping &amp; if ) }]]></description>
		<content:encoded><![CDATA[<p>can u tell me abt syntax of store procedure {control structure (Looping &amp; if ) }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lynn</title>
		<link>http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-104342</link>
		<dc:creator><![CDATA[lynn]]></dc:creator>
		<pubDate>Wed, 08 Dec 2010 21:24:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-104342</guid>
		<description><![CDATA[how can I find out datbase name from store procedure which is run in job&#039;s step.

Thanks,]]></description>
		<content:encoded><![CDATA[<p>how can I find out datbase name from store procedure which is run in job&#8217;s step.</p>
<p>Thanks,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darshan</title>
		<link>http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-88216</link>
		<dc:creator><![CDATA[Darshan]]></dc:creator>
		<pubDate>Sat, 18 Sep 2010 10:42:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-88216</guid>
		<description><![CDATA[Hi 

I Solved my Problem by Ur Post 

Thanks a lot ...]]></description>
		<content:encoded><![CDATA[<p>Hi </p>
<p>I Solved my Problem by Ur Post </p>
<p>Thanks a lot &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fauzia</title>
		<link>http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-88204</link>
		<dc:creator><![CDATA[fauzia]]></dc:creator>
		<pubDate>Sat, 18 Sep 2010 07:29:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-88204</guid>
		<description><![CDATA[following error occur when i execute the procedure...although it parse sucessfully...
Msg 2714, Level 16, State 3, Procedure sp_GetInventory, Line 9
There is already an object named &#039;sp_GetInventory&#039; in the database.
can any one tell me  how to execute stored procedure????i am using SQL server 2005 first time..]]></description>
		<content:encoded><![CDATA[<p>following error occur when i execute the procedure&#8230;although it parse sucessfully&#8230;<br />
Msg 2714, Level 16, State 3, Procedure sp_GetInventory, Line 9<br />
There is already an object named &#8216;sp_GetInventory&#8217; in the database.<br />
can any one tell me  how to execute stored procedure????i am using SQL server 2005 first time..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Libin</title>
		<link>http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-85616</link>
		<dc:creator><![CDATA[Libin]]></dc:creator>
		<pubDate>Mon, 30 Aug 2010 05:43:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-85616</guid>
		<description><![CDATA[create procupval
as
begin
declare @price int
select @price = avg(price) from Toys_DataBind
while( @price &lt; 22)
begin
update  Toys_DataBind set price = price + 2.50
break;
end
end

exec upval]]></description>
		<content:encoded><![CDATA[<p>create procupval<br />
as<br />
begin<br />
declare @price int<br />
select @price = avg(price) from Toys_DataBind<br />
while( @price &lt; 22)<br />
begin<br />
update  Toys_DataBind set price = price + 2.50<br />
break;<br />
end<br />
end</p>
<p>exec upval</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: siri</title>
		<link>http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-82888</link>
		<dc:creator><![CDATA[siri]]></dc:creator>
		<pubDate>Tue, 03 Aug 2010 17:56:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-82888</guid>
		<description><![CDATA[Hi Ravi kanth Ponnam,

Did you find any solution for this issue. If so please send me the solution to dev.srivani@gmail.com.

Appreciate your help.
Thanks]]></description>
		<content:encoded><![CDATA[<p>Hi Ravi kanth Ponnam,</p>
<p>Did you find any solution for this issue. If so please send me the solution to <a href="mailto:dev.srivani@gmail.com">dev.srivani@gmail.com</a>.</p>
<p>Appreciate your help.<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Craig</title>
		<link>http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-78151</link>
		<dc:creator><![CDATA[Craig]]></dc:creator>
		<pubDate>Tue, 29 Jun 2010 16:08:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-78151</guid>
		<description><![CDATA[Find Text in table-valued function.

I was able to modify the query to search stored procedures to search table-valued functions if it is of use to anyone. I needed to change column references in a number of places and this was helpful to me in verifying I found all the places I needed to modify.

SELECT o.Name
FROM sys.objects o 
WHERE type = &#039;IF&#039; AND OBJECT_DEFINITION(OBJECT_ID) LIKE &#039;%Employee%&#039;

The only difference from the statement that Pinal posted is that the Id for the OBJECT_DEFINITION function is from the sys.objects view instead of the sys.procedures view.]]></description>
		<content:encoded><![CDATA[<p>Find Text in table-valued function.</p>
<p>I was able to modify the query to search stored procedures to search table-valued functions if it is of use to anyone. I needed to change column references in a number of places and this was helpful to me in verifying I found all the places I needed to modify.</p>
<p>SELECT o.Name<br />
FROM sys.objects o<br />
WHERE type = &#8216;IF&#8217; AND OBJECT_DEFINITION(OBJECT_ID) LIKE &#8216;%Employee%&#8217;</p>
<p>The only difference from the statement that Pinal posted is that the Id for the OBJECT_DEFINITION function is from the sys.objects view instead of the sys.procedures view.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shameem Ahasan</title>
		<link>http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-74950</link>
		<dc:creator><![CDATA[Shameem Ahasan]]></dc:creator>
		<pubDate>Sun, 06 Jun 2010 13:27:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-74950</guid>
		<description><![CDATA[I want create complex view of SQL Server for a ERP Project. But I am not habituate with creating view in SQL Server 2005. I need a proper guideline.]]></description>
		<content:encoded><![CDATA[<p>I want create complex view of SQL Server for a ERP Project. But I am not habituate with creating view in SQL Server 2005. I need a proper guideline.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Imran Mohammed</title>
		<link>http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-74823</link>
		<dc:creator><![CDATA[Imran Mohammed]]></dc:creator>
		<pubDate>Sat, 05 Jun 2010 04:28:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-74823</guid>
		<description><![CDATA[@Mike, 

Tell me what do you get when you search for the string &quot;how to decrypt stored procedure in sql 2005&quot; in Google.com

~IM.]]></description>
		<content:encoded><![CDATA[<p>@Mike, </p>
<p>Tell me what do you get when you search for the string &#8220;how to decrypt stored procedure in sql 2005&#8243; in Google.com</p>
<p>~IM.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Damaj</title>
		<link>http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-74764</link>
		<dc:creator><![CDATA[Mike Damaj]]></dc:creator>
		<pubDate>Fri, 04 Jun 2010 14:29:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-74764</guid>
		<description><![CDATA[Hello Dave,
how can I read encrypted Stored procedures.


Thanks
mike d.]]></description>
		<content:encoded><![CDATA[<p>Hello Dave,<br />
how can I read encrypted Stored procedures.</p>
<p>Thanks<br />
mike d.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: terance</title>
		<link>http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-70578</link>
		<dc:creator><![CDATA[terance]]></dc:creator>
		<pubDate>Wed, 12 May 2010 12:43:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-70578</guid>
		<description><![CDATA[just open your databasetable and there you have to take two steps down there is Programabilty is there just click and get them]]></description>
		<content:encoded><![CDATA[<p>just open your databasetable and there you have to take two steps down there is Programabilty is there just click and get them</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: terance</title>
		<link>http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-70577</link>
		<dc:creator><![CDATA[terance]]></dc:creator>
		<pubDate>Wed, 12 May 2010 12:42:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/#comment-70577</guid>
		<description><![CDATA[just open your databasetable and there you have to have two step there is Programabilty is there just click and get them]]></description>
		<content:encoded><![CDATA[<p>just open your databasetable and there you have to have two step there is Programabilty is there just click and get them</p>
]]></content:encoded>
	</item>
</channel>
</rss>

