Rank: Newbie
Groups: Registered
Joined: 8/27/2020(UTC) Posts: 7
|
I am unable to create a join whatever the tables. I still get an error. I am using an odbc data source to a 4D database. Please help me ! ERROR 08004 Server rejected the connection : Failed to execute statement
however I manage to see the contents of the two tables without problem. I use version 5.5.0.0 of Seal Report
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 12/20/2013(UTC) Posts: 1,209 Thanks: 14 times Was thanked: 206 time(s) in 199 post(s)
|
Sorry, no experience with 4D database... Check the SQL generated and adjust your join.
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 8/27/2020(UTC) Posts: 7
|
sql command is as follows, I don't see anything abnormal in the command : SELECT * FROM Absences INNER JOIN Absences_Seances ON Absences.No_Fiche = Absences_Seances.No_Fiche WHERE 0=1
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 12/20/2013(UTC) Posts: 1,209 Thanks: 14 times Was thanked: 206 time(s) in 199 post(s)
|
Yes it seems correct, can you just cut/past the query in a Query Tool for a 4D database ?
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 8/27/2020(UTC) Posts: 7
|
apparently it's the "WHERE 0 = 1" clause that is causing the problem
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 12/20/2013(UTC) Posts: 1,209 Thanks: 14 times Was thanked: 206 time(s) in 199 post(s)
|
it should be specific to 4D database...
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 8/27/2020(UTC) Posts: 7
|
can you make sure not to put automatically clause "where 0=1" in join sql command
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 12/20/2013(UTC) Posts: 1,209 Thanks: 14 times Was thanked: 206 time(s) in 199 post(s)
|
could be a feature request to add this as an option for the connection... the 1=0 is used for checking tables, columns and getting the metadata. for restrictions we used 1=1. is there something else that works in 4D (like 'a' = 'b') ?
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 8/27/2020(UTC) Posts: 7
|
yes, thank you for adding this option in the next version of seal report so that I can use your software with my 4D databases
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 12/20/2013(UTC) Posts: 1,209 Thanks: 14 times Was thanked: 206 time(s) in 199 post(s)
|
yes but can you tell me what should work with 4D database ?
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 8/27/2020(UTC) Posts: 7
|
in the clause below, il faut retirer la ligne "WHERE 0=1"
SELECT * FROM Absences INNER JOIN Absences_Seances ON Absences.No_Fiche = Absences_Seances.No_Fiche WHERE 0=1
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.