Ask a Question related to ASP Database, Design and Development.
-
hb #1
Spaces being truncated in query / MID function gone?
SELECT COUNT(DISTINCT PRES_CYCL_ID)
is being changed to
SELECT COUNT(DISTINCTPRES_CYCL_ID)
If I response.Write the query, I see the space and the query is OK. But
somewhere along the way to the DB, the space is removed between DISTINCT and
PRES_CYCL_ID. What could cause this behavior? Would it also be the same
reason the MID() function stopped working, too?
hb Guest
-
Query a field with spaces in it
I'm currently trying to run an update on a field in an Access database. <CFSET LINENUM=LINENUM+1> <CFQUERY NAme="UpdateRecords" ... -
#26192 [Fbk->NoF]: The mail function out putting extra spaces between each line
ID: 26192 Updated by: sniper@php.net Reported By: bpaulson at chieftain dot com -Status: Feedback +Status: ... -
#26192 [NEW]: The mail function out putting extra spaces between each line
From: bpaulson at chieftain dot com Operating system: Linux Redhat 7.3 PHP version: 4.3.4 PHP Bug Type: Mail related Bug... -
function to strip spaces?
On 05 Aug 2003, "Jason Wolfe" <jason@infuselabs.com> wrote: Director doesn't have a built in method for this. Here's one way: on trim aString... -
#24777 [NEW]: $_GET values truncated at %3C in query string
From: csnyder at chxo dot com Operating system: Linux / FreeBSD PHP version: 4.3.2 PHP Bug Type: Strings related Bug... -
Bob Barrows [MVP] #2
Re: Spaces being truncated in query / MID function gone?
hb wrote:
That is strange. You should view the source of the page to verify that the> SELECT COUNT(DISTINCT PRES_CYCL_ID)
> is being changed to
> SELECT COUNT(DISTINCTPRES_CYCL_ID)
>
> If I response.Write the query, I see the space and the query is OK.
> But somewhere along the way to the DB, the space is removed between
> DISTINCT and PRES_CYCL_ID. What could cause this behavior?
sql statement actually has a space there rather than
It would help to see the code that generates this string.
Huh? When did the Mid() function stop working?? What are you talking about?> Would it
> also be the same reason the MID() function stopped working, too?
Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Bob Barrows [MVP] Guest
-
hb #3
Re: Spaces being truncated in query / MID function gone?
> hb wrote:
Figured this part out... Needed up update some patches on the oracle client.>> > SELECT COUNT(DISTINCT PRES_CYCL_ID)
> > is being changed to
> > SELECT COUNT(DISTINCTPRES_CYCL_ID)
> >
> > If I response.Write the query, I see the space and the query is OK.
> > But somewhere along the way to the DB, the space is removed between
> > DISTINCT and PRES_CYCL_ID. What could cause this behavior?
> That is strange. You should view the source of the page to verify that the
> sql statement actually has a space there rather than
about?>> > Would it
> > also be the same reason the MID() function stopped working, too?
> Huh? When did the Mid() function stop working?? What are you talking
Good question. The Mid() function in ASP VbScript no longer works. It's an
unrecognized function.
hb Guest
-
Bob Barrows [MVP] #4
Re: Spaces being truncated in query / MID function gone?
hb wrote:
Show me how to reproduce the error. You may be attempting to use the Mid()> Good question. The Mid() function in ASP VbScript no longer works.
> It's an unrecognized function.
statement, which has never been supported in vbscript:
s = "abd"
Mid(s,3,1) = "c"
' if this is VB/VBA, s now contains "abc"
as opposed to the Mid() function:
s = Mid("abc",3,1)
's now contains "c"
Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Bob Barrows [MVP] Guest
-
hb #5
Re: Spaces being truncated in query / MID function gone?
"Bob Barrows [MVP]" <reb01501@NOyahoo.SPAMcom> wrote in message
news:euuBkSDNEHA.1312@TK2MSFTNGP12.phx.gbl...Mid()> hb wrote:>> > Good question. The Mid() function in ASP VbScript no longer works.
> > It's an unrecognized function.
> Show me how to reproduce the error. You may be attempting to use theHere's the code:> statement, which has never been supported in vbscript:
>
> s = "abd"
> Mid(s,3,1) = "c"
> ' if this is VB/VBA, s now contains "abc"
>
> as opposed to the Mid() function:
>
> s = Mid("abc",3,1)
> 's now contains "c"
>
> Bob Barrows
LOC = INSTR(szStructCFG," ") 'note the double space
if MID(szStructCfg,LOC,1) = " " THEN
szStructCFG = LEFT(paramStructCFG,LOC-1)
end if
This code used to work till we rebuilt the web server (Win2k Server). Here
is the error:
Microsoft VBScript runtime error '800a0005'
Invalid procedure call or argument: 'MID'
hb Guest
-
Ray at #6
Re: Spaces being truncated in query / MID function gone?
Take a look at the value of LOC and I think you'll see your problem.
LOC = INSTR(szStructCFG," ") 'note the double space
RESPONSE.WRITE "THE VALUE OF LOC IS " & LOC
if MID(szStructCfg,LOC,1) = " " THEN
szStructCFG = LEFT(paramStructCFG,LOC-1)
end if
Ray at work
"hb" <hbranyan.SPAMBLOCK@merc.mercer.edu> wrote in message
news:2g1p6tF3luf7U1@uni-berlin.de...
> Here's the code:
>
> LOC = INSTR(szStructCFG," ") 'note the double space
> if MID(szStructCfg,LOC,1) = " " THEN
> szStructCFG = LEFT(paramStructCFG,LOC-1)
> end if
>
> This code used to work till we rebuilt the web server (Win2k Server). Here
> is the error:
> Microsoft VBScript runtime error '800a0005'
> Invalid procedure call or argument: 'MID'
>
>
>
Ray at Guest
-
hb #7
Re: Spaces being truncated in query / MID function gone?
"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
message news:uZgupDFNEHA.796@TK2MSFTNGP12.phx.gbl...I think you are right. thanks> Take a look at the value of LOC and I think you'll see your problem.
>
> LOC = INSTR(szStructCFG," ") 'note the double space
> RESPONSE.WRITE "THE VALUE OF LOC IS " & LOC
> if MID(szStructCfg,LOC,1) = " " THEN
> szStructCFG = LEFT(paramStructCFG,LOC-1)
> end if
>
> Ray at work
hb Guest



Reply With Quote

