SQL Against MS Access
From: C_Silin (OverwhelmedButStillTrying_at_hotmail.com)
Date: 02/06/04
- Next message: Todd: "Re: ODBC vs Ole Db"
- Previous message: William \(Bill\) Vaughn: "Re: Database Decision"
- Next in thread: Mary Chipman: "Re: SQL Against MS Access"
- Reply: Mary Chipman: "Re: SQL Against MS Access"
- Reply: Paul Clement: "Re: SQL Against MS Access"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 06 Feb 2004 11:20:53 -0800
Hello, I have a problem with getting the proper results back when I
supply a "Guid" value in the where clause. If I run this query without
the specifying the Guid value, I get back 3 rows, all of them with the
same value in the "Guid" field. This is the same field that I am
attepting to place selection criteria on.
So now if I now change the query to specify that Guid number (returned
from the query mentioned above), I get back no rows. I am completely
baffled why this is.
Here is my query...
"SELECT count(*)
FROM SkatingClubs sc, Skater s, SkatingLevels sl, Bracket b, Events e,
CompetativeEvents ce, CompetitionDescription cd , EventFinals ef
where sl.SkatingLevelNbr = S.SkatingLevelNbr
and sc.ClubID = s.ClubID
and s.USFSA_ID = ef.USFSA_ID
and ef.EventID = e.EventID
and b.Bracket = e.Bracket
and ce.CompetitionLocationID = e.CompetitionLocationID
and cd.CompetitionDescriptionID = e.CompetitionDescriptionID"
the above works just fine, now if I add the following:
and ce.CompetitionLocationID = '7E0FEA53-4BC1-47E6-96CD-8DD0747FCEE2'
And that Guid is the guid which is in the records returned by the first
version of the query. I can run this same query against a SQL database
with the exact same data in the tables and it runs just fine.
So what can it be?
Thanks in advance for your assistance!!!!!!!!!!!!!!!!!!!!!
- Next message: Todd: "Re: ODBC vs Ole Db"
- Previous message: William \(Bill\) Vaughn: "Re: Database Decision"
- Next in thread: Mary Chipman: "Re: SQL Against MS Access"
- Reply: Mary Chipman: "Re: SQL Against MS Access"
- Reply: Paul Clement: "Re: SQL Against MS Access"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|