<?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 2000 &#8211; Search String in Stored Procedure</title>
	<atom:link href="http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Fri, 17 May 2013 15:26:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: pompa</title>
		<link>http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-423938</link>
		<dc:creator><![CDATA[pompa]]></dc:creator>
		<pubDate>Tue, 19 Feb 2013 14:57:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-423938</guid>
		<description><![CDATA[thnaks you]]></description>
		<content:encoded><![CDATA[<p>thnaks you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #007 &#171; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-393510</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #007 &#171; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Sat, 15 Dec 2012 01:31:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-393510</guid>
		<description><![CDATA[[...] Search String in Stored Procedure Searching sting in the stored procedure is one of the most frequent task developer do. They might be searching for a table, view or any other details. I have written a script to do the same in SQL Server 2000 and SQL Server 2005. This is worth bookmarking blog post. There is an alternative way to do the same as well here is the example. [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Search String in Stored Procedure Searching sting in the stored procedure is one of the most frequent task developer do. They might be searching for a table, view or any other details. I have written a script to do the same in SQL Server 2000 and SQL Server 2005. This is worth bookmarking blog post. There is an alternative way to do the same as well here is the example. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER &#8211; Beginning New Weekly Series &#8211; Memory Lane &#8211; #002 &#171; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-371912</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Beginning New Weekly Series &#8211; Memory Lane &#8211; #002 &#171; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Sat, 10 Nov 2012 01:30:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-371912</guid>
		<description><![CDATA[[...] Searching String in Stored Procedure I have already started to work with 2005 by this time and I was personally converting each of my stored procedures to SQL Server 2005 compatible. As we were upgrading from SQL Server 2000 to SQL Server 2005 we had to search each of the stored procedures and make sure that we remove incompatible code from it. For example, syscolumns of SQL Server 2000 was now being replaced by sys.columns of SQL Server 2005. This stored procedure was pretty helpful at that time. Later on I build few additional versions of the same stored procedure. [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Searching String in Stored Procedure I have already started to work with 2005 by this time and I was personally converting each of my stored procedures to SQL Server 2005 compatible. As we were upgrading from SQL Server 2000 to SQL Server 2005 we had to search each of the stored procedures and make sure that we remove incompatible code from it. For example, syscolumns of SQL Server 2000 was now being replaced by sys.columns of SQL Server 2005. This stored procedure was pretty helpful at that time. Later on I build few additional versions of the same stored procedure. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MSK</title>
		<link>http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-370793</link>
		<dc:creator><![CDATA[MSK]]></dc:creator>
		<pubDate>Wed, 07 Nov 2012 13:34:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-370793</guid>
		<description><![CDATA[thankx]]></description>
		<content:encoded><![CDATA[<p>thankx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sho</title>
		<link>http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-299664</link>
		<dc:creator><![CDATA[sho]]></dc:creator>
		<pubDate>Mon, 11 Jun 2012 09:38:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-299664</guid>
		<description><![CDATA[Hi
i need one efficient query to find keyword appearance count from one table
for an example i have 3000 standard values in one table named as table A.and 7 crore records in another table named as B.
Table A data sample is
1.abcd
2.bcde
3.efgh
etc

Table B sample data
ID column B
123 abcd#!#bcde#!#efgh
234 efgh#!#bcde#!#abcd
etc

so i need to find the apcd appearance count from table B.

Hope we can do it with like statement.but thats not efficient with large amount of data.can any one please specify the efficient way to find the appearance count of table A values in table B.]]></description>
		<content:encoded><![CDATA[<p>Hi<br />
i need one efficient query to find keyword appearance count from one table<br />
for an example i have 3000 standard values in one table named as table A.and 7 crore records in another table named as B.<br />
Table A data sample is<br />
1.abcd<br />
2.bcde<br />
3.efgh<br />
etc</p>
<p>Table B sample data<br />
ID column B<br />
123 abcd#!#bcde#!#efgh<br />
234 efgh#!#bcde#!#abcd<br />
etc</p>
<p>so i need to find the apcd appearance count from table B.</p>
<p>Hope we can do it with like statement.but thats not efficient with large amount of data.can any one please specify the efficient way to find the appearance count of table A values in table B.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rakesh nirmal</title>
		<link>http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-271750</link>
		<dc:creator><![CDATA[rakesh nirmal]]></dc:creator>
		<pubDate>Wed, 04 Apr 2012 05:09:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-271750</guid>
		<description><![CDATA[Whenever I face any tricky problem then I remember you and I used to find my problem&#039;s solutions on your site. So thanks a lot from bottom of my heart.]]></description>
		<content:encoded><![CDATA[<p>Whenever I face any tricky problem then I remember you and I used to find my problem&#8217;s solutions on your site. So thanks a lot from bottom of my heart.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: S Ramanathan</title>
		<link>http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-266492</link>
		<dc:creator><![CDATA[S Ramanathan]]></dc:creator>
		<pubDate>Fri, 23 Mar 2012 07:45:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-266492</guid>
		<description><![CDATA[I wnat to search for a substring in a table / set of tables may be that comtains several million records.  Using Var like &#039;%string%&#039; is possibly a solution but considering the number of records and the number of users we have a major performance challenge. Also trying a technique such as var like &#039;%string&#039;  Or like &#039;String%&#039; may not help as it would concatenate the two strings and also provide the same result twice and using Distinct it can be filtered but again an expensive solution.

Full Text Index also does not seem to work as it does not provide the substring option.  

Is there a direct way that can obtain the results in a better way? 

As I can see, even a simple DB like MySQL has a substring search feature in it.  So, I am sure I am missing something very big in SQL Server 2005 / 2008 which is an enterprise class DB serevr,  Any help would be greatly appreciated.  Thanks.]]></description>
		<content:encoded><![CDATA[<p>I wnat to search for a substring in a table / set of tables may be that comtains several million records.  Using Var like &#8216;%string%&#8217; is possibly a solution but considering the number of records and the number of users we have a major performance challenge. Also trying a technique such as var like &#8216;%string&#8217;  Or like &#8216;String%&#8217; may not help as it would concatenate the two strings and also provide the same result twice and using Distinct it can be filtered but again an expensive solution.</p>
<p>Full Text Index also does not seem to work as it does not provide the substring option.  </p>
<p>Is there a direct way that can obtain the results in a better way? </p>
<p>As I can see, even a simple DB like MySQL has a substring search feature in it.  So, I am sure I am missing something very big in SQL Server 2005 / 2008 which is an enterprise class DB serevr,  Any help would be greatly appreciated.  Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Varsha</title>
		<link>http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-219483</link>
		<dc:creator><![CDATA[Varsha]]></dc:creator>
		<pubDate>Fri, 16 Dec 2011 17:21:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-219483</guid>
		<description><![CDATA[Do you have a stored procedure for comparison of fields/columns in the same table? I want to see whether the names of field1, field2 and field 3 are the same, if yes then do something]]></description>
		<content:encoded><![CDATA[<p>Do you have a stored procedure for comparison of fields/columns in the same table? I want to see whether the names of field1, field2 and field 3 are the same, if yes then do something</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nelson Thimothiyose</title>
		<link>http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-207077</link>
		<dc:creator><![CDATA[Nelson Thimothiyose]]></dc:creator>
		<pubDate>Tue, 29 Nov 2011 09:21:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-207077</guid>
		<description><![CDATA[Is there any way to find out , the table names used with in a procedure.???]]></description>
		<content:encoded><![CDATA[<p>Is there any way to find out , the table names used with in a procedure.???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anil Anjana</title>
		<link>http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-192239</link>
		<dc:creator><![CDATA[Anil Anjana]]></dc:creator>
		<pubDate>Thu, 10 Nov 2011 12:58:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-192239</guid>
		<description><![CDATA[Thanks dear if you are not here than what happen with us only god knows that.....??? 


Thanks a lot !!!!!!!!!!]]></description>
		<content:encoded><![CDATA[<p>Thanks dear if you are not here than what happen with us only god knows that&#8230;..??? </p>
<p>Thanks a lot !!!!!!!!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shafiq</title>
		<link>http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-165112</link>
		<dc:creator><![CDATA[shafiq]]></dc:creator>
		<pubDate>Sat, 03 Sep 2011 12:32:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-165112</guid>
		<description><![CDATA[Hi all,
i have store procedure for search,which search my tables and give me the result.
now i need a store procedure which will show related search result just like google do....&quot;did you mean etc&quot; etc....how can i do it]]></description>
		<content:encoded><![CDATA[<p>Hi all,<br />
i have store procedure for search,which search my tables and give me the result.<br />
now i need a store procedure which will show related search result just like google do&#8230;.&#8221;did you mean etc&#8221; etc&#8230;.how can i do it</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tharak</title>
		<link>http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-160931</link>
		<dc:creator><![CDATA[Tharak]]></dc:creator>
		<pubDate>Tue, 23 Aug 2011 09:32:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-160931</guid>
		<description><![CDATA[Hi ,
I need SQL statement to search table and column names in a database only knowing String value.

eg;  for say in a database i know employee Name ( xxxx )  only,
 not the table or column name so how can i find table and column name using ( xxxx) Value .

Please help me i am using SQL server 2008.

[email removed]

Thanks in advance .
Tharak.]]></description>
		<content:encoded><![CDATA[<p>Hi ,<br />
I need SQL statement to search table and column names in a database only knowing String value.</p>
<p>eg;  for say in a database i know employee Name ( xxxx )  only,<br />
 not the table or column name so how can i find table and column name using ( xxxx) Value .</p>
<p>Please help me i am using SQL server 2008.</p>
<p>[email removed]</p>
<p>Thanks in advance .<br />
Tharak.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ashu</title>
		<link>http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-158771</link>
		<dc:creator><![CDATA[ashu]]></dc:creator>
		<pubDate>Thu, 18 Aug 2011 10:23:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-158771</guid>
		<description><![CDATA[How can i search in the textbox the name- Mark Daniel. As it contains space between the name]]></description>
		<content:encoded><![CDATA[<p>How can i search in the textbox the name- Mark Daniel. As it contains space between the name</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brotherUK</title>
		<link>http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-155831</link>
		<dc:creator><![CDATA[brotherUK]]></dc:creator>
		<pubDate>Wed, 10 Aug 2011 15:27:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-155831</guid>
		<description><![CDATA[good example but there is a problem !!
if the string i&#039;m looking for is at starting or at the end, this example doesnt return the that value. what will be the solution in that case ?]]></description>
		<content:encoded><![CDATA[<p>good example but there is a problem !!<br />
if the string i&#8217;m looking for is at starting or at the end, this example doesnt return the that value. what will be the solution in that case ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ric</title>
		<link>http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-125776</link>
		<dc:creator><![CDATA[Ric]]></dc:creator>
		<pubDate>Thu, 31 Mar 2011 11:21:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-125776</guid>
		<description><![CDATA[Thanks Pinal Dave, saved me a lot of time and effort. Much appreciated, and keep up the excellent posts!]]></description>
		<content:encoded><![CDATA[<p>Thanks Pinal Dave, saved me a lot of time and effort. Much appreciated, and keep up the excellent posts!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajesh</title>
		<link>http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-107047</link>
		<dc:creator><![CDATA[Rajesh]]></dc:creator>
		<pubDate>Tue, 21 Dec 2010 04:10:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-107047</guid>
		<description><![CDATA[Another best ways:

First:
select object_name(object_id),definition from sys.sql_modules where definition like &#039;%test%&#039; 

Second (Recommended) :
select ROUTINE_NAME, ROUTINE_DEFINITION from    
INFORMATION_SCHEMA.ROUTINES where ROUTINE_DEFINITION like &#039;%test%&#039; 


Reference from : Logiclabz]]></description>
		<content:encoded><![CDATA[<p>Another best ways:</p>
<p>First:<br />
select object_name(object_id),definition from sys.sql_modules where definition like &#8216;%test%&#8217; </p>
<p>Second (Recommended) :<br />
select ROUTINE_NAME, ROUTINE_DEFINITION from<br />
INFORMATION_SCHEMA.ROUTINES where ROUTINE_DEFINITION like &#8216;%test%&#8217; </p>
<p>Reference from : Logiclabz</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ParkashKaur</title>
		<link>http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-78283</link>
		<dc:creator><![CDATA[ParkashKaur]]></dc:creator>
		<pubDate>Wed, 30 Jun 2010 10:41:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-78283</guid>
		<description><![CDATA[This query is worked perfectly with all words but it is FAIL when I give word &#039;ER&#039; it show name of all stored Procedures containing word like computER,Mother,researcher. Now how could find SP containing word &#039;ER&#039;?????


SELECT DISTINCT o.name ,o.xtype
FROM syscomments c
INNER JOIN sysobjects o ON c.id=o.id
WHERE c.TEXT LIKE &#039;ER%&#039; and o.xtype=&#039;P&#039;]]></description>
		<content:encoded><![CDATA[<p>This query is worked perfectly with all words but it is FAIL when I give word &#8216;ER&#8217; it show name of all stored Procedures containing word like computER,Mother,researcher. Now how could find SP containing word &#8216;ER&#8217;?????</p>
<p>SELECT DISTINCT o.name ,o.xtype<br />
FROM syscomments c<br />
INNER JOIN sysobjects o ON c.id=o.id<br />
WHERE c.TEXT LIKE &#8216;ER%&#8217; and o.xtype=&#8217;P&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: V.</title>
		<link>http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-69185</link>
		<dc:creator><![CDATA[V.]]></dc:creator>
		<pubDate>Wed, 05 May 2010 05:23:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-69185</guid>
		<description><![CDATA[Thanks it works like a charm!]]></description>
		<content:encoded><![CDATA[<p>Thanks it works like a charm!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Imran Mohammed</title>
		<link>http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-62852</link>
		<dc:creator><![CDATA[Imran Mohammed]]></dc:creator>
		<pubDate>Sat, 13 Mar 2010 06:10:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-62852</guid>
		<description><![CDATA[@Gunvant

Why don&#039;t you use Google.com, type display all tables in Sql Server 2005.

Use SQLAuthority Search to find out results to your search.

~IM.]]></description>
		<content:encoded><![CDATA[<p>@Gunvant</p>
<p>Why don&#8217;t you use Google.com, type display all tables in Sql Server 2005.</p>
<p>Use SQLAuthority Search to find out results to your search.</p>
<p>~IM.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gunvant</title>
		<link>http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-62815</link>
		<dc:creator><![CDATA[gunvant]]></dc:creator>
		<pubDate>Fri, 12 Mar 2010 12:58:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-62815</guid>
		<description><![CDATA[Hi Pinal,

I need stored procedure  To find all stored procedure used by table in database
and want to display the names of stored procedure along with table name.]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>I need stored procedure  To find all stored procedure used by table in database<br />
and want to display the names of stored procedure along with table name.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bagyalakshmi</title>
		<link>http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-62025</link>
		<dc:creator><![CDATA[Bagyalakshmi]]></dc:creator>
		<pubDate>Tue, 02 Mar 2010 12:24:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-62025</guid>
		<description><![CDATA[How to construct a search store procedure using like search?]]></description>
		<content:encoded><![CDATA[<p>How to construct a search store procedure using like search?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marko Parkkola</title>
		<link>http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-61532</link>
		<dc:creator><![CDATA[Marko Parkkola]]></dc:creator>
		<pubDate>Sat, 20 Feb 2010 18:11:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-61532</guid>
		<description><![CDATA[I wish that people would use version control for SQL stuff also. That way it is always known who has written the script and who has modified it. Here&#039;s how I&#039;ve done it in one of my projects.

You make one centralized database that is used in testing. Then you generate CREATE TABLE scripts for that database and put them into version control. No procedures or functions are done in this step, just the database, tables, views, indexes and constraints.

Now if you have small team working with the project you can create development databases for every team member. If you have many developers in the project, build a team to handle DB stuff and create dev DBs for them.

Every new procedure or function or table or whatever is first implemented to dev DB. When developer wants to get it in testing (s)he commits it to the version control. After that it is run from the version control to the test DB and if possible, with automated scripts to rule out human errors.

All changes goes the same way. First to dev DB, then version control, finally test DB.

Finally production database is build directly from version control.

Currently I&#039;m in a project with some thirty other people where nothing was originally put to version control and DB stuff still isn&#039;t. It&#039;s a nightmare! I don&#039;t know who is responsible of what and from whom I might ask things if something goes wrong.]]></description>
		<content:encoded><![CDATA[<p>I wish that people would use version control for SQL stuff also. That way it is always known who has written the script and who has modified it. Here&#8217;s how I&#8217;ve done it in one of my projects.</p>
<p>You make one centralized database that is used in testing. Then you generate CREATE TABLE scripts for that database and put them into version control. No procedures or functions are done in this step, just the database, tables, views, indexes and constraints.</p>
<p>Now if you have small team working with the project you can create development databases for every team member. If you have many developers in the project, build a team to handle DB stuff and create dev DBs for them.</p>
<p>Every new procedure or function or table or whatever is first implemented to dev DB. When developer wants to get it in testing (s)he commits it to the version control. After that it is run from the version control to the test DB and if possible, with automated scripts to rule out human errors.</p>
<p>All changes goes the same way. First to dev DB, then version control, finally test DB.</p>
<p>Finally production database is build directly from version control.</p>
<p>Currently I&#8217;m in a project with some thirty other people where nothing was originally put to version control and DB stuff still isn&#8217;t. It&#8217;s a nightmare! I don&#8217;t know who is responsible of what and from whom I might ask things if something goes wrong.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-61531</link>
		<dc:creator><![CDATA[Pinal Dave]]></dc:creator>
		<pubDate>Sat, 20 Feb 2010 16:55:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-61531</guid>
		<description><![CDATA[Hello Chaitanya,

The login information of stored any object owner is stored in principle_id columns in sys.objects table. If every developer would login with their own credentials then it would be enough to know the owner but in most cases all developers login with a common shared account. In that case information in principle_id column would not be much useful and you should ask developers to write owner name in comments on the top of sp or other object.

Regards,
Pinal Dave]]></description>
		<content:encoded><![CDATA[<p>Hello Chaitanya,</p>
<p>The login information of stored any object owner is stored in principle_id columns in sys.objects table. If every developer would login with their own credentials then it would be enough to know the owner but in most cases all developers login with a common shared account. In that case information in principle_id column would not be much useful and you should ask developers to write owner name in comments on the top of sp or other object.</p>
<p>Regards,<br />
Pinal Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chaitanya</title>
		<link>http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-61481</link>
		<dc:creator><![CDATA[chaitanya]]></dc:creator>
		<pubDate>Fri, 19 Feb 2010 13:43:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-61481</guid>
		<description><![CDATA[in my company every developer will write stored procedures and i need to find  stored procedure by whome it is written. is any quary to  find the  stored procedure.
thanks
chaitanya]]></description>
		<content:encoded><![CDATA[<p>in my company every developer will write stored procedures and i need to find  stored procedure by whome it is written. is any quary to  find the  stored procedure.<br />
thanks<br />
chaitanya</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marek Śliwiński</title>
		<link>http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-48095</link>
		<dc:creator><![CDATA[Marek Śliwiński]]></dc:creator>
		<pubDate>Thu, 05 Mar 2009 10:29:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-48095</guid>
		<description><![CDATA[thx!]]></description>
		<content:encoded><![CDATA[<p>thx!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
