<?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; How to Escape Single Quotes &#8211; Fix: Error: 105 Unclosed quotation mark after the character string &#8216;</title>
	<atom:link href="http://blog.sqlauthority.com/2008/02/17/sql-server-how-to-escape-single-quotes-fix-error-105-unclosed-quotation-mark-after-the-character-string/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2008/02/17/sql-server-how-to-escape-single-quotes-fix-error-105-unclosed-quotation-mark-after-the-character-string/</link>
	<description>Notes of a SQL Server MVP and Database Administrator</description>
	<lastBuildDate>Sat, 21 Nov 2009 05:54:09 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: pinaldave</title>
		<link>http://blog.sqlauthority.com/2008/02/17/sql-server-how-to-escape-single-quotes-fix-error-105-unclosed-quotation-mark-after-the-character-string/#comment-56710</link>
		<dc:creator>pinaldave</dc:creator>
		<pubDate>Thu, 15 Oct 2009 02:08:08 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=508#comment-56710</guid>
		<description>Very good advise Imran.</description>
		<content:encoded><![CDATA[<p>Very good advise Imran.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Imran Mohammed</title>
		<link>http://blog.sqlauthority.com/2008/02/17/sql-server-how-to-escape-single-quotes-fix-error-105-unclosed-quotation-mark-after-the-character-string/#comment-56709</link>
		<dc:creator>Imran Mohammed</dc:creator>
		<pubDate>Thu, 15 Oct 2009 02:04:30 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=508#comment-56709</guid>
		<description>@rana

Two Options.

1. Create a procedure and execute that procedure in the job.
USE [EPO_USLAX-EPO01]
Create Proc [USp_ShrinkDB]
AS
DBCC SHRINKFILE ( &#039;ePO_USLAX-EPO01&#039;, 20)
DBCC SHRINKFILE (&#039;ePO_USLAX-EPO01_log&#039;, 10)
go

put this script in the job.
Exec [EPO_USLAX-EPO01]..[USp_ShrinkDB]


2. What if you do this in two different steps of the same job, Something like this, 

Create a job, 
First Step in that job is to only shrink one file
USE [EPO_USLAX-EPO01]
DBCC SHRINKFILE ( &#039;ePO_USLAX-EPO01&#039;, 20)

Second step in that job will be to shrink second file.
USE [EPO_USLAX-EPO01]
DBCC SHRINKFILE (&#039;ePO_USLAX-EPO01_log&#039;, 10)

~IM.</description>
		<content:encoded><![CDATA[<p>@rana</p>
<p>Two Options.</p>
<p>1. Create a procedure and execute that procedure in the job.<br />
USE [EPO_USLAX-EPO01]<br />
Create Proc [USp_ShrinkDB]<br />
AS<br />
DBCC SHRINKFILE ( &#8216;ePO_USLAX-EPO01&#8242;, 20)<br />
DBCC SHRINKFILE (&#8216;ePO_USLAX-EPO01_log&#8217;, 10)<br />
go</p>
<p>put this script in the job.<br />
Exec [EPO_USLAX-EPO01]..[USp_ShrinkDB]</p>
<p>2. What if you do this in two different steps of the same job, Something like this, </p>
<p>Create a job,<br />
First Step in that job is to only shrink one file<br />
USE [EPO_USLAX-EPO01]<br />
DBCC SHRINKFILE ( &#8216;ePO_USLAX-EPO01&#8242;, 20)</p>
<p>Second step in that job will be to shrink second file.<br />
USE [EPO_USLAX-EPO01]<br />
DBCC SHRINKFILE (&#8216;ePO_USLAX-EPO01_log&#8217;, 10)</p>
<p>~IM.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rana</title>
		<link>http://blog.sqlauthority.com/2008/02/17/sql-server-how-to-escape-single-quotes-fix-error-105-unclosed-quotation-mark-after-the-character-string/#comment-56706</link>
		<dc:creator>rana</dc:creator>
		<pubDate>Thu, 15 Oct 2009 00:36:28 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=508#comment-56706</guid>
		<description>Following dbcc statement work fine from QA, but it failing using in a sql job. 

Please help.....


Use &quot;EPO_USLAX-EPO01&quot;
go
DBCC SHRINKFILE (&quot;ePO_USLAX-EPO01&quot;, 20)                                                                                                                   
GO
DBCC SHRINKFILE (&quot;ePO_USLAX-EPO01_log&quot;, 10)
go</description>
		<content:encoded><![CDATA[<p>Following dbcc statement work fine from QA, but it failing using in a sql job. </p>
<p>Please help&#8230;..</p>
<p>Use &#8220;EPO_USLAX-EPO01&#8243;<br />
go<br />
DBCC SHRINKFILE (&#8220;ePO_USLAX-EPO01&#8243;, 20)<br />
GO<br />
DBCC SHRINKFILE (&#8220;ePO_USLAX-EPO01_log&#8221;, 10)<br />
go</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carlos Futino</title>
		<link>http://blog.sqlauthority.com/2008/02/17/sql-server-how-to-escape-single-quotes-fix-error-105-unclosed-quotation-mark-after-the-character-string/#comment-55773</link>
		<dc:creator>Carlos Futino</dc:creator>
		<pubDate>Thu, 10 Sep 2009 13:32:13 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=508#comment-55773</guid>
		<description>I know this is an old post, but I&#039;d like to thank you because that&#039;s just what I needed</description>
		<content:encoded><![CDATA[<p>I know this is an old post, but I&#8217;d like to thank you because that&#8217;s just what I needed</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Jones</title>
		<link>http://blog.sqlauthority.com/2008/02/17/sql-server-how-to-escape-single-quotes-fix-error-105-unclosed-quotation-mark-after-the-character-string/#comment-55322</link>
		<dc:creator>John Jones</dc:creator>
		<pubDate>Thu, 27 Aug 2009 21:40:37 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=508#comment-55322</guid>
		<description>Our main goal is to use the same SQL queries (basic inserts, updates, deletes) in both MS Access and SQL Server.  
Our app was originally written for Access using the VS designer to generate the queries. 

After testing these queries, we found that if the ` char was removed and replaced by [ ] brackets, then all the queries would work in both db&#039;s.</description>
		<content:encoded><![CDATA[<p>Our main goal is to use the same SQL queries (basic inserts, updates, deletes) in both MS Access and SQL Server.<br />
Our app was originally written for Access using the VS designer to generate the queries. </p>
<p>After testing these queries, we found that if the ` char was removed and replaced by [ ] brackets, then all the queries would work in both db&#8217;s.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Jones</title>
		<link>http://blog.sqlauthority.com/2008/02/17/sql-server-how-to-escape-single-quotes-fix-error-105-unclosed-quotation-mark-after-the-character-string/#comment-55267</link>
		<dc:creator>John Jones</dc:creator>
		<pubDate>Wed, 26 Aug 2009 17:29:12 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=508#comment-55267</guid>
		<description>We have a DataSet with Table Adapters built for MSAccess using OLEDB. We are using Visual Studio 2005 and .Net 2.0.

When the designer creates insert, update and delete queries it encloses the table name and field names with a ` (ASCII char 96).
For example:

INSERT INTO `table` (`col1`, `col2`, `col3`) values (....)

Is there a reason for this character? Assuming it&#039;s for escape purposes, is there a setting to make Visual Studio use another character, eg &quot;[&quot; or &quot;]&quot;?</description>
		<content:encoded><![CDATA[<p>We have a DataSet with Table Adapters built for MSAccess using OLEDB. We are using Visual Studio 2005 and .Net 2.0.</p>
<p>When the designer creates insert, update and delete queries it encloses the table name and field names with a ` (ASCII char 96).<br />
For example:</p>
<p>INSERT INTO `table` (`col1`, `col2`, `col3`) values (&#8230;.)</p>
<p>Is there a reason for this character? Assuming it&#8217;s for escape purposes, is there a setting to make Visual Studio use another character, eg &#8220;[" or "]&#8220;?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Tkatch</title>
		<link>http://blog.sqlauthority.com/2008/02/17/sql-server-how-to-escape-single-quotes-fix-error-105-unclosed-quotation-mark-after-the-character-string/#comment-53963</link>
		<dc:creator>Brian Tkatch</dc:creator>
		<pubDate>Wed, 22 Jul 2009 15:31:00 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=508#comment-53963</guid>
		<description>@ed.

I made a mistake. Brackets are for objects, not literals.

So, escape it with a single-quote. REPLACE(col, &#039;&#039;&#039;&#039;, &#039;&#039;&#039;&#039;&#039;&#039;)

SET @sql_query = &#039;SELECT COUNT(loc_name + ctv_name + xyz_code )&#039;
				+ &#039; FROM [dbo].[&#039; + @country + &#039;_Listings]&#039;
				+ &#039; WHERE loc_name = &#039; + REPLACE(@province, &#039;&#039;&#039;&#039;, &#039;&#039;&#039;&#039;&#039;&#039;)
				+ &#039;   AND ctv_name = &#039; + REPLACE(@city, &#039;&#039;&#039;&#039;, &#039;&#039;&#039;&#039;&#039;&#039;)
				+ &#039;   AND sic_code = &#039; + REPLACE(@xyz_code, &#039;&#039;&#039;&#039;, &#039;&#039;&#039;&#039;&#039;&#039;);

The confusion here is that you are using dynamic SQL. If you use parameters instead, all these problems go away.

Obviously, you want dynamic SQL because of the TABLE which is dynamic. But is that really what you want? Why not have one Listing TABLE with country as a COLUMN inside it?</description>
		<content:encoded><![CDATA[<p>@ed.</p>
<p>I made a mistake. Brackets are for objects, not literals.</p>
<p>So, escape it with a single-quote. REPLACE(col, &#8221;&#8221;, &#8221;&#8221;&#8221;)</p>
<p>SET @sql_query = &#8216;SELECT COUNT(loc_name + ctv_name + xyz_code )&#8217;<br />
				+ &#8216; FROM [dbo].[' + @country + '_Listings]&#8216;<br />
				+ &#8216; WHERE loc_name = &#8216; + REPLACE(@province, &#8221;&#8221;, &#8221;&#8221;&#8221;)<br />
				+ &#8216;   AND ctv_name = &#8216; + REPLACE(@city, &#8221;&#8221;, &#8221;&#8221;&#8221;)<br />
				+ &#8216;   AND sic_code = &#8216; + REPLACE(@xyz_code, &#8221;&#8221;, &#8221;&#8221;&#8221;);</p>
<p>The confusion here is that you are using dynamic SQL. If you use parameters instead, all these problems go away.</p>
<p>Obviously, you want dynamic SQL because of the TABLE which is dynamic. But is that really what you want? Why not have one Listing TABLE with country as a COLUMN inside it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Tkatch</title>
		<link>http://blog.sqlauthority.com/2008/02/17/sql-server-how-to-escape-single-quotes-fix-error-105-unclosed-quotation-mark-after-the-character-string/#comment-53957</link>
		<dc:creator>Brian Tkatch</dc:creator>
		<pubDate>Wed, 22 Jul 2009 12:27:07 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=508#comment-53957</guid>
		<description>@ed.

Sorry about that. The double-quote should be a single-quote. It needs to end off the ])

In your last example too, make the double-quote a single-quote.

Double-quote are used to quote names, such as a TABLE or COLUMN. Single-quotes are used for values.</description>
		<content:encoded><![CDATA[<p>@ed.</p>
<p>Sorry about that. The double-quote should be a single-quote. It needs to end off the ])</p>
<p>In your last example too, make the double-quote a single-quote.</p>
<p>Double-quote are used to quote names, such as a TABLE or COLUMN. Single-quotes are used for values.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ed.</title>
		<link>http://blog.sqlauthority.com/2008/02/17/sql-server-how-to-escape-single-quotes-fix-error-105-unclosed-quotation-mark-after-the-character-string/#comment-53937</link>
		<dc:creator>ed.</dc:creator>
		<pubDate>Wed, 22 Jul 2009 02:07:45 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=508#comment-53937</guid>
		<description>I have tried your suggestion and this is the result:

SET @sql_query = &quot;SELECT COUNT( loc_name + ctv_name + xyz_code ) FROM [dbo].[&#039; + @country + &#039;_Listings] WHERE ( loc_name = [&#039; + @province + &#039;] ) AND ( ctv_name = [&#039; + @city + &#039;] ) AND ( sic_code = [&#039; + @xyz_code + &#039;] )&quot;;

Msg 103, Level 15, State 4, Procedure set_RECORDS, Line 54
The identifier that starts with &#039;

SELECT COUNT( loc_name + ctv_name + xyz_code ) FROM [dbo].[&#039; + @country + &#039;_Listings]&#039;

is too long. Maximum length is 128.</description>
		<content:encoded><![CDATA[<p>I have tried your suggestion and this is the result:</p>
<p>SET @sql_query = &#8220;SELECT COUNT( loc_name + ctv_name + xyz_code ) FROM [dbo].[' + @country + '_Listings] WHERE ( loc_name = [' + @province + '] ) AND ( ctv_name = [' + @city + '] ) AND ( sic_code = [' + @xyz_code + '] )&#8221;;</p>
<p>Msg 103, Level 15, State 4, Procedure set_RECORDS, Line 54<br />
The identifier that starts with &#8216;</p>
<p>SELECT COUNT( loc_name + ctv_name + xyz_code ) FROM [dbo].[' + @country + '_Listings]&#8216;</p>
<p>is too long. Maximum length is 128.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ed.</title>
		<link>http://blog.sqlauthority.com/2008/02/17/sql-server-how-to-escape-single-quotes-fix-error-105-unclosed-quotation-mark-after-the-character-string/#comment-53935</link>
		<dc:creator>ed.</dc:creator>
		<pubDate>Tue, 21 Jul 2009 20:36:45 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=508#comment-53935</guid>
		<description>Thanks Brian. I am lost with the double quote at the end of the line. This is the query as I have it:

SET @sql_query = &#039;INSERT INTO &#039; + @TRG__db_table + &#039; ( &#039; + @TRG__tb_fields + &#039; ) VALUES ( &#039; + @user_name + &#039;, &#039; + @TRG__address + &#039;, &#039; + @TRG__user_name + &#039; , &#039; + @TRG__city_town + &#039;, &#039; + @TRG__state_province + &#039; )&#039;;

PRINT &#039;SQL-Query: &#039; + @sql_query;

Should I make it like:

SET @sql_query = &#039;INSERT INTO [&#039; + @TRG__db_table + &#039;] ( [&#039; + @TRG__tb_fields + &#039;] ) VALUES ( [&#039; + @user_name + &#039;], [&#039; + @TRG__address + &#039;], [&#039; + @TRG__user_name + &#039;], [&#039; + @TRG__city_town + &#039;], [&#039; + @TRG__state_province + &#039;] )&#039;;

If this is ok, where does the double quote should be placed?</description>
		<content:encoded><![CDATA[<p>Thanks Brian. I am lost with the double quote at the end of the line. This is the query as I have it:</p>
<p>SET @sql_query = &#8216;INSERT INTO &#8216; + @TRG__db_table + &#8216; ( &#8216; + @TRG__tb_fields + &#8216; ) VALUES ( &#8216; + @user_name + &#8216;, &#8216; + @TRG__address + &#8216;, &#8216; + @TRG__user_name + &#8216; , &#8216; + @TRG__city_town + &#8216;, &#8216; + @TRG__state_province + &#8216; )&#8217;;</p>
<p>PRINT &#8216;SQL-Query: &#8216; + @sql_query;</p>
<p>Should I make it like:</p>
<p>SET @sql_query = &#8216;INSERT INTO [' + @TRG__db_table + '] ( [' + @TRG__tb_fields + '] ) VALUES ( [' + @user_name + '], [' + @TRG__address + '], [' + @TRG__user_name + '], [' + @TRG__city_town + '], [' + @TRG__state_province + '] )&#8217;;</p>
<p>If this is ok, where does the double quote should be placed?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Tkatch</title>
		<link>http://blog.sqlauthority.com/2008/02/17/sql-server-how-to-escape-single-quotes-fix-error-105-unclosed-quotation-mark-after-the-character-string/#comment-53919</link>
		<dc:creator>Brian Tkatch</dc:creator>
		<pubDate>Tue, 21 Jul 2009 13:08:00 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=508#comment-53919</guid>
		<description>@ed.

Either escape the single-quote with another, or encase it in brackets.

VALUES ([ &#039; + @COLUMN_ABC  + &#039;])’&#039;;</description>
		<content:encoded><![CDATA[<p>@ed.</p>
<p>Either escape the single-quote with another, or encase it in brackets.</p>
<p>VALUES ([ ' + @COLUMN_ABC  + '])’&#8217;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ed.</title>
		<link>http://blog.sqlauthority.com/2008/02/17/sql-server-how-to-escape-single-quotes-fix-error-105-unclosed-quotation-mark-after-the-character-string/#comment-53915</link>
		<dc:creator>ed.</dc:creator>
		<pubDate>Tue, 21 Jul 2009 12:25:16 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=508#comment-53915</guid>
		<description>Hello, I have a set of columns I need use in a query but they contain single quote elements.

e.g.: [Mark&#039;s House]
Whenever I try to do this:

SET @sql_query = &#039;INSERT INTO &#039; + @TABLE_XYZ + &#039; ( &#039; + @TRG_FIELDS + &#039; ) VALUES ( &#039; + @COLUMN_ABC &#039; + &#039;)&#039; ;
EXEC ( @sql_query );

The query works as long as the columns do not contain the single quote element.

Can anyone give me hand on this?
I am no longer sure of what could be the solution to this.

I am sure it&#039;s simple. :(</description>
		<content:encoded><![CDATA[<p>Hello, I have a set of columns I need use in a query but they contain single quote elements.</p>
<p>e.g.: [Mark's House]<br />
Whenever I try to do this:</p>
<p>SET @sql_query = &#8216;INSERT INTO &#8216; + @TABLE_XYZ + &#8216; ( &#8216; + @TRG_FIELDS + &#8216; ) VALUES ( &#8216; + @COLUMN_ABC &#8216; + &#8216;)&#8217; ;<br />
EXEC ( @sql_query );</p>
<p>The query works as long as the columns do not contain the single quote element.</p>
<p>Can anyone give me hand on this?<br />
I am no longer sure of what could be the solution to this.</p>
<p>I am sure it&#8217;s simple. :(</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pinaldave</title>
		<link>http://blog.sqlauthority.com/2008/02/17/sql-server-how-to-escape-single-quotes-fix-error-105-unclosed-quotation-mark-after-the-character-string/#comment-53227</link>
		<dc:creator>pinaldave</dc:creator>
		<pubDate>Wed, 24 Jun 2009 11:36:45 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=508#comment-53227</guid>
		<description>Thank you Brian Tkatch

For pointing this out. I have edited abusive response.

Kind Regards,
Pinal</description>
		<content:encoded><![CDATA[<p>Thank you Brian Tkatch</p>
<p>For pointing this out. I have edited abusive response.</p>
<p>Kind Regards,<br />
Pinal</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Tkatch</title>
		<link>http://blog.sqlauthority.com/2008/02/17/sql-server-how-to-escape-single-quotes-fix-error-105-unclosed-quotation-mark-after-the-character-string/#comment-53225</link>
		<dc:creator>Brian Tkatch</dc:creator>
		<pubDate>Wed, 24 Jun 2009 11:25:37 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=508#comment-53225</guid>
		<description>@Martin

Please do not use abusive language. It is not helpful to anyone.</description>
		<content:encoded><![CDATA[<p>@Martin</p>
<p>Please do not use abusive language. It is not helpful to anyone.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://blog.sqlauthority.com/2008/02/17/sql-server-how-to-escape-single-quotes-fix-error-105-unclosed-quotation-mark-after-the-character-string/#comment-53211</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Tue, 23 Jun 2009 20:35:22 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=508#comment-53211</guid>
		<description>Oh, and for you other [removed word]:

set quoted_identifier off
select &quot;Hello &#039;you&#039; if that&#039;s your real name&quot;
set quoted identifier on

Learn how to learn!</description>
		<content:encoded><![CDATA[<p>Oh, and for you other [removed word]:</p>
<p>set quoted_identifier off<br />
select &#8220;Hello &#8216;you&#8217; if that&#8217;s your real name&#8221;<br />
set quoted identifier on</p>
<p>Learn how to learn!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://blog.sqlauthority.com/2008/02/17/sql-server-how-to-escape-single-quotes-fix-error-105-unclosed-quotation-mark-after-the-character-string/#comment-53210</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Tue, 23 Jun 2009 20:30:49 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=508#comment-53210</guid>
		<description>Chris, this is standard ANSI SQL behavior, you [removed word].</description>
		<content:encoded><![CDATA[<p>Chris, this is standard ANSI SQL behavior, you [removed word].</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: awanish</title>
		<link>http://blog.sqlauthority.com/2008/02/17/sql-server-how-to-escape-single-quotes-fix-error-105-unclosed-quotation-mark-after-the-character-string/#comment-52108</link>
		<dc:creator>awanish</dc:creator>
		<pubDate>Wed, 20 May 2009 12:51:03 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=508#comment-52108</guid>
		<description>How to find central in below string in sql 

AWA/Central/_catalogs/masterpage

Thanks in advance</description>
		<content:encoded><![CDATA[<p>How to find central in below string in sql </p>
<p>AWA/Central/_catalogs/masterpage</p>
<p>Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://blog.sqlauthority.com/2008/02/17/sql-server-how-to-escape-single-quotes-fix-error-105-unclosed-quotation-mark-after-the-character-string/#comment-49228</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Mon, 16 Mar 2009 23:01:25 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=508#comment-49228</guid>
		<description>This is a helpful post.

This is hideous functionality. Completely unintuitive. One more reason for me to hate SQL Server...</description>
		<content:encoded><![CDATA[<p>This is a helpful post.</p>
<p>This is hideous functionality. Completely unintuitive. One more reason for me to hate SQL Server&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kittiphongC</title>
		<link>http://blog.sqlauthority.com/2008/02/17/sql-server-how-to-escape-single-quotes-fix-error-105-unclosed-quotation-mark-after-the-character-string/#comment-46848</link>
		<dc:creator>kittiphongC</dc:creator>
		<pubDate>Wed, 18 Feb 2009 11:12:13 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=508#comment-46848</guid>
		<description>OK this is easiest example
My value that I want to query is -&gt;  Ma&#039;ry (you will see it has &#039; among word)
 
select Name
from employee
where Name = &#039;Ma&#039;&#039;ry&#039; 

word by word -&gt; Single quote+Ma+Single quote+Single quote+ry+Single quote</description>
		<content:encoded><![CDATA[<p>OK this is easiest example<br />
My value that I want to query is -&gt;  Ma&#8217;ry (you will see it has &#8216; among word)</p>
<p>select Name<br />
from employee<br />
where Name = &#8216;Ma&#8221;ry&#8217; </p>
<p>word by word -&gt; Single quote+Ma+Single quote+Single quote+ry+Single quote</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MohammedAshrafali</title>
		<link>http://blog.sqlauthority.com/2008/02/17/sql-server-how-to-escape-single-quotes-fix-error-105-unclosed-quotation-mark-after-the-character-string/#comment-46837</link>
		<dc:creator>MohammedAshrafali</dc:creator>
		<pubDate>Wed, 18 Feb 2009 08:04:15 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=508#comment-46837</guid>
		<description>Thankx</description>
		<content:encoded><![CDATA[<p>Thankx</p>
]]></content:encoded>
	</item>
</channel>
</rss>
