| Author |
Topic |
|
shezad
Starting Member
32 Posts |
Posted - 2011-02-01 : 06:30:50
|
| I have two form one is master and one is detail whenever I opened the master form it has menu whichallowed to open child form and once child formis opend it fired the trigger and updated statuson master form tablenow what happening whenever I m trying to save onchild form table it is getting hang problem is that master form is keeping openthe table and same time child form table triggertrying to update that one and system is gettinghand so now I put no lock on master form table querynow updation from child form is working on mastertable but if dont open child form and do somethingwrite and save on master table form it is giving me errorcurosrs update not allowed on table which is openwith nolock optionplease advice |
|
|
MIK_2008
Master Smack Fu Yak Hacker
1054 Posts |
Posted - 2011-02-01 : 06:44:52
|
| Post the SQL code which is running behind these two forms. Otherwise this would be a guess game for us ... |
 |
|
|
shezad
Starting Member
32 Posts |
Posted - 2011-02-01 : 07:14:24
|
| SELECT WORKORDERID,WORKORDERGRPID,WORKORDERPID,WORKORDERNUMBER,WO_YEAR,WO_MONTH,WORKORDEROPENDATE, WORKORDERCLSDATE,SECTIONID,ITEMCATEGORY,BBRAMSID,NSN,NOMENCLATURE,PARTSRN,SERIALNO,EQUIPSETCODE,UTC,ORG, SHOP,PALLETNO,LOCATIONCODE,TMDEUSED,TONO,MASNO,INSP_FREQ,SRD,SYMBOL,ITEMPROCESSTYPEID,ITEMPROCESSUID,PROCESSDESC1 CORRECTIVEACTION,CORRECTIVEREMARKS,STATUS,TASKNO,CHARGECODE,CORRECTBYPERSON,INSPECTEDBYPERSONfrom tbl_workorder where workordernumber = 'THU200615520' and ITEMPROCESSTYPEID is not null and ITEMPROCESSUID is not null |
 |
|
|
shezad
Starting Member
32 Posts |
Posted - 2011-02-01 : 07:15:22
|
| now child form work if i put no lockSELECT WORKORDERID,WORKORDERGRPID,WORKORDERPID,WORKORDERNUMBER,WO_YEAR,WO_MONTH,WORKORDEROPENDATE, WORKORDERCLSDATE,SECTIONID,ITEMCATEGORY,BBRAMSID,NSN,NOMENCLATURE,PARTSRN,SERIALNO,EQUIPSETCODE,UTC,ORG, SHOP,PALLETNO,LOCATIONCODE,TMDEUSED,TONO,MASNO,INSP_FREQ,SRD,SYMBOL,ITEMPROCESSTYPEID,ITEMPROCESSUID,PROCESSDESC1 CORRECTIVEACTION,CORRECTIVEREMARKS,STATUS,TASKNO,CHARGECODE,CORRECTBYPERSON,INSPECTEDBYPERSONfrom tbl_workorder with (nolock) where workordernumber = 'THU200615520' and ITEMPROCESSTYPEID is not null and ITEMPROCESSUID is not null |
 |
|
|
shezad
Starting Member
32 Posts |
Posted - 2011-02-01 : 07:58:28
|
| any help |
 |
|
|
|
|
|