I have a report and a condition that when there is no parameter the report should run for all the records, so when my report is running it is taking a long time and giving dataset report error. here is my code, can I write it in a more efficient way?
{
while select QuotationId, CustAccount, XYZProjId, XYZJobNumber, QuotationStatus , WorkerSalesResponsible, XYZAttention, Estimate, XYZProjName, XYZQuoteActive, XYZBuilder, XYZInvestor, XYZReason, ABCInternalDescription, XYZSpecifier, XYZAccessRestrictions from salesQuotationTableHeader
{
this.insertSalesQuotationHeader();
//where dfsmSalesQuotationCustomers.QuotationId == quotationInternalBuff
Join XYZProjId, XYZAttention, Estimate, XYZProjName, XYZQuoteActive , XYZBuilder, XYZInvestor, XYZReason, ABCInternalDescription, XYZSpecifier,XYZAccessRestrictions from salesQuotationTable
where xyzSalesQuotationCustomers.QuotationId == salesQuotationTable.QuotationId
{
this.insertSalesQuotationTmp();
}
}
}