Laden...

HTML Code auf einem SQL Srv speichern (ntext)

Erstellt von ZeroQool vor 16 Jahren Letzter Beitrag vor 16 Jahren 1.407 Views
Z
ZeroQool Themenstarter:in
322 Beiträge seit 2006
vor 16 Jahren
HTML Code auf einem SQL Srv speichern (ntext)

Hallo, ich habe Probleme ausgelesene HTML Codes auf einem SQL Server zu speichern. Dateityp ist NTEXT aufgrund der großen Zeichenlänge.

UPDATE tbleBay_VAiB SET  [ntext_Auktionstext] = '<html> <head> <meta http-equiv="Content-Language" content="de"> <meta name="GENERATOR" content="Microsoft FrontPage 6.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>Neue Seite 1</title> <style> <!-- .body {background-color:#ffffff;} span.inpcap1 {} --> </style> </head> <body bgcolor="#C0C0C0" background="http://guenstige-hardware.de/ebay/marco/hintergrund.bmp"> <p align="center"> <img border="0" src="http://guenstige-hardware.de/ebay/marco/shop-logo.gif" width="965" height="257"></p> <p align="center"> &nbsp;</p> <span class="override"> <font face="Arial" size="2"> <p align="center">&nbsp;</p> </font> <font face="Comic Sans MS" size="5" color="#FF0000"> </font> <font face="Arial" size="2"> <table cellSpacing="0" cellPadding="0" width="100%" id="table9"> <tr> <td> <table cellSpacing="0" cellPadding="0" width="100%" id="table10"> <tr> <td> <table cellSpacing="0" cellPadding="0" width="100%" id="table11"> <tr> <td width="100%"> <div id="EBdescription0"> <p align="center"> <img height="91" src="http://guenstige-hardware.de/ebay/Flo/hpinvent.bmp" width="111" border="0"></p> <p align="center">&nbsp;</p> </font> <table id="table12" cellSpacing="0" cellPadding="0" width="100%" border="0"> <tr> <td> <table id="table13" cellSpacing="0" cellPadding="0" width="100%" border="0"> <tr> <td> <div align="center"> <table id="table14" width="100%"> <tr> <td> <div id="EBdescription1"> <p align="center"> <font face="Times New Roman" color="#FFFFFF" size="2"> <b> 
 <font style="font-size: 24pt; background-color: #0000FF"> Das Fotostudio für unterwegs!</font></b></font></p> <font face="Arial" size="2"> <p align="center">&nbsp;</p> </font> <table cellSpacing="0" cellPadding="0" width="100%" id="table23"> <tr> <td> <table cellSpacing="0" cellPadding="0" width="100%" id="table24"> <tr> <td> <table cellSpacing="0" cellPadding="0" width="100%" id="table25"> <tr> <td width="85%"> <div id="EBdescription4"> <h1 align="center"><b>
  <font face="Times New Roman" color="#FFFFFF" style="font-size: 24pt"><span style="background-color: #0000FF">&nbsp;***</span></font><font style="background-color: #0000FF; font-size:24pt" face="Times New Roman" color="#FFFFFF"> Digitalkamera + Fotodrucker</font><font face="Times New Roman" color="#FFFFFF" style="font-size: 24pt"><span style="background-color: #0000FF"> *** </span></font></b></h1> <p align="center">&nbsp;</p> <p align="center">&nbsp;</p> </font> <font face="Arial" size="2"> <div align="center"> <table border="1" width="73%" id="table32"> <tr> <td align="center"><b><font size="2" color="#0000FF">HP Photosmart 145 - Fotodrucker</font></b><p> <img border="0" src="http://www.guenstige-hardware.de/ebay/chriss/photosmarts/hp_photosmart_145_bild_neu.jpg" width="281" height="200"></td> <td width="424" align="center"> <p align="center">&nbsp;</p> <p align="center"><b><font size="2" color="#0000FF">HP Photosmart 735- Digitalkamera</font></b></p> <p align="center"><span class="override"> <font face="Arial" size="2"> <img border="0" src="http://guenstige-hardware.de/ebay/marco/hp735.gif" width="278" height="204"></font></span></p> <p align="center">&nbsp;</td> </tr> </font> </font> <tr> <td> <span class="override"> <p ALIGN="center">&nbsp;</p> <p align="center"><font face="Arial" size="2"><span style="font-weight: 700;">
   <font face="Times New Roman">- </font></span><span class="override" style="font-weight: 700; font-family: Futura-Book;">
   <font face="Times New Roman">Überragende Farbbilder mit bis zu 4800 x 1200 dpi (optimiert)</font></span></p> 
   <font face="Arial"> <p align="center"><span style="font-weight: 700;"> 
   <font face="Times New Roman">-</font></span></font></font><font face="Arial"><span style="font-weight: 700;"><font size="2">
   </font></span> <font face="Times New Roman"> <span class="override" style="font-weight: 700; font-family: Futura-Book;"> 
   <font size="2">Randlose 10 x 15 cm Bilder&nbsp; drucken – in der Qualität traditioneller Fotoabzüge</font></span></font></p> <p align="center"> <span class="override" style="font-weight: 700; font-family: Futura-Book;"> 
   <font face="Times New Roman" size="2">Direkt von einer Digitalkamera oder Speicherkarte aus drucken – ohne PC oder Macintosh</font></span></p> <p align="center"> 
   <span style="font-weight: 700; font-family: Futura-Book"> 
   <font face="Times New Roman" size="2">- CompactFlashTM Typ I und II, IBM MicroDrive, Secure DigitalTM, MultiMedia, Secure<br> <br> &nbsp;MultiMedia, SmartMedia, Sony Memory Stick®/Pro/Duo und xD PictureCard</font></span></p> <p align="center"><span style="font-weight: 700;"> 
   <font size="2" face="Times New Roman">- </font></span> 
   <font face="Times New Roman"> <span class="override" style="font-weight: 700; font-family: Futura-Book;"> 
   <font size="2">USB-Schnittstelle für den unkomplizierten Anschluss an die meisten
   </font></span></font></p> <p align="center"> <span class="override" style="font-weight: 700; font-family: Futura-Book;"> 
   <font face="Times New Roman" size="2">PC- und Macintosh-Modelle</font></span></p> <p align="center"><span style="font-weight: 700;"> 
   <font size="2" face="Times New Roman">- </font></span> 
   <font face="Times New Roman"> <span class="override" style="font-weight: 700; font-family: Futura-Book;"> 
   <font size="2">Intuitives Bedienfeld mit symbolbasierter LCD-Anzeige</font></span></font></p> <p align="center"> <span class="override" style="font-weight: 700; font-family: Futura-Book;"> 
   <font face="Times New Roman" size="2">kompatibel mit:</font></span></p> <p align="center"> <span class="override" style="font-weight: 700; font-family: Futura-Book;"> 
   <font face="Times New Roman" size="2">Microsoft® Windows® (98 /Me /2000 /XP); Macintosh® </font></span></p> <p align="center"> <span class="override" style="font-weight: 700; font-family: Futura-Book;"> 
   <font face="Times New Roman" size="2">(Mac OS 9 bzw. OS X 10.1 oder höher bei Prozessoren ab G3)</font></span></p> </font> </span> <font face="Arial" size="2"> <p>&nbsp;</td> <td width="424"> <span class="override"> <font face="Times New Roman" size="2"> <p ALIGN="center">&nbsp;</p> <p ALIGN="center"><b>- Pentax® Glasobjektiv (asphärische Linse aus doppeltem Formglas) -</b></p> <p align="center"><b>- 3,2 Megapixel Auflösung und Pentax Objektiv (2140 x 1560 Pixel insgesamt) -</b></p> <p align="center"><b>- 3x optischer Zoom ; 5x Digitalzoom (15x Gesamtzoom) -</b></p> <p ALIGN="center"><b>- 3,8-cm-TFT-Farbdisplay mit Hintergrundbeleuchtung -</b></p> <p ALIGN="center"><b>- 16 MB interner Speicher für Einzelbilder und Videos; Steckplatz für Secure Digital (SD) </b></p> <p ALIGN="center"><b>und MultiMedia Card (MMC) zur Speichererweiterung -</b></p> <p align="center"><b>- Schnitttstelle: USB -</b></p> <p align="center"><b>- Kompatibel mit Windows -</b></p> <p align="center"><b><font color="#ff0000">verwendet 2 AA-Batterien - 4 Akkus im Lieferumfang enthalten</font></b></p> </font> </span> <p>&nbsp;</td> </tr> </table> </div> <span class="override"> <font face="Arial" size="2"> </font> </span> <p class="MsoNormal" style="line-height: 200%; margin-left: 2px; margin-right: 2px" align="center">&nbsp;</p> </font> <span class="override"> <font face="Arial" size="2"> 
