<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8533556944445651557</id><updated>2011-11-06T21:55:01.676-08:00</updated><title type='text'>::ask4sql::</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://ask4sql.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8533556944445651557/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://ask4sql.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Sky</name><uri>http://www.blogger.com/profile/18007539792907237608</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8533556944445651557.post-6496726337432164956</id><published>2007-03-05T07:44:00.000-08:00</published><updated>2007-03-05T07:54:29.631-08:00</updated><title type='text'>Date/Time Conversions Using SQL Server</title><content type='html'>Hello friends&lt;br /&gt;&lt;br /&gt;here is the list of all sql date time formats,&lt;br /&gt;&lt;br /&gt;&lt;table cellspacing="0" cellpadding="3" width="600" border="1"   style="font-family:Arial;font-size:small;"&gt;&lt;tbody&gt;&lt;tr valign="top" align="left"&gt;&lt;td colspan="3"  style="color:gray;"&gt;&lt;b&gt;&lt;span style="font-size:85%;color:#000000;"&gt;DATE FORMATS&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr valign="top" align="left"&gt;&lt;td&gt;&lt;b&gt;&lt;span style="font-size:85%;"&gt;Format #&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;&lt;span style="font-size:85%;"&gt;Query&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:85%;"&gt; (current date: 12/30/2006) &lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;&lt;span style="font-size:85%;"&gt;Sample&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr valign="top" align="left"&gt;&lt;td align="middle"&gt;&lt;span style="font-size:85%;"&gt;1 &lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:85%;"&gt;select convert(varchar, getdate(), 1) &lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:85%;"&gt;12/30/06 &lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr valign="top" align="left"&gt;&lt;td align="middle"&gt;&lt;span style="font-size:85%;"&gt;2 &lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:85%;"&gt;select convert(varchar, getdate(), 2) &lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:85%;"&gt;06.12.30 &lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr valign="top" align="left"&gt;&lt;td align="middle"&gt;&lt;span style="font-size:85%;"&gt;3 &lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:85%;"&gt;select convert(varchar, getdate(), 3) &lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:85%;"&gt;30/12/06 &lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr valign="top" align="left"&gt;&lt;td align="middle"&gt;&lt;span style="font-size:85%;"&gt;4 &lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:85%;"&gt;select convert(varchar, getdate(), 4) &lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:85%;"&gt;30.12.06 &lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr valign="top" align="left"&gt;&lt;td align="middle"&gt;&lt;span style="font-size:85%;"&gt;5 &lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:85%;"&gt;select convert(varchar, getdate(), 5) &lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:85%;"&gt;30-12-06 &lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr valign="top" align="left"&gt;&lt;td align="middle"&gt;&lt;span style="font-size:85%;"&gt;6 &lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:85%;"&gt;select convert(varchar, getdate(), 6) &lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:85%;"&gt;30 Dec 06 &lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr valign="top" align="left"&gt;&lt;td align="middle"&gt;&lt;span style="font-size:85%;"&gt;7 &lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:85%;"&gt;select convert(varchar, getdate(), 7) &lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:85%;"&gt;Dec 30, 06 &lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr valign="top" align="left"&gt;&lt;td align="middle"&gt;&lt;span style="font-size:85%;"&gt;10 &lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:85%;"&gt;select convert(varchar, getdate(), 10) &lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:85%;"&gt;12-30-06 &lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr valign="top" align="left"&gt;&lt;td align="middle"&gt;&lt;span style="font-size:85%;"&gt;11 &lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:85%;"&gt;select convert(varchar, getdate(), 11) &lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:85%;"&gt;06/12/30 &lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr valign="top" align="left"&gt;&lt;td align="middle"&gt;&lt;span style="font-size:85%;"&gt;101 &lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:85%;"&gt;select convert(varchar, getdate(), 101) &lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:85%;"&gt;12/30/2006 &lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr valign="top" align="left"&gt;&lt;td align="middle"&gt;&lt;span style="font-size:85%;"&gt;102 &lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:85%;"&gt;select convert(varchar, getdate(), 102) &lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:85%;"&gt;2006.12.30 &lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr valign="top" align="left"&gt;&lt;td align="middle"&gt;&lt;span style="font-size:85%;"&gt;103 &lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:85%;"&gt;select convert(varchar, getdate(), 103) &lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:85%;"&gt;30/12/2006 &lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr valign="top" align="left"&gt;&lt;td align="middle"&gt;&lt;span style="font-size:85%;"&gt;104 &lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:85%;"&gt;select convert(varchar, getdate(), 104) &lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:85%;"&gt;30.12.2006 &lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr valign="top" align="left"&gt;&lt;td align="middle"&gt;&lt;span style="font-size:85%;"&gt;105 &lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:85%;"&gt;select convert(varchar, getdate(), 105) &lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:85%;"&gt;30-12-2006 &lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr valign="top" align="left"&gt;&lt;td align="middle"&gt;&lt;span style="font-size:85%;"&gt;106 &lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:85%;"&gt;select convert(varchar, getdate(), 106) &lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:85%;"&gt;30 Dec 2006 &lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr valign="top" align="left"&gt;&lt;td align="middle"&gt;&lt;span style="font-size:85%;"&gt;107 &lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:85%;"&gt;select convert(varchar, getdate(), 107) &lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:85%;"&gt;Dec 30, 2006 &lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr valign="top" align="left"&gt;&lt;td align="middle"&gt;&lt;span style="font-size:85%;"&gt;110 &lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:85%;"&gt;select convert(varchar, getdate(), 110) &lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:85%;"&gt;12-30-2006 &lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr valign="top" align="left"&gt;&lt;td align="middle"&gt;&lt;span style="font-size:85%;"&gt;111 &lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:85%;"&gt;select convert(varchar, getdate(), 111) &lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:85%;"&gt;2006/12/30 &lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr valign="top" align="left"&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr valign="top" align="left"&gt;&lt;td colspan="3"  style="color:gray;"&gt;&lt;span style="color:#ffffff;"&gt;&lt;b&gt;&lt;span style="font-size:85%;color:#000000;"&gt;TIME FORMATS&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr valign="top" align="left"&gt;&lt;td align="middle"&gt;&lt;span style="font-size:85%;"&gt;8 or 108 &lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:85%;"&gt;select convert(varchar, getdate(), 8) &lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:85%;"&gt;00:38:54 &lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr valign="top" align="left"&gt;&lt;td align="middle"&gt;&lt;span style="font-size:85%;"&gt;9 or 109 &lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:85%;"&gt;select convert(varchar, getdate(), 9) &lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:85%;"&gt;Dec 30 2006 12:38:54:840AM &lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr valign="top" align="left"&gt;&lt;td align="middle"&gt;&lt;span style="font-size:85%;"&gt;14 or 114 &lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:85%;"&gt;select convert(varchar, getdate(), 14) &lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:85%;"&gt;00:38:54:840 &lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;center&gt; &lt;/center&gt;&lt;center&gt;Enjoy!&lt;/center&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8533556944445651557-6496726337432164956?l=ask4sql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ask4sql.blogspot.com/feeds/6496726337432164956/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8533556944445651557&amp;postID=6496726337432164956' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8533556944445651557/posts/default/6496726337432164956'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8533556944445651557/posts/default/6496726337432164956'/><link rel='alternate' type='text/html' href='http://ask4sql.blogspot.com/2007/03/datetime-conversions-using-sql-server.html' title='Date/Time Conversions Using SQL Server'/><author><name>Sky</name><uri>http://www.blogger.com/profile/18007539792907237608</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8533556944445651557.post-4126558470937468539</id><published>2007-02-27T22:23:00.000-08:00</published><updated>2007-02-27T22:32:52.981-08:00</updated><title type='text'>How to get lenght of data in Text,NText and Image columns</title><content type='html'>There is sometimes a need to figure out the maximum space that is being used by a particular column in your database.  You would initially think that the &lt;a href="http://msdn2.microsoft.com/en-us/library/ms190329.aspx" target="_blank"&gt;LEN()&lt;/a&gt; function would allow you to do this, but this function does not work on Text, NText or Image data types .&lt;br /&gt;&lt;br /&gt;So to solve this problem&lt;br /&gt;SQL Server has a &lt;a href="http://msdn2.microsoft.com/en-us/library/ms173486.aspx" target="_blank"&gt;DATALENGTH()&lt;/a&gt; function.&lt;br /&gt;&lt;br /&gt;For e.g.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#33ccff;"&gt;SELECT name, LEN(packagedata) FROM dbo.sysdtspackages&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;this query will give error.&lt;br /&gt;&lt;br /&gt;the correct query is&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;SELECT name, DATALENGTH(packagedata) FROM dbo.sysdtspackages&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Enjoy!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8533556944445651557-4126558470937468539?l=ask4sql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ask4sql.blogspot.com/feeds/4126558470937468539/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8533556944445651557&amp;postID=4126558470937468539' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8533556944445651557/posts/default/4126558470937468539'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8533556944445651557/posts/default/4126558470937468539'/><link rel='alternate' type='text/html' href='http://ask4sql.blogspot.com/2007/02/how-to-get-lenght-of-data-in-textntext.html' title='How to get lenght of data in Text,NText and Image columns'/><author><name>Sky</name><uri>http://www.blogger.com/profile/18007539792907237608</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8533556944445651557.post-130800198741373216</id><published>2007-02-25T21:40:00.000-08:00</published><updated>2007-02-25T21:43:24.810-08:00</updated><title type='text'>SQL server Identity Column information</title><content type='html'>Hi,&lt;br /&gt;&lt;br /&gt;SQL Server 2000 has three functions that return IDENTITY information. The result of each of these three functions is dependent on three factors:&lt;br /&gt;&lt;br /&gt;1. The session scope (which connection produced the IDENTITY value?)&lt;br /&gt;&lt;br /&gt;2. The table scope (which table produced the IDENTITY value?)&lt;br /&gt;&lt;br /&gt;3. The statement scope (where is the statement that produced the IDENTITY value?)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;(SQL Statements that are contained in the same batch, stored procedure, or trigger are considered to be in the same scope.&lt;br /&gt;So, if I call an INSERT that fires a trigger, I have two different scopes: scope 1 is inside the batch that called the INSERT, and scope 2 is inside the trigger.)&lt;br /&gt;&lt;br /&gt;1. &lt;strong&gt;SELECT @@IDENTITY&lt;br /&gt;&lt;/strong&gt;This is everyone's favorite function, unchanged from earlier versions of SQL Server. It returns the last IDENTITY value produced on a connection, regardless of the table that produced the value, and regardless of the scope of the statement that produced the value.&lt;br /&gt;&lt;br /&gt;2. &lt;strong&gt;SELECT IDENT_CURRENT ('tablename')&lt;br /&gt;&lt;/strong&gt;This new function returns the last IDENTITY value produced in a table, regardless of the connection that created the value, and regardless of the scope of the statement that produced the value.&lt;br /&gt;&lt;br /&gt;3. &lt;strong&gt;SELECT SCOPE_IDENTITY ()&lt;br /&gt;&lt;/strong&gt;This new function returns the last IDENTITY value produced on a connection and by a statement in the same scope, regardless Of the table that produced the value.&lt;br /&gt;&lt;br /&gt;Thank you&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8533556944445651557-130800198741373216?l=ask4sql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ask4sql.blogspot.com/feeds/130800198741373216/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8533556944445651557&amp;postID=130800198741373216' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8533556944445651557/posts/default/130800198741373216'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8533556944445651557/posts/default/130800198741373216'/><link rel='alternate' type='text/html' href='http://ask4sql.blogspot.com/2007/02/sql-server-identity-column-information.html' title='SQL server Identity Column information'/><author><name>Sky</name><uri>http://www.blogger.com/profile/18007539792907237608</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8533556944445651557.post-3659055296611911255</id><published>2007-02-25T01:30:00.000-08:00</published><updated>2007-02-25T01:31:49.451-08:00</updated><title type='text'>How to debug sql stored procedures?</title><content type='html'>Hello,&lt;br /&gt;&lt;br /&gt;i have found a nice link for answer.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.15seconds.com/issue/050106.htm"&gt;http://www.15seconds.com/issue/050106.htm&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;hope you will find the answer.&lt;br /&gt;&lt;br /&gt;Thank you&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8533556944445651557-3659055296611911255?l=ask4sql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ask4sql.blogspot.com/feeds/3659055296611911255/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8533556944445651557&amp;postID=3659055296611911255' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8533556944445651557/posts/default/3659055296611911255'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8533556944445651557/posts/default/3659055296611911255'/><link rel='alternate' type='text/html' href='http://ask4sql.blogspot.com/2007/02/how-to-debug-sql-stored-procedures.html' title='How to debug sql stored procedures?'/><author><name>Sky</name><uri>http://www.blogger.com/profile/18007539792907237608</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8533556944445651557.post-5339148566699074803</id><published>2007-02-22T20:42:00.000-08:00</published><updated>2007-02-22T20:46:27.760-08:00</updated><title type='text'>Remove Noise words from Full-text indexing in SQL server</title><content type='html'>How to remove noise words from SQL server?&lt;br /&gt;&lt;br /&gt;• Check the language of your sql using following syntax&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;select @@languagee.g. result : us_english&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;• Now here you have “English language” so…• Remove required word from following files…&lt;br /&gt;&lt;br /&gt;1. the &lt;strong&gt;noise.*&lt;/strong&gt; files under your &lt;strong&gt;\WINNT\System32&lt;/strong&gt; directory&lt;br /&gt;&lt;br /&gt;2. &lt;strong&gt;noise.enu&lt;/strong&gt; (US_English) and &lt;strong&gt;noise.eng&lt;/strong&gt; (UK_English) noise word files under your SQL Server default folder of &lt;strong&gt;\FTDATA\SQLServer\Config.&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;• After making these changes and before saving the file changes, you must stop the &lt;strong&gt;“Microsoft Search“ service&lt;/strong&gt;, before you can save the FTDATA noise word files. When your modifications are completed, &lt;strong&gt;you must run a Full Population&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;Enjoy.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8533556944445651557-5339148566699074803?l=ask4sql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ask4sql.blogspot.com/feeds/5339148566699074803/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8533556944445651557&amp;postID=5339148566699074803' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8533556944445651557/posts/default/5339148566699074803'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8533556944445651557/posts/default/5339148566699074803'/><link rel='alternate' type='text/html' href='http://ask4sql.blogspot.com/2007/02/remove-noise-words-from-full-text.html' title='Remove Noise words from Full-text indexing in SQL server'/><author><name>Sky</name><uri>http://www.blogger.com/profile/18007539792907237608</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8533556944445651557.post-4510736696850491220</id><published>2007-02-22T01:55:00.000-08:00</published><updated>2007-02-22T02:19:35.706-08:00</updated><title type='text'>Function to split string in SQL</title><content type='html'>Hello&lt;br /&gt;&lt;br /&gt;I have found one interesting function using which you can split the text with some character like ',' or any other character.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;CREATE function [dbo].[Split] (@String nvarchar(4000), @Delimiter char(1))&lt;br /&gt;Returns @Results Table (Items nvarchar(4000))&lt;br /&gt;As&lt;br /&gt;Begin&lt;br /&gt;Declare @Index int&lt;br /&gt;Declare @Slice nvarchar(4000)&lt;br /&gt;&lt;br /&gt;Select @Index = 1&lt;br /&gt;If @String Is NULL Return&lt;br /&gt;&lt;br /&gt;While @Index != 0&lt;br /&gt;Begin&lt;br /&gt;Select @Index = CharIndex(@Delimiter, @String)&lt;br /&gt;If @Index &lt;&gt; 0&lt;br /&gt;&lt;br /&gt;Select @Slice = left(@String, @Index - 1)&lt;br /&gt;&lt;br /&gt;else&lt;br /&gt;&lt;br /&gt;Select @Slice = @String&lt;br /&gt;Insert into @Results(Items) Values (@Slice)&lt;br /&gt;Select @String = right(@String, Len(@String) - @Index)&lt;br /&gt;&lt;br /&gt;If Len(@String) = 0 break&lt;br /&gt;&lt;br /&gt;End&lt;br /&gt;Return&lt;br /&gt;End&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Now how to use this function&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;select * from dbo.Split('a,b,c,d',',')&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;this will give following result&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Items&lt;br /&gt;-----&lt;br /&gt;a&lt;br /&gt;b&lt;br /&gt;c&lt;br /&gt;d&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;How this function can make your life easy!&lt;br /&gt;&lt;br /&gt;Suppose if you want to insert more than one row in a table depending on above function result&lt;br /&gt;&lt;br /&gt;you can just do as follows&lt;br /&gt;&lt;br /&gt;insert into Table_Name (Column_Name)&lt;br /&gt;select * from dbo.Split('a,b,c,d',',')&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Enjoy&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8533556944445651557-4510736696850491220?l=ask4sql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ask4sql.blogspot.com/feeds/4510736696850491220/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8533556944445651557&amp;postID=4510736696850491220' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8533556944445651557/posts/default/4510736696850491220'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8533556944445651557/posts/default/4510736696850491220'/><link rel='alternate' type='text/html' href='http://ask4sql.blogspot.com/2007/02/function-to-split-string-in-sql.html' title='Function to split string in SQL'/><author><name>Sky</name><uri>http://www.blogger.com/profile/18007539792907237608</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry></feed>
