Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SqlServer outer join error 1

Status
Not open for further replies.

naga5566

Technical User
Mar 14, 2003
90
US
Hi All,
I am having problem using outer join in BO(SQlserver database).
I have 3 table say A,B and C and the joins between them are

A left outer join B
and B inner join C

This is throwing error in BO when i run the query.
table b is a member of outer join and cannot participate in
regular join.

This is not a free hand sql report,it is deisgned at the universe evel.Is there any setting(Outerjoin_generation) that need to be made in the .prm file of the sqlserver ? However this kind of join works perfect in Oracle.

Thanks
Naga





 
Hi Steve
i am working on 517 ver of BO.Do i need to enter ANSI=Yes in prm file or modify it ? I mean i could nt find any parameter "ANSI" in the prm file.
Thanks for your help.
 
For 5.1.x, find the appropriate PRM file. Make sure you have lines like:

OUTERJOINS_GENERATION=FULL_ODBC
OUTERJOINS_COMPLEX=Y

Your outerjoins will do what you want.

Steve Krandel
VERITAS Software
 
Steve,
It is generating the Sql properly to an extent.The only thing i dont understand is it is also generating "*" along with the outer join syntax and the result is the query returns below error.
"
[Microsoft][ODBC SQL Server Driver][SQL Server]Outer join operators cannot be specified in a query containing joined tables.1016 "

Below is the SQl it is generating(Line 7 in the below Sql
is the *)

SELECT
A.ColX,
B.ColY,
C.ColZ
FROM
{ oj A LEFT OUTER JOIN B ON (
A.col1 *=B.col1 )
INNER JOIN C ON ( B.Col2=C.Col2 )
}


Thanks Once again
Naga
 
Steve,
I got it.
I removed the lines
LEFT_OUTER=$*
RIGHT_OUTER=*$ and it is working perfect.
thanks for all the help
Naga
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top