Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Better Explanation With Escape Character Issue

Author  Topic 

filipinoheat
Starting Member

8 Posts

Posted - 2006-07-27 : 13:18:22
I'm sorry if I'm not being clear but this is what I'm trying to do. I'm trying to update a table with new descriptions inside an html tags. I'm using query analyzer to query the table, but unfortunately it does not display the full result. So to resolve this issue is that I export result into notepad by using bcp utility and modify the things that I need, copy and paste it onto my update query like this:

update myTable
set faq_text = '<FONT size=2><FONT size=2><FONT size=2><FONT size=2><FONT size=2><FONT size=2><FONT size=2> <P class=MsoTitle style="MARGIN: 0in 0in 0pt"><STRONG>BVIG Financial Frequently Asked Questions<BR></STRONG><STRONG></P></STRONG>
<P class=MsoTitle style="MARGIN: 0in 0in 0pt"></P> <P class=MsoTitle style="MARGIN: 0in 0in 0pt"></P> <P class=MsoTitle style="MARGIN: 0in 0in 0pt"><FONT face=Arial><FONT size=4><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></FONT></P> <P class=MsoNormal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: center"><SPAN style="FONT-SIZE: 14pt; mso-bidi-font-size: 12.0pt; mso-bidi-font-style: italic"><o:p><FONT face=Arial size=1></FONT></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 11pt; mso-bidi-font-size: 12.0pt; mso-bidi-font-style: italic; mso-bidi-font-weight: bold"><o:p><FONT face=Arial size=1></FONT></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 11pt; mso-bidi-font-size: 12.0pt; mso-bidi-font-style: italic; mso-bidi-font-weight: bold"><o:p><FONT face=Arial size=1></FONT></o:p></SPAN></P>
<H4 class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 11pt; mso-bidi-font-size: 12.0pt; mso-bidi-font-style: italic; mso-bidi-font-weight: bold"><o:p><FONT face=Arial size=1></FONT></o:p></SPAN>'


But this gives me an error since the html tag attributes are using single quotes. I thought T-SQL would have escape chracters like C#.

TG
Master Smack Fu Yak Hacker

6065 Posts

Posted - 2006-07-27 : 13:25:38
dupe post:
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=69653

Be One with the Optimizer
TG
Go to Top of Page

eyechart
Master Smack Fu Yak Hacker

3575 Posts

Posted - 2006-07-27 : 16:46:13
heat - you should really put this message in the original thread.

that could potentially help someone later if they had a similar issue.



-ec
Go to Top of Page
   

- Advertisement -