Click here to Skip to main content
16,005,339 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: How to Improve the performance of a database application Pin
Dave Kreskowiak15-Dec-08 20:04
mveDave Kreskowiak15-Dec-08 20:04 
GeneralRe: How to Improve the performance of a database application Pin
Uma Kameswari15-Dec-08 20:54
Uma Kameswari15-Dec-08 20:54 
GeneralRe: How to Improve the performance of a database application Pin
Wendelius16-Dec-08 7:09
mentorWendelius16-Dec-08 7:09 
GeneralRe: How to Improve the performance of a database application Pin
Uma Kameswari16-Dec-08 20:57
Uma Kameswari16-Dec-08 20:57 
GeneralRe: How to Improve the performance of a database application Pin
Uma Kameswari21-Dec-08 23:13
Uma Kameswari21-Dec-08 23:13 
GeneralRe: How to Improve the performance of a database application Pin
Wendelius22-Dec-08 9:36
mentorWendelius22-Dec-08 9:36 
GeneralRe: How to Improve the performance of a database application [modified] Pin
Uma Kameswari22-Dec-08 18:38
Uma Kameswari22-Dec-08 18:38 
GeneralRe: How to Improve the performance of a database application Pin
Uma Kameswari23-Dec-08 0:04
Uma Kameswari23-Dec-08 0:04 
I modified the loop from the application as follows but I have a problem here I cannot give insert/update command in case.Is there any way to solve this. If there exists an alternative solution then it will help a lot. The queries are working correctly I tested them. The following is the code
select  
case (select count(*) from test a 
      where a.trxsorce = case rtrim(b.orgntsrc) 
                         when '' then   
                              b.ortrxsrc        
                         else b.orgntsrc 
                         end                 
and a.act=b.actindx and a.sopno = b.orctrnum) 
when 0 then 
insert into test  
      (gltrxdate,jrnentry,source,glact,glactindex,uswhpstd,ortrxsrc,
       orgctrnum,gldr,glcr,gldexrowid,status)
       select trxdate,jrnentry,trxsorce,account,actindx,uswhpstd,orgntsrc,
           orctrnum,debitamt,crdtamnt,dex_row_id,2 
       from gl20000 where dex_row_id=b.dex_row_id

when 1 then 
update test set 
     gltrxdate = b.trxdate,jrnentry = b.jrnentry,
     source = b.trxsorce,glact = b.account,
     glactindex = b.actindx,uswhpstd = b.uswhpstd,
     ortrxsrc = b.orgntsrc,orgctrnum = b.orctrnum,
     gldr = b.debitamt,
     glcr = b.crdtamnt,gldexrowid = b.dex_row_id,status =7
where sopno = b.orctrnum and actindx = b.actindx and 
     trxsorce = b.trxsorce

else 
insert into test 
   (gltrxdate,jrnentry,source,glact,glactindex,uswhpstd,ortrxsrc,
    orgctrnum,gldr,glcr,gldexrowid,status)
    select trxdate,jrnentry,trxsorce,account,actindx,uswhpstd,orgntsrc,
    orctrnum,debitamt,crdtamnt,dex_row_id,7 
    from gl20000 where dex_row_id=b.dex_row_id

end 
from gl20000 b where 
trxdate between convert(datetime,'01/04/2007',103) and 
convert(datetime,'30/04/2007',103) and actindx in 
(select actindx from gl00100 where actnumbr_6=1300) and 
series <> 2 and correspondingunit <> 1

GeneralRe: How to Improve the performance of a database application Pin
Wendelius23-Dec-08 3:23
mentorWendelius23-Dec-08 3:23 
GeneralRe: How to Improve the performance of a database application Pin
Uma Kameswari23-Dec-08 18:05
Uma Kameswari23-Dec-08 18:05 
GeneralRe: How to Improve the performance of a database application Pin
Wendelius28-Dec-08 10:35
mentorWendelius28-Dec-08 10:35 
QuestionVisual studio addin Pin
Fadi Yoosuf14-Dec-08 16:11
Fadi Yoosuf14-Dec-08 16:11 
AnswerRe: Visual studio addin Pin
Lev Danielyan15-Dec-08 19:55
Lev Danielyan15-Dec-08 19:55 
QuestionArrayList Problem Pin
bapu288912-Dec-08 8:31
bapu288912-Dec-08 8:31 
QuestionNot able to retain DataGridViewComboBox Cell's selected item value Pin
Member 62119111-Dec-08 18:38
Member 62119111-Dec-08 18:38 
QuestionSimple custom control repaint problem Pin
TheRedEye10-Dec-08 22:05
TheRedEye10-Dec-08 22:05 
AnswerRe: Simple custom control repaint problem Pin
Dave Kreskowiak11-Dec-08 2:04
mveDave Kreskowiak11-Dec-08 2:04 
GeneralRe: Simple custom control repaint problem Pin
TheRedEye11-Dec-08 4:05
TheRedEye11-Dec-08 4:05 
GeneralRe: Simple custom control repaint problem Pin
Dave Kreskowiak11-Dec-08 4:42
mveDave Kreskowiak11-Dec-08 4:42 
Questionhow to change language dependent datetime picker dynamically in .net window forms Pin
arunmca.r10-Dec-08 21:43
arunmca.r10-Dec-08 21:43 
AnswerRe: how to change language dependent datetime picker dynamically in .net window forms Pin
Mycroft Holmes11-Dec-08 20:37
professionalMycroft Holmes11-Dec-08 20:37 
GeneralRe: how to change language dependent datetime picker dynamically in .net window forms Pin
arunmca.r14-Dec-08 17:31
arunmca.r14-Dec-08 17:31 
Questionarraylist problem Pin
bapu288910-Dec-08 9:12
bapu288910-Dec-08 9:12 
AnswerRe: arraylist problem Pin
Ben Fair10-Dec-08 10:05
Ben Fair10-Dec-08 10:05 
QuestionRe: arraylist problem Pin
bapu288910-Dec-08 19:57
bapu288910-Dec-08 19:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.