<P align=center><font color="#0000FF" face="Times New Roman" size="4">
                     <b>
<span style="background-color: rgb(255, 255, 255)">&nbsp;AKKULADEGERÄT UND 4 
AKKUS INKLUSIVE </span></b></font></P>
<P align=center>&nbsp;</P>
<P align=center>
<img src="http://guenstige-hardware.de/ebay/sebastian/ladegeraet2.gif"></P>
  <p align="center">&nbsp;</p> <p align="center">&nbsp;</p> <p align="center">&nbsp;</p> <p align="center">&nbsp;</p> <p align="center"><span style="background-color: #FF0000"><b><u> 
  <font color="#FFFFFF" size="4" face="Times New Roman">&nbsp;Zustand:</font></u></b></span></p> </font> <p align="center"> 
  <font style="font-weight: 700" face="Times New Roman">&nbsp;Es handelt sich um neuwertige Vorführgeräte in neutraler Verpackung.</font></font></font></span></font></p> <font face="Arial" size="2"> </div> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> <font face="Arial" size="2"> </font> </font> <p align="center"> <u><b> 
 <span style="background-color: #FF0000" class="override">
 <font color="#FFFFFF" size="4" face="Times New Roman">&nbsp;Lieferumfang: 
 </font> </span></b></u></p> <font face="Arial"> <span class="override"> <p align="center"> 
 <font style="font-weight: 700" face="Times New Roman">HP Photosmart 735, 4 Akkus,&nbsp;USB-Kabel, erstellte Software&nbsp;&amp; Handbuch auf CD-Rom</font><p ALIGN="center"> 
 <font style="font-weight: 700" face="Times New Roman">HP Photosmart 145 Fotodrucker, 
 volle HP Nr. 57 Farbdruckpatrone, Netzteil mit Kabel, </font></p> <p ALIGN="center"> 
 <font style="font-weight: 700" face="Times New Roman"> erstellte Software&nbsp;&amp; Handbuch auf CD-Rom</font></p> </span> </font> </font>  
 <p align="center">
