SQL Madness
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 62667
interpreted = N
texte = Trying again. It appears through our best testing that the LIKE command isnot working as should and is only problematic with WebDNA sending it over.Scott can you confirm, deny, or comment on this below.ThanksAlexWindows EXE version 6.0Have an ODBC setup for this to MSSQL which up until now has workedwonderfully (well at least I thought so).Here is the dilemma. While trying to do a 'LIKE' search on any field(varchar or integer) the results are erratic when searching on anything thatis number (integer) related.For example:[SQL dsn=SOMEDSN&username=SOMEUSERNAME&password=SOMEPASS&statement=SELECT * from tickets wheredescription LIKE '%[descriptionvar]%' ORDER BY priority][founditems][title]
[/founditems][/sql]Works great until you search on something like 54.So a record that has the phrase:"We ordered item number 5437. This item should be delivered promptly"In the description field (which is a varchar field)Searching 54 Returns the proper result. However, change that search stringto 543 and nothing. 5437, nothing.This is a simplistic example but I have tested this now on varchar fields,integer, and text fields. It appears that anything over 1 or 2 chars in yoursearch string (if they are numbers) sends back 0 results. If you search on 1number I am getting results for records that do not even have the number inuse. :_(Of course running these simple searches through query analyzer works like acharm, as does asp pages on the same server so I am 100% certain this is aresult of WebDNA communicating with MSSQL. Like I said, the interactionbetween the 2 has been flawless and VERY productive -- until this.Has ANYONE seen erratic results when dealing with LIKE searches and if sodoes anyone have any advice. I am about ready to go postal. This started asa fairly complicated search and after many hours of trying to 'fix it'reducing it to the most simple of searches showed that there is no fixingerratic results on a single variable search.Help!Alex-- Alex J McCombie Adventure Skies Interactive (ASI)Owner Box 124888/892.6379 MartVille, NY 13111Alex@Adventureskies.comInterface Designer WebDNA Programmer Database Designer-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Trying again. It appears through our best testing that the LIKE command isnot working as should and is only problematic with WebDNA sending it over.Scott can you confirm, deny, or comment on this below.ThanksAlexWindows EXE version 6.0Have an ODBC setup for this to MSSQL which up until now has workedwonderfully (well at least I thought so).Here is the dilemma. While trying to do a 'LIKE' search on any field(varchar or integer) the results are erratic when searching on anything thatis number (integer) related.For example:[SQL dsn=SOMEDSN&username=SOMEUSERNAME&password=SOMEPASS&statement=SELECT * from tickets wheredescription LIKE '%[descriptionvar]%' ORDER BY priority][founditems][title]
[/founditems][/sql]Works great until you search on something like 54.So a record that has the phrase:"We ordered item number 5437. This item should be delivered promptly"In the description field (which is a varchar field)Searching 54 Returns the proper result. However, change that search stringto 543 and nothing. 5437, nothing.This is a simplistic example but I have tested this now on varchar fields,integer, and text fields. It appears that anything over 1 or 2 chars in yoursearch string (if they are numbers) sends back 0 results. If you search on 1number I am getting results for records that do not even have the number inuse. :_(Of course running these simple searches through query analyzer works like acharm, as does asp pages on the same server so I am 100% certain this is aresult of WebDNA communicating with MSSQL. Like I said, the interactionbetween the 2 has been flawless and VERY productive -- until this.Has ANYONE seen erratic results when dealing with LIKE searches and if sodoes anyone have any advice. I am about ready to go postal. This started asa fairly complicated search and after many hours of trying to 'fix it'reducing it to the most simple of searches showed that there is no fixingerratic results on a single variable search.Help!Alex-- Alex J McCombie Adventure Skies Interactive (ASI)Owner Box 124888/892.6379 MartVille, NY 13111Alex@Adventureskies.comInterface Designer WebDNA Programmer Database Designer-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Alex McCombie
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
search for all (1998)
[include] (1998)
proper username/password *w/out* the authenticate dialog. (2000)
[WebDNA] grep again (2010)
WC1.6 to WC2 date formatting (1997)
Setting up WebCatalog with Retail Pro data (1996)
carriage returns in data (1997)
changing boxes (2008)
Submitting ampersands in forms... (1998)
Separate SSL Server (1997)
Filemaker & WebCat (2001)
Paths, relative paths, webstar server setup and security (Mac) (1997)
Further on formula.db failure to calculate shipCost (1997)
Emailer error 550? (1999)
Autoreturn Submit? (1997)
Mail Server Needed. (1998)
RE: 2nd WebCatalog2 Feature Request (1996)
counting characters and/or words (1997)
What am I missing (1997)
writefile - continued (1997)