ltty head

Well-known member
  • May 28, 2009
    3,683
    647
    113
    if you can post here the code section and db connection which produce you the previously shown output (including crystal report). i may give a try even though i dont know C#.
     

    kosandpol

    Well-known member
  • Jun 10, 2008
    45,329
    1,492
    113
    something seriously wrong in your database design to have data stored like this.
    Anyway, use a temporary table at the client end to store data and build the report from that or use a mssql stored procedure to return only the needed dataset to the report.
     

    pga

    Well-known member
  • Oct 4, 2006
    3,965
    914
    113
    something seriously wrong in your database design to have data stored like this.
    Anyway, use a temporary table at the client end to store data and build the report from that or use a mssql stored procedure to return only the needed dataset to the report.

    :yes::yes::yes:
    godak data tibboth join slow wenawa. wena widihakata implement karanna balapan.

    e.g: use a single table with all the columns from the 3 tables + one column to identify whether it belongs to bill, rotation or return item.
     

    ltty head

    Well-known member
  • May 28, 2009
    3,683
    647
    113
    something seriously wrong in your database design to have data stored like this.
    Anyway, use a temporary table at the client end to store data and build the report from that or use a mssql stored procedure to return only the needed dataset to the report.

    hmm.. :yes:
     

    DJvodka

    Well-known member
  • Mar 31, 2009
    3,375
    292
    83
    A land like no other
    wede hari nam tamai ath aka hari nehe machanla moko aka mara slow....repot aka load wenna 8sec witara yanawa I3 lap akaka tawa issaharata 1hr witara yawi report aka load wenna so aka hariyane nehe :(

    machan DB eka normalize karapan. Speed karanna ona nam JOIN tables adu karanna ona. Query optimization kiyala wenama subject ekakma thiyenawa..podi research ekak danna.
     

    kosandpol

    Well-known member
  • Jun 10, 2008
    45,329
    1,492
    113
    You mean VIEWS like in MySQL? But isn't the performance degrade since the data generation is dynamic?
    FYI: I have no experience in SQL Server.
    its not a performance degrade as the server returns the required data without the client having to process it at the client end.
     

    agnipra

    Active member
  • May 25, 2008
    720
    59
    28
    Colombo
    wede hari nam tamai ath aka hari nehe machanla moko aka mara slow....repot aka load wenna 8sec witara yanawa I3 lap akaka tawa issaharata 1hr witara yawi report aka load wenna so aka hariyane nehe :(

    Machan..mama oke data normalize karana eka gana kuwe natte eka danatama uba project eka hadala nisai..attatama DB tables perfectly normalize vela na..eka tamai oya vidihata data duplication ekak dakinna puluvan...eka eka entities vala header details kiyala table devide karanna balapan..


    attatama uba oka HND project ekak kuwa nisa mama echchara eka gana pannuvve na..mokada live yanne nati nisa..et live yanavanam oke design eka antimai...

    anyway..oya report ekata data enne only per bill no as user selected...then u can have an inquiry for than use report....if you use such as inquiry for represent data...u can use LINQ inside the code for separate data for 3 different grids by using single query..
    Bt the Db problem is exist as same coze its query cost is high ..

    as per you wish ..u can do it!!!
     

    agnipra

    Active member
  • May 25, 2008
    720
    59
    28
    Colombo
    machanla ubala hemotama thnaks a lot ..... mama den mokakda karanna ona ??? mage me wede karanna puluwan lesi widihak kiyanna program aka slow nowi :(

    oka report ekakma venna oneda machan!!

    bill no eka dammahama anit details grid 3ka pennuvot madida....mata hitenne ee vage ekak tama vade goda daganna puluvan..eth ube project eke tiyenavanam oka report ekak venna one kiyala..poddak hitanna venava:yes::yes::yes: