Article View: free.it.visual-basic
Article #2266Re: ADO.NET - Bloccare la lettura di una tabella
From: Netslacker
Date: Fri, 27 Jun 2003 06:53
Date: Fri, 27 Jun 2003 06:53
26 lines
2768 bytes
2768 bytes
"Raffaele Rialdi" <malta@n0spam_vevy.com> ha scritto nel messaggio news:O3S3FLCPDHA.1748@TK2MSFTNGP11.phx.gbl... > > Ho provato con l'Insert e funziona, anche se per le mie esigenze � un po' > > complicato. > > Effettivamente per� (come ho fatto io) prende un record alla volta > Come hai gi� sperimentato, anche per l'insert vale la stessa procedura. > Prova a giocare con query un po' pi� complesse, non te ne pentirai. Vogliamo > farli lavorare questi db o no? ;-) > Effettivamente questo metodo � molto potente. Ho riscontrato un problema quando deve ricavare un valore (compreso lo zero) da una somma di record tramite una query incrociata ad Es: se ho la tabella dei Clienti e quella delle Fatture, e voglio sapere l'importo totale delle fatture per ogni cliente (anche di chi non ha fatture che quindi risulter� a zero), ai clienti che non hanno fatture non risulta zero ma null, se uso il valore ottenuto (null) per altre operazioni salta tutto. c'� un modo per convertire null in 0 io ho fatto cos� ma � un po' scomodo: IF @Totale is null SELECT @Totale=0 ciao e grazie ancora
Technical Details
Message-ID:
<URRKa.126035$lK4.3519833@twister1.libero.it>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!skynet.be!skynet.be!newsfeeder.edisontel.com!nntp.infostrada.it!twister1.libero.it.POSTED!not-for-mailReferences:
<8W%Ia.108224$Ny5.3122798@twister2.libero.it> <#hbR2bQODHA.2172@TK2MSFTNGP10.phx.gbl> <4oAJa.111908$Ny5.3241362@twister2.libero.it> <OQBUGbdODHA.2228@tk2msftngp13.phx.gbl> <LXaKa.119763$lK4.3387350@twister1.libero.it> <eEyXRB1ODHA.1608@TK2MSFTNGP11.phx.gbl> <rQBKa.121663$Ny5.3466679@twister2.libero.it> <O3S3FLCPDHA.1748@TK2MSFTNGP11.phx.gbl>Show Full Headers
Complete Article Headers
X-Google-Language: ITALIAN,ASCII X-Google-Thread: f94ee,fa2856aabc00a4a8 X-Google-Attributes: gidf94ee,public X-Google-Thread: 10c104,fa2856aabc00a4a8 X-Google-Attributes: gid10c104,public X-Google-Thread: 10b997,fa2856aabc00a4a8 X-Google-Attributes: gid10b997,public X-Google-ArrivalTime: 2003-06-26 23:55:31 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!skynet.be!skynet.be!newsfeeder.edisontel.com!nntp.infostrada.it!twister1.libero.it.POSTED!not-for-mail From: "Netslacker" <netslacker@iname.com> Newsgroups: free.it.visual-basic,it.comp.lang.visual-basic,microsoft.public.it.dotnet.vstudio References: <8W%Ia.108224$Ny5.3122798@twister2.libero.it> <#hbR2bQODHA.2172@TK2MSFTNGP10.phx.gbl> <4oAJa.111908$Ny5.3241362@twister2.libero.it> <OQBUGbdODHA.2228@tk2msftngp13.phx.gbl> <LXaKa.119763$lK4.3387350@twister1.libero.it> <eEyXRB1ODHA.1608@TK2MSFTNGP11.phx.gbl> <rQBKa.121663$Ny5.3466679@twister2.libero.it> <O3S3FLCPDHA.1748@TK2MSFTNGP11.phx.gbl> Subject: Re: ADO.NET - Bloccare la lettura di una tabella Lines: 28 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: <URRKa.126035$lK4.3519833@twister1.libero.it> Date: Fri, 27 Jun 2003 06:53:40 GMT NNTP-Posting-Host: 151.38.78.194 X-Complaints-To: abuse@net24.it X-Trace: twister1.libero.it 1056696820 151.38.78.194 (Fri, 27 Jun 2003 08:53:40 MET DST) NNTP-Posting-Date: Fri, 27 Jun 2003 08:53:40 MET DST Organization: [Infostrada]