<span class="override">
               <span style="font-weight: 700" class="override">
               <font face="Times New Roman">Akkuladegerät 
               </font></span>
<font face="Times New Roman">
               <b>LLD506</b></font></span><p align="center">
<span class="override">
               <font style="font-weight: 700" color="#FF0000" size="3" face="Times New Roman">
               100 Blatt HP 
               Fotopapier (10x15)</font></span></div> </td> </tr> </table> </div> </td> </tr> </table> </td> </tr> </table> </font> <span class="override"> <p align="center"><u><b> 
 <span style="background-color: #FF0000" class="override">
 <font color="#FFFFFF" size="4" face="Times New Roman">&nbsp;Zahlungsmethoden: 
 </font> </span> </b></u> </p> <font face="Arial" size="2"> </font> </font> </span> <font face="Arial" size="2"> </font> </font> 
 <font face="Arial"> <span class="override"> <p align="center"> <b> <font face="Times New Roman">Banküberweisung, per Nachnahme, Selbstabholung (nach Absprache)</font></b></p> </span> </font> <span class="override"> <p align="center"> <span style="background-color: #FF0000" class="override"> <u><b>
 <font color="#FFFFFF" size="4" face="Times New Roman">&nbsp;Gewährleistung: 
 </font></b></u></span></p> </span> <p align="center"> <font face="Arial"> 
 <b> <font face="Times New Roman"><span class="override">Auf dieses Produkt&nbsp;erhalten Sie 12 Monate Händlergewährleistung. </span></font>
 </b></p> <p align="center"> <b> <span class="override"> <font face="Times New Roman">Natürlich erhalten Sie von uns eine Rechnung mit ausgewiesener MwSt.</font></span></b></p>
 <p align="center"> &nbsp;</p> </font> <font face="Arial" size="2"> 
       <span style="font-weight: 700; ">
       <p style="line-height: 200%" align="center">
       </span><span style="background-color: #0000FF"><b>
       <span style="font-weight: 700; ">
       <font size="4" face="Times New Roman" color="#FFFFFF">Auch hier gelten unsere 
       <a href="http://members.ebay.de/ws2/eBayISAPI.dll?ViewUserPage&userid=***_1a-computer-discount_***">
       <font color="#FFFFFF">AGB`s </font></a>
       </font></span>
       <font face="Times New Roman" color="#FFFFFF">
       <span style="font-weight: 700; ">
       <font size="4">! </font></span></font>
       <span style="font-weight: 700; font-size: 12pt">
       <font face="Times New Roman" size="4" color="#FFFFFF">
       <span style="background-color: #0000FF; font-weight:700">
       &nbsp;</span></font></span></b></span><b><span style="background-color: #0000FF"><span style="font-weight: 700; "><font face="Times New Roman" color="#FFFFFF" size="4">Es gilt
       </font></span>
       <span style="font-weight: 700; font-size: 12pt">
       <font face="Times New Roman" size="4" color="#FFFFFF">
       <span style="background-color: #0000FF; font-weight:700">
       das gesetzliche Rückgaberecht.</span></font></span></span></b></p>
 </div> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> <p align="center">&nbsp;</p> </font> </span> <p align="center"> <img border="0" src="http://guenstige-hardware.de/ebay/marco/linie.gif" width="815" height="12"></p> <p align="center"> &nbsp;</p> <table cellSpacing="0" cellPadding="0" width="100%" id="table1"> <tr> <td> <table cellSpacing="0" cellPadding="0" width="100%" id="table2"> <tr> <td> <table cellSpacing="0" cellPadding="0" width="100%" id="table3"> <tr> <td width="100%"> <div id="EBdescription"> 
       <p align="center"><b>
       <font style="FONT-SIZE: 16pt">Für 
       Rückfragen oder weitere Informationen stehen wir 
       Ihnen gerne zur Verfügung</font></b></p>
<P align=center>&nbsp;</P>
<P align=center>
<a href="mailto:marco.lehmann@stoffel.de?subject=HP Photosmart 735"><IMG height=60 src="http://guenstige-hardware.de/ebay/marco/email.gif" width=55 border=0></a></P>
<P align=center>&nbsp;</P>
       <p align="center">
       <span style="background-color: #FFFFFF"><b>
       <font face="Times New Roman" style="font-size: 16pt" color="#FF0000">&nbsp;</font></b></span><b><span Times Roman?; New Roman?;mso-ansi-language:DE;mso-fareast-language: mso-fareast-font-family:?Times DE;mso-bidi-language:AR-SA><font face="Times New Roman" color="#ff0000" style="font-size: 16pt"><span style="BACKGROUND-COLOR: #ffffff">weit über 
       20000 zufriedene Kunden können nicht täuschen !!! </span></font></span></b></p>
       <p align="center">&nbsp;</p>
       <p align="center">
       <img height="721" src="http://guenstige-hardware.de/ebay/marco/bewertung.gif" width="987" border="0"></p>
       <p align="center">&nbsp;</p>
       <p align="center"><font color="#0000ff" size="4">
       ****</font></p>
       <p align="center"><font face="Times New Roman">
       <span style="font-size: 16pt; background-color: #ffffff">&nbsp;<font style="font-size: 16pt; background-color:#ffffff">Unsere 
       Produkte haben wir auf Lager. </font></span></font></p>
       <p align="center">
       <font size="4"><b>&nbsp;Selbstabholung 
       ist bei uns erwünscht. Natürlich nach Absprache! </b></font></p>
       <p align="center"><font color="#0000ff" size="4">
       ****</font></p>
       <p align="center">
       <font face="Times New Roman" style="font-size: 16pt">
       <span style="BACKGROUND-COLOR: #ffffff">&nbsp;Wir 
       versenden International, bitte erfragen Sie die 
       entsprechenden Versandkosten per Email. </span></font></p>
       <p align="center">
       <font size="4"><b>&nbsp;International delivery possible - please contact us 
       for shipping cost </b></font></p>
       <p align="center"><font color="#0000ff" size="4">
       ****</font></p>
       <p align="center"><b><font size="4" color="#FFFFFF">
       <span style="BACKGROUND-COLOR: #FF0000">&nbsp;Zur 
       Kaufabwicklung: </span></font></b></p>
       <p class="MsoNormal" align="center">
       <font color="#0000ff" size="4">Sie erhalten von uns 
       innerhalb 24 Stunden eine automatische Email mit den 
       Zahlungsinformationen (Afterbuy), </font></p>
       <p class="MsoNormal" align="center">
       <font color="#0000ff" size="4">füllen Sie diese 
       Bestellung bitte aus. Falls Sie diese nicht erhalten 
       sollten, senden Sie uns eine Email oder rufen Sie 
       uns an. </font></p>
       <p class="MsoNormal" align="center">
       <font color="#0000ff" size="4">Bitte schauen Sie 
       auch in Ihrem Spam-Ordner nach. Ihre hinterlegte 
       Email-Adresse bei Ebay, sollte aktuell sein!</font></p>
       <p class="MsoNormal" align="center">
       <font color="#0000ff" size="4">&nbsp;Überweisungen 
       bitte nur mit richtigem Verwendungszweck!</font></p>
       <p align="center"><font color="#0000ff" size="4">
       ****</font></p>
       <p align="center"><b><font size="4" color="#FFFFFF">
       <span style="BACKGROUND-COLOR: #FF0000">&nbsp;Zu den 
       Bewertungen: </span></font></b></p>
       <p align="center"><font color="#0000ff" size="4">Wir 
       können leider aus zeitlichen und technischen Gründen 
       nur auf abgebende Bewertungen antworten.</font></p>
       <p align="center"><font color="#0000ff" size="4">
       Falls es Probleme mit dem Versand oder der Ware 
       geben sollte, bitten wir Sie uns das mitzuteilen !!!</font></p>
       <p align="center"><font color="#0000ff" size="4">
       ****</font></p>
       <p align="center">&nbsp;</p>
       <p align="center">
       <span style="FONT-SIZE: 12pt" Times Roman?; New Roman?;mso-ansi-language:DE;mso-fareast-language: DE;mso-bidi-language:AR-SA>
       <font color="#000000">
       <img src="http://www.guenstige-hardware.de/ebay/layout/widerrufsrecht.jpg" border="0"></font></span></p>
       <p align="center">&nbsp;</p>
       <p align="center"><font color="#0000ff" size="4">
       ****</font></p>
       <p align="center"><b>
       <span style="BACKGROUND-COLOR: #0000FF">
       <font size="4" color="#FFFFFF">&nbsp;Tippfehler &amp; Irrtümer sind 
       vorbehalten. </font></span></b></p>
       <p align="center"><font color="#0000ff" size="4">
       ****</font></p>
       <p align="center">&nbsp;</p>
       <div align="center">
        <center>
        <table id="table137" style="BORDER-COLLAPSE: collapse" borderColor="#111111" cellSpacing="0" cellPadding="0" width="91%" border="0">
         <tr>
          <td width="33%">
          <table id="table138" style="BORDER-COLLAPSE: collapse" borderColor="#111111" cellSpacing="0" cellPadding="0" width="91%" border="0">
           <tr>
            <td width="34%">
            <p align="center">&nbsp;</td>
            <td width="38%">
            <p align="center">
            <img height="156" src="http://guenstige-hardware.de/ebay/marco/post.gif" width="156" border="0"></td>
            <td width="28%">
            <p align="center">&nbsp;</td>
           </tr>
          </table>
          </td>
          <td width="33%">
          <p align="center">
          <span style="FONT-SIZE: 12pt" Times Roman?; New Roman?;mso-ansi-language:DE;mso-fareast-language: DE;mso-bidi-language:AR-SA>
          <font color="#000000">
          <img height="50" src="http://guenstige-hardware.de/ebay/florian/logos/post.gif" width="150" border="0"></font></span>
          </p>
          <p align="center"><b>- versicherter 
          Versand -</b></td>
          <td width="34%">
          <p align="center">
          <img height="100" src="http://guenstige-hardware.de/ebay/Flo/transparenz.jpg" width="100" align="center" border="0"></td>
         </tr>
        </table>
        </center></div>
 </div> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> <p align="center">&nbsp;</p> <table cellSpacing="0" cellPadding="0" width="100%" id="table17"> <tr> <td> <table cellSpacing="0" cellPadding="0" width="100%" id="table18"> <tr> <td> <table cellSpacing="0" cellPadding="0" width="100%" id="table19"> <tr> <td width="100%"> <div id="EBdescription2"> <span style="font-size: 12pt" DE;mso-bidi-language:AR-SA Roman?;mso-ansi-language:DE;mso-fareast-language: New Roman?; Times> <table id="table20" cellSpacing="0" cellPadding="0" width="100%" border="0"> <tr> <td> <table id="table21" cellSpacing="0" cellPadding="0" width="100%" border="0"> <tr> <td> <table id="table22" width="100%"> <tr> <td> <div id="EBdescription3"> <table cellSpacing="0" cellPadding="0" width="100%" id="table29"> <tr> <td> <table cellSpacing="0" cellPadding="0" width="100%" id="table30"> <tr> <td> <table cellSpacing="0" cellPadding="0" width="100%" id="table31"> <tr> <td width="100%"> <div id="EBdescription6"> <font face="Times New Roman"> 
 <span Times Roman?; New Roman?;mso-ansi-language:DE;mso-fareast-language: DE;mso-bidi-language:AR-SA> <p align="center"> 
 <font size="2">Kurzinfo: HP Photosmart 145 - Vorführgerät - neutral verpackt - 
 volle HP Patrone Nr. 57 - Software/Handbuch auf erstellter CD - Stromkabel - Netzteil - USB-Kabel - HP Photosmart 735 - 
 Vorführgerät - neutral verpackt - 4 Akkus - USB-Kabel - Software-CD/Handbuch auf erstellter CD -
               Akkuladegerät 
                LLD506 
 - 100 Blatt HP 
 Fotopapier (10x15 
 - Sonderposten mit 12 Monaten Händlergewährleistung - +++</font></p> </span> </span> </font> <span style="font-size: 12pt" Times Roman?; New Roman?;mso-ansi-language:DE;mso-fareast-language: DE;mso-bidi-language:AR-SA> <!-- End Description --> <SCRIPT language=Javascript><!-- document.write('</style>'); document.write('</form>'); document.write('<'+'/script'+'>'); //--></SCRIPT> </span><!-- End Description --></div> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> <!-- End Description --> </div> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </span></div> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </body> </html>' WHERE int_eBay_VAiBID=564

Fehlermeldung:

Meldung 170, Ebene 15, Status 1, Zeile 205
Zeile 205: Falsche Syntax in der Nähe von '<'.

Der Fehler liegt in der letzten Zeile des HTML Code wegen den Hochkommas. Deshalb wird der update Befehl falsch interpretiert. Habe schon gegoogelt usw. Gibt es irgendwie eine Möglichkeit? danke im voraus

5.941 Beiträge seit 2005
vor 16 Jahren

Hallo ZeroQool

Verdopple die Hochkomas in deinem String.

Gruss Peter

--
Microsoft MVP - Visual Developer ASP / ASP.NET, Switzerland 2007 - 2011

Z
ZeroQool Themenstarter:in
322 Beiträge seit 2006
vor 16 Jahren

Hätte ich selber darauf kommen können! =) Big thx, funzt