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 is not working as should and is only problematic with WebDNA sending it over. Scott can you confirm, deny, or comment on this below. Thanks Alex Windows EXE version 6.0 Have an ODBC setup for this to MSSQL which up until now has worked wonderfully (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 that is number (integer) related. For example: [SQL dsn=SOMEDSN&username=SOMEUSERNAME&password=SOMEPASS &statement=SELECT * from tickets where description 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 string to 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 your search string (if they are numbers) sends back 0 results. If you search on 1 number I am getting results for records that do not even have the number in use. :_( Of course running these simple searches through query analyzer works like a charm, as does asp pages on the same server so I am 100% certain this is a result of WebDNA communicating with MSSQL. Like I said, the interaction between the 2 has been flawless and VERY productive -- until this. Has ANYONE seen erratic results when dealing with LIKE searches and if so does anyone have any advice. I am about ready to go postal. This started as a 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 fixing erratic results on a single variable search. Help! Alex -- Alex J McCombie Adventure Skies Interactive (ASI) Owner Box 124 888/892.6379 MartVille, NY 13111 Alex@Adventureskies.com Interface 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:

    
  1. Re: SQL Madness ( Alex McCombie 2005)
  2. Re: SQL Madness ( "Scott Anderson" 2005)
  3. Re: SQL Madness ( Alex McCombie 2005)
  4. Re: SQL Madness ( Jesse Proudman 2005)
  5. Re: SQL Madness ( "Scott Anderson" 2005)
  6. SQL Madness ( Alex McCombie 2005)
  7. SQL Madness ( Alex McCombie 2005)
Trying again. It appears through our best testing that the LIKE command is not working as should and is only problematic with WebDNA sending it over. Scott can you confirm, deny, or comment on this below. Thanks Alex Windows EXE version 6.0 Have an ODBC setup for this to MSSQL which up until now has worked wonderfully (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 that is number (integer) related. For example: [SQL dsn=SOMEDSN&username=SOMEUSERNAME&password=SOMEPASS &statement=SELECT * from tickets where description 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 string to 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 your search string (if they are numbers) sends back 0 results. If you search on 1 number I am getting results for records that do not even have the number in use. :_( Of course running these simple searches through query analyzer works like a charm, as does asp pages on the same server so I am 100% certain this is a result of WebDNA communicating with MSSQL. Like I said, the interaction between the 2 has been flawless and VERY productive -- until this. Has ANYONE seen erratic results when dealing with LIKE searches and if so does anyone have any advice. I am about ready to go postal. This started as a 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 fixing erratic results on a single variable search. Help! Alex -- Alex J McCombie Adventure Skies Interactive (ASI) Owner Box 124 888/892.6379 MartVille, NY 13111 Alex@Adventureskies.com Interface 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:

WebCat2b15MacPlugIn - [authenticate] not [protect] (1997) Summing fields (1997) Cookie set browser session. (1998) RE: Loss in form (1998) Trigger Admin acting up (2001) Database Updates (1997) emailer (1997) Re:Emailer and encryption (1997) WC2b12: Yes, Formulas.db is for real (1997) WCS Newbie question (1997) WebCat/CyberStudio Compatibility (1998) [addfields] bombing 5.0 (2003) requiring form fields? (2000) Calculating a total (2000) instant cookies? (1999) URL too Long? (1997) [WebDNA] HTML [sendmail] revisited (2009) WebCatalog stalls (1998) Need relative path explanation (1997) NT version (1997)