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

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 September 5th, 2004, 08:46 PM
seanwest seanwest is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 25 seanwest User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
%20 in SQL db

mySQL1 = "Delete FROM bookmarks WHERE url = '" & url & "'"



im using the query above to delete bookmarks
but some of them in the db have %20 between spaces
and the one its checking against on the webpages does not.

how can i make the query string above ingore %20 in the database fields?

Reply With Quote
  #2  
Old September 5th, 2004, 09:55 PM
coinhunter's Avatar
coinhunter coinhunter is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2004
Location: Battle Creek, Michigan
Posts: 352 coinhunter User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 30 sec
Reputation Power: 5
Send a message via Yahoo to coinhunter
Are you trying to run this query inside of an ASP page?
It looks like you are trying to do that. You can try this:
Quote:
mySQL1 = "Delete FROM bookmarks WHERE url = '" & Replace(url,"%20","",1) & "'"
__________________
Freelance Programming Rates Available - For More Info Please Contact Me
Imagination Is More Important Than Knowledge -- Albert Einstein

Reply With Quote
  #3  
Old September 5th, 2004, 10:59 PM
seanwest seanwest is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 25 seanwest User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
come on messanger when you get a chance coinhunter

Quote:
Originally Posted by coinhunter
Are you trying to run this query inside of an ASP page?
It looks like you are trying to do that. You can try this:

Reply With Quote
  #4  
Old September 7th, 2004, 05:20 PM
Scorpions4ever Scorpions4ever is offline
Mad Rater
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 126 Scorpions4ever User rank is Corporal (100 - 500 Reputation Level)Scorpions4ever User rank is Corporal (100 - 500 Reputation Level)Scorpions4ever User rank is Corporal (100 - 500 Reputation Level)Scorpions4ever User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 11 h 31 m 44 sec
Reputation Power: 7
Code:
mySQL1 = "Delete FROM bookmarks WHERE REPLACE(url, '%%20', '') = '" & url & "'"
__________________
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft SQL Server > %20 in SQL db


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


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





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway