A
Anna Smith
I have an extremely long and complex select statement as
shown below and I need to split it onto two lines but not
quite sure how to do it because I've never needed to
before. I need to split it onto two lines because I keep
getting this error :
Compiler limit exceeded: Line cannot exceed 2046 characters
Could someone please show me how this can be done.
("Select IPC.URN, SuspectName.Surname,
SuspectName.Forenames, SuspectName.DateOfBirthS75,
Suspect.Occupation, Ref_Gender.Description,
SuspectAddress.Name, SuspectAddress.Townland,
SuspectAddress.Town, SuspectAddress.County,
SuspectAddress.Postcode, SuspectAddress.DCU,
Suspect.InCareFlag, Suspect.SolicitorFirmURN,
Suspect.PartyURN, MilitaryPersonnel.ServiceUnit,
MilitaryPersonnel.MilitaryRank,
MilitaryPersonnel.ServiceNumber,
MilitaryPersonnel.UnitAddress, Suspect.ChargeDate,
Suspect.InterimForm1Flag,
Suspect.InterimChargedSummonsedDate,
Suspect.InterimDateOfFirstCourt, Suspect.InterimStatus,
Ref_InterimStatus.Description,
SuspectPrincipalEvidence.Type,
SuspectPrincipalEvidence.OtherDescription,
Ref_PrincipalEvidenceType.Description,
SuspectMotivation.Type, Ref_MotivationType.Description,
Suspect.EvidenceAssessment,Ref_SuspectAssessmentOfEvidence.
Description,
Suspect.OutstandingEvidenceOnSubmissionToProsecutionFlag,
Suspect.OtherDescription, Suspect.DrivingNumberOfYears
FROM ((((Suspect left outer JOIN MilitaryPersonnel ON
Suspect.URN = MilitaryPersonnel.SuspectURN) left outer
JOIN SuspectAddress ON Suspect.URN =
SuspectAddress.SuspectURN) left outer JOIN
SuspectMotivation ON Suspect.URN =
SuspectMotivation.SuspectURN) left outer JOIN
SuspectPrincipalEvidence ON Suspect.URN =
SuspectPrincipalEvidence.SuspectURN)left outer JOIN
SuspectName ON Suspect.URN = SuspectName.SuspectURN left
outer JOIN Party on Suspect.PartyURN = Party.URN left
outer JOIN Individual on Party.URN = Individual.PartyURN
left outer JOIN IPC on Suspect.IPCURN = IPC.URN left outer
JOIN Ref_Gender on Individual.Gender = Ref_Gender.code
left outer JOIN Ref_InterimStatus on Suspect.InterimStatus
= Ref_InterimStatus.Description left outer JOIN
Ref_PrincipalEvidenceType on SuspectPrincipalEvidence.Type
= Ref_PrincipalEvidenceType.Code left outer JOIN
Ref_MotivationType on SuspectMotivation.Type =
Ref_MotivationType.Code left outer JOIN
Ref_SuspectAssessmentOfEvidence on
Suspect.EvidenceAssessment =
Ref_SuspectAssessmentOfEvidence.Code where IPC.URN = 101
and Suspect.URN = 40", conSQL);
shown below and I need to split it onto two lines but not
quite sure how to do it because I've never needed to
before. I need to split it onto two lines because I keep
getting this error :
Compiler limit exceeded: Line cannot exceed 2046 characters
Could someone please show me how this can be done.
("Select IPC.URN, SuspectName.Surname,
SuspectName.Forenames, SuspectName.DateOfBirthS75,
Suspect.Occupation, Ref_Gender.Description,
SuspectAddress.Name, SuspectAddress.Townland,
SuspectAddress.Town, SuspectAddress.County,
SuspectAddress.Postcode, SuspectAddress.DCU,
Suspect.InCareFlag, Suspect.SolicitorFirmURN,
Suspect.PartyURN, MilitaryPersonnel.ServiceUnit,
MilitaryPersonnel.MilitaryRank,
MilitaryPersonnel.ServiceNumber,
MilitaryPersonnel.UnitAddress, Suspect.ChargeDate,
Suspect.InterimForm1Flag,
Suspect.InterimChargedSummonsedDate,
Suspect.InterimDateOfFirstCourt, Suspect.InterimStatus,
Ref_InterimStatus.Description,
SuspectPrincipalEvidence.Type,
SuspectPrincipalEvidence.OtherDescription,
Ref_PrincipalEvidenceType.Description,
SuspectMotivation.Type, Ref_MotivationType.Description,
Suspect.EvidenceAssessment,Ref_SuspectAssessmentOfEvidence.
Description,
Suspect.OutstandingEvidenceOnSubmissionToProsecutionFlag,
Suspect.OtherDescription, Suspect.DrivingNumberOfYears
FROM ((((Suspect left outer JOIN MilitaryPersonnel ON
Suspect.URN = MilitaryPersonnel.SuspectURN) left outer
JOIN SuspectAddress ON Suspect.URN =
SuspectAddress.SuspectURN) left outer JOIN
SuspectMotivation ON Suspect.URN =
SuspectMotivation.SuspectURN) left outer JOIN
SuspectPrincipalEvidence ON Suspect.URN =
SuspectPrincipalEvidence.SuspectURN)left outer JOIN
SuspectName ON Suspect.URN = SuspectName.SuspectURN left
outer JOIN Party on Suspect.PartyURN = Party.URN left
outer JOIN Individual on Party.URN = Individual.PartyURN
left outer JOIN IPC on Suspect.IPCURN = IPC.URN left outer
JOIN Ref_Gender on Individual.Gender = Ref_Gender.code
left outer JOIN Ref_InterimStatus on Suspect.InterimStatus
= Ref_InterimStatus.Description left outer JOIN
Ref_PrincipalEvidenceType on SuspectPrincipalEvidence.Type
= Ref_PrincipalEvidenceType.Code left outer JOIN
Ref_MotivationType on SuspectMotivation.Type =
Ref_MotivationType.Code left outer JOIN
Ref_SuspectAssessmentOfEvidence on
Suspect.EvidenceAssessment =
Ref_SuspectAssessmentOfEvidence.Code where IPC.URN = 101
and Suspect.URN = 40", conSQL);