SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseSQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old October 31st, 2000, 01:23 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
Updating with formatted SQL

<i><b>Originally posted by : Simon (simonhewitt2000@hotmail.com)</b></i><br /><br />I run a small site with news posts that my members can add to, I am trying to implement an update feature, I have created a form which I populate with the news record required.<br /><br />But the text field that holds the news article needs to be able to contain any characters, how can I do this when I pull it from a <text area>?<br /><br />at the moment my SQL looks like this below (with the error I am getting) can you help?<br /><br />UPDATE newsfile SET newsid = '13', newstitle = 'Hello', newsbody = 'Lo everyone, Morg here. Soon as I find a chance to bug Mute a bit more, that piccy of the week should be changing (got a funny one of a pyro, lol). Btw, in case anyone is wondering, we don't have any more BWTFCL matches (bar the one this thursday) until early november - the reason for this is that alot of clans have dropped out of Div3, and just coincidentally, many of those dropouts were the clans we were schedueled to play in the near future. So hopefully Twinner will get us a couple of friendlies - there is one on the 26th for sure against Freakred's clan.', umail = 'pk1@iol.ie', uname = 'Morgoth', date = '31/10/2000 ',time = '5:13:56 PM' WHERE newstitle='Hello' <br />Microsoft OLE DB Provider for ODBC Drivers error '80040e14' <br /><br />[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression ''Lo everyone, Morg here. Soon as I find a chance to bug Mute a bit more, that piccy of the week should be changing (got a funny one of a pyro, lol). Btw, in case anyone is wondering, we don't have any more BWTFCL matches (bar the one this thursday) until '. <br /><br />/updates/update2.asp, line 33 <br />

Reply With Quote
  #2  
Old November 9th, 2000, 08:24 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
<i><b>Originally posted by : Despondent</b></i><br /><br />Simon,<br /><br />I just posted a similar question on the ASP board today under "despondent"....yes that's how I feel too. The funny thing is that the error does not occur for all records. The interesting thing is that after retrieving the record (that may cause the error) you can sometimes modify the text and the update will take place without any errors. Anyway, just thought I would mention my post in case no one responds to this one.<br /><br />Good luck!<br /><br />------------<br />Simon at 10/31/2000 11:23:42 AM<br /><br /><br />I run a small site with news posts that my members can add to, I am trying to implement an update feature, I have created a form which I populate with the news record required.<br /><br />But the text field that holds the news article needs to be able to contain any characters, how can I do this when I pull it from a <text area>?<br /><br />at the moment my SQL looks like this below (with the error I am getting) can you help?<br /><br />UPDATE newsfile SET newsid = '13', newstitle = 'Hello', newsbody = 'Lo everyone, Morg here. Soon as I find a chance to bug Mute a bit more, that piccy of the week should be changing (got a funny one of a pyro, lol). Btw, in case anyone is wondering, we don't have any more BWTFCL matches (bar the one this thursday) until early november - the reason for this is that alot of clans have dropped out of Div3, and just coincidentally, many of those dropouts were the clans we were schedueled to play in the near future. So hopefully Twinner will get us a couple of friendlies - there is one on the 26th for sure against Freakred's clan.', umail = 'pk1@iol.ie', uname = 'Morgoth', date = '31/10/2000 ',time = '5:13:56 PM' WHERE newstitle='Hello' <br />Microsoft OLE DB Provider for ODBC Drivers error '80040e14' <br /><br />[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression ''Lo everyone, Morg here. Soon as I find a chance to bug Mute a bit more, that piccy of the week should be changing (got a funny one of a pyro, lol). Btw, in case anyone is wondering, we don't have any more BWTFCL matches (bar the one this thursday) until '. <br /><br />/updates/update2.asp, line 33 <br />

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseSQL Development > Updating with formatted SQL


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump





 Free IT White Papers!
 
Create the Optimal Architecture for your Critical Applications
Warburton's the largest independently owned bakery in the UK faced a number of difficult challenges in providing the most robust yet efficient IT infrastructure for their organization's success. IBM's services combined with their xSeries servers created the perfect platform for their SAP environment with sufficient flexibility, and did so in very time effective fashion.

 
Five Best Practices for Deploying a Successful Service-Oriented Architecture
This white paper describes the benefits you can expect with SOA, and how IBM can help take your business there.

 
Gartner Magic Quadrant for Application Delivery Controllers
Gartner summarizes its view on Application Delivery Controllers, evaluates strengths and weaknesses of solutions, and provides Magic Quadrant reporting for a quick comparison across all vendors. Learn from Gartner how you can benefit from an all-in-one device like Citrix NetScaler that delivers the highest levels of availability, performance and security.

 
Knowledge is Power
What you don't know can hurt you, and is likely costing you money and increasing your security risks during an era of scarce resources. This white paper proposes six key strategies that enterprise security managers can use to improve their network defense posture.

 
Rationalizing the Multi-Tool Environment
The rationalized multi-tool approach is flexible, scalable and cost effective. It provides the necessary input to the IT service management business processes. It preserves prior investments in monitoring tools, empowers technologists to select the best tools with which to do their jobs, and enhances effective response to incidents.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2010 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek