xcao
asked on
crystal report and progress
We have a customized crystal report card for MAG report card for elementary schools. It runs OK in our last report season.
Today I tried it, it runs very slow. I tried one student by entering the student key paramenter, it runs about 8 minutes. If I run for grade 1, it keeps running then finally gives error message, failed to open a rowset, Querry engine error: 'HY000: [DataDirect-Technologies][ ODBC Progress driver][Progress]Server not reachable or possible RPC error'
We didn't make any changes for the report card, what could be the problem
How can we fix it?
Thanks
Today I tried it, it runs very slow. I tried one student by entering the student key paramenter, it runs about 8 minutes. If I run for grade 1, it keeps running then finally gives error message, failed to open a rowset, Querry engine error: 'HY000: [DataDirect-Technologies][
We didn't make any changes for the report card, what could be the problem
How can we fix it?
Thanks
ASKER
Thank you, I run for one student it runs OK, it takes 8 minutes, but I run for multiple students, or a grade level, for example grade 2, it takes 40 minutes or so, then gives the error message in above post.
Please help
Please help
It seems like you are having SERVER time out errors is my guess.
Are you SURE your SERVER is up and running ok...is your Netwrok Administrator able to check the NUMBER OF PROCESSES and the RESOURCES that are being used currently?
Seems that IF you can get SOME data on occassion...and then change to request more..NONE...then SERVER may be the problem.
Also...can you CUT/PASTE your SHOW SQL QUERY HERE???
mIKE
Are you SURE your SERVER is up and running ok...is your Netwrok Administrator able to check the NUMBER OF PROCESSES and the RESOURCES that are being used currently?
Seems that IF you can get SOME data on occassion...and then change to request more..NONE...then SERVER may be the problem.
Also...can you CUT/PASTE your SHOW SQL QUERY HERE???
mIKE
ASKER
Thank you very much, Mike, here is the show query:
SELECT "STUDENT1"."ALPHAKEY", "NAME_stu"."LAST-NAME", "NAME_stu"."FIRST-NAME", "STU_CLS_MAG"."MAG-HS-CODE -ID", "MAG_HS_MST"."MAG-HSM-LDES C", "STUDENT1"."STUDENT-ID", "STUDENT_CLASS"."CLAS-SECT ION", "STUDENT1"."GRAD-YR", "SCHOOL1"."SCHOOL-NAME", "NAME_principal"."FIRST-NA ME", "NAME_principal"."LAST-NAM E", "STU_ATND_TOT_HST"."SATH-T ARDY", "STU_ATND_TOT_HST"."SATH-E XCUSED", "STU_ATND_TOT_HST"."SATH-O THER", "STU_ATND_TOT_HST"."SATH-U NEXCUSED", "STU_ATND_TOT_HST"."SATH-D AYS-POSS", "MAG_HS_SKILL"."MAG-HSS-LD ESC", "STU_CLS_MAG"."MAG-TRM-MRK ", "STU_ATND_TOT_HST"."SATH-S CHOOL-YEAR ", "STUDENT_ENTITY"."ENTITY-I D", "STUDENT_ENTITY"."STUDENT- STATUS", "MAG_HS_MST"."MAG-HSM-SDES C", "NAME_teacher"."FIRST-NAME ", "NAME_teacher"."LAST-NAME" , "MAG_HS_DET"."MAG-HSD-ORDE R-NBR", "STUDENT_GRADE_COMMENT"."G RADING-PER IOD-ID", "STUDENT_GRADE_COMMENT"."F REE-FORM-C OMMENT", "NAME_teacher"."NALPHAKEY" , "ENTITY1"."SCHOOL-YEAR", "COURSE1"."COR-ALPHAKEY"
FROM "PUB"."HOMEROOM" "HOMEROOM1", "PUB"."STUDENT-ENTITY" "STUDENT_ENTITY", "PUB"."NAME" "NAME_teacher", "PUB"."STUDENT" "STUDENT1", "PUB"."ENTITY" "ENTITY1", "PUB"."STUDENT-CLASS" "STUDENT_CLASS", "PUB"."SCHOOL" "SCHOOL1", "PUB"."STU-ATND-TOT-HST" "STU_ATND_TOT_HST", "PUB"."NAME" "NAME_principal", "PUB"."NAME" "NAME_stu", "PUB"."CLASS" "CLASS1", "PUB"."CLAS-CONTROL-SET" "CLAS_CONTROL_SET", "PUB"."STU-CLS-MAG" "STU_CLS_MAG", "PUB"."STUDENT-GRADE-COMME NT" "STUDENT_GRADE_COMMENT", "PUB"."COURSE" "COURSE1", "PUB"."MAG-HS-MST" "MAG_HS_MST", "PUB"."MAG-HS-DET" "MAG_HS_DET", "PUB"."MAG-HS-SKILL" "MAG_HS_SKILL"
WHERE (("HOMEROOM1"."ENTITY-ID"= "STUDENT_E NTITY"."EN TITY-ID") AND ("HOMEROOM1"."HOMEROOM-NUM BER"="STUD ENT_ENTITY "."HOMEROO M-NUMBER") ) AND ("HOMEROOM1"."HOMEROOM-TEA CHER"="NAM E_teacher" ."NAME-ID" ) AND ("STUDENT_ENTITY"."STUDENT -ID"="STUD ENT1"."STU DENT-ID") AND ("STUDENT_ENTITY"."ENTITY- ID"="ENTIT Y1"."ENTIT Y-ID") AND ((("STUDENT_ENTITY"."ENTIT Y-ID"="STU DENT_CLASS "."ENTITY- ID") AND ("STUDENT_ENTITY"."STUDENT -ID"="STUD ENT_CLASS" ."STUDENT- ID")) AND ("ENTITY1"."SCHOOL-YEAR"=" STUDENT_CL ASS"."SCHO OL-YEAR")) AND ("STUDENT_ENTITY"."SCHOOL- ID"="SCHOO L1"."SCHOO L-ID") AND (("STUDENT_ENTITY"."STUDEN T-ID"="STU _ATND_TOT_ HST"."STUD ENT-ID") AND ("STUDENT_ENTITY"."ENTITY- ID"="STU_A TND_TOT_HS T"."ENTITY -ID")) AND ("SCHOOL1"."SCHOOL-PRINCIP AL"="NAME_ principal" ."NAME-ID" ) AND ("STUDENT1"."NAME-ID"="NAM E_stu"."NA ME-ID") AND (("STUDENT_CLASS"."COR-NUM -ID"="CLAS S1"."COR-N UM-ID") AND ("STUDENT_CLASS"."CLAS-SEC TION"="CLA SS1"."CLAS -SECTION") ) AND ((("STUDENT_CLASS"."SCHD-S TP-TRM"="C LAS_CONTRO L_SET"."CC S-DSP-STP- TRM") AND ("STUDENT_CLASS"."SCHD-STR -TRM"="CLA S_CONTROL_ SET"."CCS- DSP-STR-TR M")) AND ("CLASS1"."CONTROL-SET-ID" ="CLAS_CON TROL_SET". "CONTROL-S ET-ID")) AND (((("STUDENT_CLASS"."COR-N UM-ID"="ST U_CLS_MAG" ."COR-NUM- ID") AND ("STUDENT_CLASS"."ENTITY-I D"="STU_CL S_MAG"."EN TITY-ID")) AND ("STUDENT_CLASS"."STUDENT- ID"="STU_C LS_MAG"."S TUDENT-ID" )) AND ("STUDENT_CLASS"."SCHOOL-Y EAR"="STU_ CLS_MAG"." SCHOOL-YEA R")) AND ((("STUDENT_CLASS"."STUDEN T-ID"="STU DENT_GRADE _COMMENT". "STUDENT-I D" (+)) AND ("STUDENT_CLASS"."COR-NUM- ID"="STUDE NT_GRADE_C OMMENT"."C OR-NUM-ID" (+))) AND ("STUDENT_CLASS"."CLAS-SEC TION"="STU DENT_GRADE _COMMENT". "CLAS-SECT ION" (+))) AND (((("CLASS1"."COR-NUM-ID"= "COURSE1". "COR-NUM-I D") AND ("CLAS_CONTROL_SET"."ENTIT Y-ID"="COU RSE1"."ENT ITY-ID")) AND ("CLAS_CONTROL_SET"."SCHOO L-YEAR"="C OURSE1"."S CHOOL-YEAR ")) AND ("CLAS_CONTROL_SET"."COR-L ENGTH-SET- ID"="COURS E1"."COR-L ENGTH-SET- ID")) AND ((("STU_CLS_MAG"."ENTITY-I D"="MAG_HS _MST"."ENT ITY-ID") AND ("STU_CLS_MAG"."MAG-HS-COD E-ID"="MAG _HS_MST"." MAG-HS-COD E-ID")) AND ("STU_CLS_MAG"."SCHOOL-YEA R"="MAG_HS _MST"."SCH OOL-YEAR") ) AND (((("STU_CLS_MAG"."ENTITY- ID"="MAG_H S_DET"."EN TITY-ID") AND ("STU_CLS_MAG"."MAG-HS-SKI LL-ID"="MA G_HS_DET". "MAG-HS-SK ILL-ID")) AND ("STU_CLS_MAG"."SCHOOL-YEA R"="MAG_HS _DET"."SCH OOL-YEAR") ) AND ("STU_CLS_MAG"."MAG-HS-COD E-ID"="MAG _HS_DET"." MAG-HS-COD E-ID")) AND ((("MAG_HS_DET"."ENTITY-ID "="MAG_HS_ SKILL"."EN TITY-ID") AND ("MAG_HS_DET"."MAG-HS-SKIL L-ID"="MAG _HS_SKILL" ."MAG-HS-S KILL-ID")) AND ("MAG_HS_DET"."SCHOOL-YEAR "="MAG_HS_ SKILL"."SC HOOL-YEAR" )) AND "STU_ATND_TOT_HST"."SATH-S CHOOL-YEAR "=2006 AND "STUDENT_ENTITY"."ENTITY-I D"='601' AND "STUDENT_ENTITY"."STUDENT- STATUS"='A ' AND "STUDENT1"."GRAD-YR"=2014 AND "STUDENT1"."ALPHAKEY">'' AND "STUDENT_GRADE_COMMENT"."G RADING-PER IOD-ID"=4 AND "NAME_teacher"."NALPHAKEY" >''
ORDER BY "STUDENT1"."GRAD-YR" DESC, "NAME_teacher"."NALPHAKEY" , "STUDENT1"."ALPHAKEY", "COURSE1"."COR-ALPHAKEY", "STUDENT_CLASS"."CLAS-SECT ION", "STU_CLS_MAG"."MAG-HS-CODE -ID", "MAG_HS_DET"."MAG-HSD-ORDE R-NBR"
I will certainly also check with our network admin about the number of processes and resourses that are used currently?
But could you take if there is anything wrong with the query? Thanks
SELECT "STUDENT1"."ALPHAKEY", "NAME_stu"."LAST-NAME", "NAME_stu"."FIRST-NAME", "STU_CLS_MAG"."MAG-HS-CODE
FROM "PUB"."HOMEROOM" "HOMEROOM1", "PUB"."STUDENT-ENTITY" "STUDENT_ENTITY", "PUB"."NAME" "NAME_teacher", "PUB"."STUDENT" "STUDENT1", "PUB"."ENTITY" "ENTITY1", "PUB"."STUDENT-CLASS" "STUDENT_CLASS", "PUB"."SCHOOL" "SCHOOL1", "PUB"."STU-ATND-TOT-HST" "STU_ATND_TOT_HST", "PUB"."NAME" "NAME_principal", "PUB"."NAME" "NAME_stu", "PUB"."CLASS" "CLASS1", "PUB"."CLAS-CONTROL-SET" "CLAS_CONTROL_SET", "PUB"."STU-CLS-MAG" "STU_CLS_MAG", "PUB"."STUDENT-GRADE-COMME
WHERE (("HOMEROOM1"."ENTITY-ID"=
ORDER BY "STUDENT1"."GRAD-YR" DESC, "NAME_teacher"."NALPHAKEY"
I will certainly also check with our network admin about the number of processes and resourses that are used currently?
But could you take if there is anything wrong with the query? Thanks
Something here doesn't look right please check it out...ok? I've notated below...... with <<<<<====
SELECT "STUDENT1"."ALPHAKEY", "NAME_stu"."LAST-NAME", "NAME_stu"."FIRST-NAME", "STU_CLS_MAG"."MAG-HS-CODE -ID", "MAG_HS_MST"."MAG-HSM-LDES C", "STUDENT1"."STUDENT-ID", "STUDENT_CLASS"."CLAS-SECT ION", "STUDENT1"."GRAD-YR", "SCHOOL1"."SCHOOL-NAME", "NAME_principal"."FIRST-NA ME", "NAME_principal"."LAST-NAM E", "STU_ATND_TOT_HST"."SATH-T ARDY", "STU_ATND_TOT_HST"."SATH-E XCUSED", "STU_ATND_TOT_HST"."SATH-O THER", "STU_ATND_TOT_HST"."SATH-U NEXCUSED", "STU_ATND_TOT_HST"."SATH-D AYS-POSS", "MAG_HS_SKILL"."MAG-HSS-LD ESC", "STU_CLS_MAG"."MAG-TRM-MRK ", "STU_ATND_TOT_HST"."SATH-S CHOOL-YEAR ", "STUDENT_ENTITY"."ENTITY-I D", "STUDENT_ENTITY"."STUDENT- STATUS", "MAG_HS_MST"."MAG-HSM-SDES C", "NAME_teacher"."FIRST-NAME ", "NAME_teacher"."LAST-NAME" , "MAG_HS_DET"."MAG-HSD-ORDE R-NBR", "STUDENT_GRADE_COMMENT"."G RADING-PER IOD-ID", "STUDENT_GRADE_COMMENT"."F REE-FORM-C OMMENT", "NAME_teacher"."NALPHAKEY" , "ENTITY1"."SCHOOL-YEAR", "COURSE1"."COR-ALPHAKEY"
FROM "PUB"."HOMEROOM" "HOMEROOM1", "PUB"."STUDENT-ENTITY" "STUDENT_ENTITY", "PUB"."NAME" "NAME_teacher", "PUB"."STUDENT" "STUDENT1", "PUB"."ENTITY" "ENTITY1", "PUB"."STUDENT-CLASS" "STUDENT_CLASS", "PUB"."SCHOOL" "SCHOOL1", "PUB"."STU-ATND-TOT-HST" "STU_ATND_TOT_HST", "PUB"."NAME" "NAME_principal", "PUB"."NAME" "NAME_stu", "PUB"."CLASS" "CLASS1", "PUB"."CLAS-CONTROL-SET" "CLAS_CONTROL_SET", "PUB"."STU-CLS-MAG" "STU_CLS_MAG", "PUB"."STUDENT-GRADE-COMME NT" "STUDENT_GRADE_COMMENT", "PUB"."COURSE" "COURSE1", "PUB"."MAG-HS-MST" "MAG_HS_MST", "PUB"."MAG-HS-DET" "MAG_HS_DET", "PUB"."MAG-HS-SKILL" "MAG_HS_SKILL"
WHERE (("HOMEROOM1"."ENTITY-ID"= "STUDENT_E NTITY"."EN TITY-ID") AND ("HOMEROOM1"."HOMEROOM-NUM BER"="STUD ENT_ENTITY "."HOMEROO M-NUMBER") ) AND ("HOMEROOM1"."HOMEROOM-TEA CHER"="NAM E_teacher" ."NAME-ID" ) AND ("STUDENT_ENTITY"."STUDENT -ID"="STUD ENT1"."STU DENT-ID") AND ("STUDENT_ENTITY"."ENTITY- ID"="ENTIT Y1"."ENTIT Y-ID") AND ((("STUDENT_ENTITY"."ENTIT Y-ID"="STU DENT_CLASS "."ENTITY- ID") AND ("STUDENT_ENTITY"."STUDENT -ID"="STUD ENT_CLASS" ."STUDENT- ID")) AND ("ENTITY1"."SCHOOL-YEAR"=" STUDENT_CL ASS"."SCHO OL-YEAR")) AND ("STUDENT_ENTITY"."SCHOOL- ID"="SCHOO L1"."SCHOO L-ID") AND (("STUDENT_ENTITY"."STUDEN T-ID"="STU _ATND_TOT_ HST"."STUD ENT-ID") AND ("STUDENT_ENTITY"."ENTITY- ID"="STU_A TND_TOT_HS T"."ENTITY -ID")) AND ("SCHOOL1"."SCHOOL-PRINCIP AL"="NAME_ principal" ."NAME-ID" ) AND ("STUDENT1"."NAME-ID"="NAM E_stu"."NA ME-ID") AND (("STUDENT_CLASS"."COR-NUM -ID"="CLAS S1"."COR-N UM-ID") AND ("STUDENT_CLASS"."CLAS-SEC TION"="CLA SS1"."CLAS -SECTION") ) AND ((("STUDENT_CLASS"."SCHD-S TP-TRM"="C LAS_CONTRO L_SET"."CC S-DSP-STP- TRM") AND ("STUDENT_CLASS"."SCHD-STR -TRM"="CLA S_CONTROL_ SET"."CCS- DSP-STR-TR M")) AND ("CLASS1"."CONTROL-SET-ID" ="CLAS_CON TROL_SET". "CONTROL-S ET-ID")) AND (((("STUDENT_CLASS"."COR-N UM-ID"="ST U_CLS_MAG" ."COR-NUM- ID") AND ("STUDENT_CLASS"."ENTITY-I D"="STU_CL S_MAG"."EN TITY-ID")) AND ("STUDENT_CLASS"."STUDENT- ID"="STU_C LS_MAG"."S TUDENT-ID" )) AND ("STUDENT_CLASS"."SCHOOL-Y EAR"="STU_ CLS_MAG"." SCHOOL-YEA R")) AND ((("STUDENT_CLASS"."STUDEN T-ID"="STU DENT_GRADE _COMMENT". "STUDENT-I D" (+)) AND ("STUDENT_CLASS"."COR-NUM- ID"="STUDE NT_GRADE_C OMMENT"."C OR-NUM-ID" (+))) AND ("STUDENT_CLASS"."CLAS-SEC TION"="STU DENT_GRADE _COMMENT". "CLAS-SECT ION" (+))) AND (((("CLASS1"."COR-NUM-ID"= "COURSE1". "COR-NUM-I D") AND ("CLAS_CONTROL_SET"."ENTIT Y-ID"="COU RSE1"."ENT ITY-ID")) AND ("CLAS_CONTROL_SET"."SCHOO L-YEAR"="C OURSE1"."S CHOOL-YEAR ")) AND ("CLAS_CONTROL_SET"."COR-L ENGTH-SET- ID"="COURS E1"."COR-L ENGTH-SET- ID")) AND ((("STU_CLS_MAG"."ENTITY-I D"="MAG_HS _MST"."ENT ITY-ID") AND ("STU_CLS_MAG"."MAG-HS-COD E-ID"="MAG _HS_MST"." MAG-HS-COD E-ID")) AND ("STU_CLS_MAG"."SCHOOL-YEA R"="MAG_HS _MST"."SCH OOL-YEAR") ) AND (((("STU_CLS_MAG"."ENTITY- ID"="MAG_H S_DET"."EN TITY-ID") AND ("STU_CLS_MAG"."MAG-HS-SKI LL-ID"="MA G_HS_DET". "MAG-HS-SK ILL-ID")) AND ("STU_CLS_MAG"."SCHOOL-YEA R"="MAG_HS _DET"."SCH OOL-YEAR") ) AND ("STU_CLS_MAG"."MAG-HS-COD E-ID"="MAG _HS_DET"." MAG-HS-COD E-ID")) AND ((("MAG_HS_DET"."ENTITY-ID "="MAG_HS_ SKILL"."EN TITY-ID") AND ("MAG_HS_DET"."MAG-HS-SKIL L-ID"="MAG _HS_SKILL" ."MAG-HS-S KILL-ID")) AND ("MAG_HS_DET"."SCHOOL-YEAR "="MAG_HS_ SKILL"."SC HOOL-YEAR" )) AND "STU_ATND_TOT_HST"."SATH-S CHOOL-YEAR "=2006 AND "STUDENT_ENTITY"."ENTITY-I D"='601' AND "STUDENT_ENTITY"."STUDENT- STATUS"='A ' AND "STUDENT1"."GRAD-YR"=2014 AND "STUDENT1"."ALPHAKEY">''
AND "STUDENT_GRADE_COMMENT"."G RADING-PER IOD-ID"=4 AND "NAME_teacher"."NALPHAKEY" >'' <------------error is here This ">'' is wrong..???
ORDER BY "STUDENT1"."GRAD-YR" DESC, "NAME_teacher"."NALPHAKEY" , "STUDENT1"."ALPHAKEY", "COURSE1"."COR-ALPHAKEY", "STUDENT_CLASS"."CLAS-SECT ION", "STU_CLS_MAG"."MAG-HS-CODE -ID", "MAG_HS_DET"."MAG-HSD-ORDE R-NBR"
SELECT "STUDENT1"."ALPHAKEY", "NAME_stu"."LAST-NAME", "NAME_stu"."FIRST-NAME", "STU_CLS_MAG"."MAG-HS-CODE
FROM "PUB"."HOMEROOM" "HOMEROOM1", "PUB"."STUDENT-ENTITY" "STUDENT_ENTITY", "PUB"."NAME" "NAME_teacher", "PUB"."STUDENT" "STUDENT1", "PUB"."ENTITY" "ENTITY1", "PUB"."STUDENT-CLASS" "STUDENT_CLASS", "PUB"."SCHOOL" "SCHOOL1", "PUB"."STU-ATND-TOT-HST" "STU_ATND_TOT_HST", "PUB"."NAME" "NAME_principal", "PUB"."NAME" "NAME_stu", "PUB"."CLASS" "CLASS1", "PUB"."CLAS-CONTROL-SET" "CLAS_CONTROL_SET", "PUB"."STU-CLS-MAG" "STU_CLS_MAG", "PUB"."STUDENT-GRADE-COMME
WHERE (("HOMEROOM1"."ENTITY-ID"=
AND "STUDENT_GRADE_COMMENT"."G
ORDER BY "STUDENT1"."GRAD-YR" DESC, "NAME_teacher"."NALPHAKEY"
That is all that I could see that MAY be a problem but not sure???
Oops nevermind...I think that is ok...
So should the STUDENT ALPHA KEY be GREATER THAN a single quoteation " or double single apostraphes? ''
So should the STUDENT ALPHA KEY be GREATER THAN a single quoteation " or double single apostraphes? ''
ASKER
Thanks, but think '' single quotation would be OK
ASKER
I also checked with our network admin, only 49% resoures are used. And cannot find anything wrong.
Seems like something within your network changed. The error you posted is one that you would receive when some kind of MISCOMMUNICATION happened between REPORT and the SERVER.
What version of Crystal are you using?
What version of Crystal are you using?
ASKER
Thanks, any more suggestions?
we are using Crystal report 10.0
we are using Crystal report 10.0
One other thing is that I didn't see any JOINS for you data tables?
Is that normal for the type of DB's that you are using? We use SQL Svr 2000 and joins are pretty much standard procedure here.
ie. LEFT OUTER, INNER...etc..
Is that normal for the type of DB's that you are using? We use SQL Svr 2000 and joins are pretty much standard procedure here.
ie. LEFT OUTER, INNER...etc..
ASKER
Thanks, we do have joins, I can see from database expert-Links tab, all the tables are linked, some have left join link too
ASKER
Here is shown in my record selection formula
{STU_ATND_TOT_HST.SATH-SCH OOL-YEAR} = 2006 and
(if {?Entity Selection} = "ALL" then {STUDENT_ENTITY.ENTITY-ID} > ""
else {STUDENT_ENTITY.ENTITY-ID} = {?Entity Selection}) and
(if {?Student Status Selection} = "BOTH" then {STUDENT_ENTITY.STUDENT-ST ATUS} > ""
else {STUDENT_ENTITY.STUDENT-ST ATUS} = {?Student Status Selection}) and
(if {?Student Grade Selection} = 9999.00 then {STUDENT.GRAD-YR} >0.00
else {STUDENT.GRAD-YR} = {?Student Grade Selection}) and
(if {?Student } = "ALL" then {STUDENT.ALPHAKEY} > ""
else {STUDENT.ALPHAKEY} = {?Student }) and
{STUDENT_GRADE_COMMENT.GRA DING-PERIO D-ID} = {?Grading Period Selection} and
(if {?Homeroom Teacher} = "ALL" then {NAME_teacher.NALPHAKEY} > ""
else {NAME_teacher.NALPHAKEY} = {?Homeroom Teacher})
The odd thing is if I enter the parameter for one student, it works OK, but if I select for example grade 3, all students, it will give the error. Thanks
{STU_ATND_TOT_HST.SATH-SCH
(if {?Entity Selection} = "ALL" then {STUDENT_ENTITY.ENTITY-ID}
else {STUDENT_ENTITY.ENTITY-ID}
(if {?Student Status Selection} = "BOTH" then {STUDENT_ENTITY.STUDENT-ST
else {STUDENT_ENTITY.STUDENT-ST
(if {?Student Grade Selection} = 9999.00 then {STUDENT.GRAD-YR} >0.00
else {STUDENT.GRAD-YR} = {?Student Grade Selection}) and
(if {?Student } = "ALL" then {STUDENT.ALPHAKEY} > ""
else {STUDENT.ALPHAKEY} = {?Student }) and
{STUDENT_GRADE_COMMENT.GRA
(if {?Homeroom Teacher} = "ALL" then {NAME_teacher.NALPHAKEY} > ""
else {NAME_teacher.NALPHAKEY} = {?Homeroom Teacher})
The odd thing is if I enter the parameter for one student, it works OK, but if I select for example grade 3, all students, it will give the error. Thanks
This is just a thought, but as you may know JOINS are VERY important to the speed and also the optimization of the report.
Depending on the TYPE of JOIN, "some" joins may not "fire" or be involved with the report UNLESS a DATA ELEMENT (or column) from that particular table is chosen. This "might" be what is happening. I would do a very detailed check of your joins, especially in relation to columns that may be called up when you enter such criteria as "grade 3" instead of just A SINGLE STUDENT.
My thinking is that "maybe" when you are pulling a much larger population that there are different JOINS that are being "fired" or used and perhaps those joins have not been correctly done? (ie...left outer instead of inner...etc...etc..)
Just shootin from the hip here.
Hope it helps.
MikeV
Depending on the TYPE of JOIN, "some" joins may not "fire" or be involved with the report UNLESS a DATA ELEMENT (or column) from that particular table is chosen. This "might" be what is happening. I would do a very detailed check of your joins, especially in relation to columns that may be called up when you enter such criteria as "grade 3" instead of just A SINGLE STUDENT.
My thinking is that "maybe" when you are pulling a much larger population that there are different JOINS that are being "fired" or used and perhaps those joins have not been correctly done? (ie...left outer instead of inner...etc...etc..)
Just shootin from the hip here.
Hope it helps.
MikeV
Also, I'm just looking over your SELECTION EXPERT logic.... is there a reason for the MANY ...."if this....then > ""???"
Is this how you are dealing with NULLS? I'm NOT quite understanding the >"" part of this logic.
Thanks
MikeV
Is this how you are dealing with NULLS? I'm NOT quite understanding the >"" part of this logic.
Thanks
MikeV
Try this
(if {?Entity Selection} = "ALL" then TRUE
else {STUDENT_ENTITY.ENTITY-ID} = {?Entity Selection}) and
(if {?Student Status Selection} = "BOTH" then TRUE
else {STUDENT_ENTITY.STUDENT-ST ATUS} = {?Student Status Selection}) and
(if {?Student Grade Selection} = 9999.00 then TRUE
else {STUDENT.GRAD-YR} = {?Student Grade Selection}) and
(if {?Student } = "ALL" then TRUE
else {STUDENT.ALPHAKEY} = {?Student }) and
{STUDENT_GRADE_COMMENT.GRA DING-PERIO D-ID} = {?Grading Period Selection} and
(if {?Homeroom Teacher} = "ALL" then TRUE
else {NAME_teacher.NALPHAKEY} = {?Homeroom Teacher})
How sre the parameters passed? If it is from an applicatiion you will probably find it is better to create the FILTER in the application and pass it rather than the parameters and use the select expert.
mlmcc
(if {?Entity Selection} = "ALL" then TRUE
else {STUDENT_ENTITY.ENTITY-ID}
(if {?Student Status Selection} = "BOTH" then TRUE
else {STUDENT_ENTITY.STUDENT-ST
(if {?Student Grade Selection} = 9999.00 then TRUE
else {STUDENT.GRAD-YR} = {?Student Grade Selection}) and
(if {?Student } = "ALL" then TRUE
else {STUDENT.ALPHAKEY} = {?Student }) and
{STUDENT_GRADE_COMMENT.GRA
(if {?Homeroom Teacher} = "ALL" then TRUE
else {NAME_teacher.NALPHAKEY} = {?Homeroom Teacher})
How sre the parameters passed? If it is from an applicatiion you will probably find it is better to create the FILTER in the application and pass it rather than the parameters and use the select expert.
mlmcc
ASKER
Thank you very much for both of you.
The report is for secretary of each school to run for teachers. So secretary needs to enter schoolID, school semester, grade level, some times even for some homeroom teacher, so the parameter needs to be created by using select expert.
One thing I need mention is the report runs OK before June. I notice now if I open the report in crystal report, it will ask: the database file "student_entity" has changed, proceed to fix up the report, then several other tables come out, and after clicking OK, the database is up to date.
But if I run for one student, it is generated after 8 minutes, if I run for a grade level, it gives error in above postings.
Do I need to relink the tables, we have about 20 tables, will relink fix the problem?
Thanks
The report is for secretary of each school to run for teachers. So secretary needs to enter schoolID, school semester, grade level, some times even for some homeroom teacher, so the parameter needs to be created by using select expert.
One thing I need mention is the report runs OK before June. I notice now if I open the report in crystal report, it will ask: the database file "student_entity" has changed, proceed to fix up the report, then several other tables come out, and after clicking OK, the database is up to date.
But if I run for one student, it is generated after 8 minutes, if I run for a grade level, it gives error in above postings.
Do I need to relink the tables, we have about 20 tables, will relink fix the problem?
Thanks
Regarding "....the database file "student_entity" has changed, proceed to fix up the report"
That is what I originally thought. A column in the Data table has changed. And may effect the way the report processes. Your database administrator may know what changed within that data table. When you get that type of notification from Crystal it is basically telling you that "something" has changed within the makeup of that datatable...and is asking if you are "OK" with that.
I think that this may be the reason for the change in the speed of your report, however I cannot tell you WHAT changed. Maybe a column was added...or a COLUMN DATA TYPE was changed...but at any rate your DBA should be able to tell you this.
MikeV
ASKER
thank you. I think too that may cause the problem. But procees to fix up the report, and made the database update to date should fix it.
We don't have database admin here, and the database is not designed by us, it's Skyward- A K-12 Student system software.
It's a huge database, and the table relationships and initial design of the report is by Skyward report staff.
And I also contact them early, they didn't mention I need to do anything,
I'll also try the "True" thing in mlmcc posting.
Thanks
We don't have database admin here, and the database is not designed by us, it's Skyward- A K-12 Student system software.
It's a huge database, and the table relationships and initial design of the report is by Skyward report staff.
And I also contact them early, they didn't mention I need to do anything,
I'll also try the "True" thing in mlmcc posting.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you very much, MikeV, I think you are right.
I know we have a software update in June, and thought the fix database up to date may solve the problem, but it seems not.
The only thing I can try now is to wait for our network admin to restart the server this weekend, he said that's the first thing we can try, if not, I'll contact skyward tech support, which is fee-based, to see if their updated release fix affects the report or not?
I also try the "true" in the select statement, it still gives the same error.
Thank you for all your help
I know we have a software update in June, and thought the fix database up to date may solve the problem, but it seems not.
The only thing I can try now is to wait for our network admin to restart the server this weekend, he said that's the first thing we can try, if not, I'll contact skyward tech support, which is fee-based, to see if their updated release fix affects the report or not?
I also try the "true" in the select statement, it still gives the same error.
Thank you for all your help
Glad I could be of service.
MikeV
MikeV
Can you retreive ANY data from any table on that SERVER?
Mike V