ptrax wrote:
> I am using ASP / VBscript model.
It's several years since I last used ASP, so I can't make any
direct
comparisons.
> the DW code doesn't allow for parameters which exists
> sometimes and others it does eg search pages (I know I
can use LIKE for text)
> but difficult to provide a wildcard for numbers but the
REAL problem is I
> shouldn't need to workaround this
I discussed this at length with Adobe engineers because many
people had
reported the same problem with PHP. The answer was
disarmingly simple.
The SQL specification says that LIKE is used to compare
*strings*, not
numbers. The way that Dreamweaver handles data types is to
enclose
strings in quotes, and leave numbers without quotes.
Therefore, if you
want to use a wildcard with a number, you *must* first
convert it to a
string. In other words, if you're using LIKE with numbers,
you must
select the text data type. It sounds counter-intuitive, but
Dreamweaver
is actually handling this aspect of SQL correctly.
> But thanks I'm hearing that there is no standard way of
code mods and I will
> have to make do for DW9??
We'll have to wait until it's released to find out if DW9
handles server
behaviors in a different way. The response that I have always
got when
inquiring about improvements to server behaviors is that the
intention
is to provide basic functionality. Anything beyond that needs
to be
either hand-coded or supplemented by third-party extensions.
Of course,
if sufficient numbers of people request a particular feature,
Adobe
would be foolish not to take any notice.
--
David Powers
Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
http://foundationphp.com/