E_FAIL when outer-joining 
Author Message
 E_FAIL when outer-joining

"The data provider or other service returned an E_FAIL status"
is the message I get when I designed the following query in a VB6 data
environment
and tried to run it within the designer:

SELECT Test.TestID, Test.Naam, TestAdres.Adres
FROM Test LEFT OUTER JOIN
    TestAdres ON Test.AdresID = TestAdres.TestAdresID

When I make it an inner join : no problem.
But the problem is not the outer join. The problem arises only when
there exists records
where the Test.AdresID is null.
For example I want all clients, also the clients without an address,
the reason why I use
outer joins.

I wonder why there are problems with that.
My underlying table is in an SQL Server 6.5 database.

Dirk Dhaenens

--== Sent via Deja.com http://www.*-*-*.com/
---Share what you know. Learn what you don't.---



Tue, 30 Oct 2001 03:00:00 GMT  
 E_FAIL when outer-joining
Dirk,
I believe that SQL 6.5 supports outer joins using the following syntax.

SELECT Test.TestID, Test.Naam, TestAdres.Adres
FROM Test, TestAdres Where Test.AdresID += TestAdres.TestAdresID

The + and which side of the = it's on is the key. I would check the SQL docs
for details. You might want to try this syntax to see if the LEFT OUTER JOIN
syntax is causing the problem. Hope this helps.

Oscar Bowyer

Quote:

>"The data provider or other service returned an E_FAIL status"
>is the message I get when I designed the following query in a VB6 data
>environment
>and tried to run it within the designer:

>SELECT Test.TestID, Test.Naam, TestAdres.Adres
>FROM Test LEFT OUTER JOIN
>    TestAdres ON Test.AdresID = TestAdres.TestAdresID

>When I make it an inner join : no problem.
>But the problem is not the outer join. The problem arises only when
>there exists records
>where the Test.AdresID is null.
>For example I want all clients, also the clients without an address,
>the reason why I use
>outer joins.

>I wonder why there are problems with that.
>My underlying table is in an SQL Server 6.5 database.

>Dirk Dhaenens

>--== Sent via Deja.com http://www.deja.com/ ==--
>---Share what you know. Learn what you don't.---



Tue, 30 Oct 2001 03:00:00 GMT  
 E_FAIL when outer-joining
No, the same problem.
Thanks anyway.
By the way: the syntax is * instead of +



Quote:
> Dirk,
> I believe that SQL 6.5 supports outer joins using the following
syntax.

> SELECT Test.TestID, Test.Naam, TestAdres.Adres
> FROM Test, TestAdres Where Test.AdresID += TestAdres.TestAdresID

> The + and which side of the = it's on is the key. I would check the
SQL docs
> for details. You might want to try this syntax to see if the LEFT
OUTER JOIN
> syntax is causing the problem. Hope this helps.

> Oscar Bowyer


> >"The data provider or other service returned an E_FAIL status"
> >is the message I get when I designed the following query in a VB6
data
> >environment
> >and tried to run it within the designer:

> >SELECT Test.TestID, Test.Naam, TestAdres.Adres
> >FROM Test LEFT OUTER JOIN
> >    TestAdres ON Test.AdresID = TestAdres.TestAdresID

> >When I make it an inner join : no problem.
> >But the problem is not the outer join. The problem arises only when
> >there exists records
> >where the Test.AdresID is null.
> >For example I want all clients, also the clients without an address,
> >the reason why I use
> >outer joins.

> >I wonder why there are problems with that.
> >My underlying table is in an SQL Server 6.5 database.

> >Dirk Dhaenens

> >--== Sent via Deja.com http://www.deja.com/ ==--
> >---Share what you know. Learn what you don't.---

--== Sent via Deja.com http://www.deja.com/ ==--
---Share what you know. Learn what you don't.---


Fri, 02 Nov 2001 03:00:00 GMT  
 E_FAIL when outer-joining

Hi folks,

i'm looking for the msscript.ocx.
Please help me.

Marcus Drexelius



Mon, 05 Nov 2001 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. E_FAIL when outer joining

2. E_FAIL when outer-joining

3. E_FAIL when outer-joining

4. outer join with ACCESS

5. Access 2000 -Full Outer Join

6. Outer Joins

7. How DAO works with outer join query with Parameter

8. No outer joins with Jet 4 drivers?

9. sql poser: OUTER JOINS?

10. SQL Builder - Outer Joins.

11. Ambiguous Outer Joins....

12. Access OUTER JOIN syntax

 

 
Powered by phpBB® Forum Software