Ho potuto controllare solo ora...(tra l'altro questa mattina non riuscivo ad accedere ad aspitalia.com)
comunque se excel non mi tradisce
(=CONTA.SE(A2:A196827;"UPDATE [dbo].[DETTAGLIO_ORDINE_SELEZIONATO]"))
ottengo 10.933 comandi UPDATE e un comando SELECT (che coincide con la prima query del metodo dove faccio l'ordinamento)
Connessione a 12/10/2016 14:47:39 +02:00
apertaSELECT
[GroupBy1].[A1] AS [C1]
FROM ( SELECT
COUNT(1) AS [A1]
FROM [dbo].[DETTAGLIO_ORDINE_SELEZIONATO] AS [Extent1]
) AS [GroupBy1]
-- Esecuzione in 12/10/2016 14:47:39 +02:00
-- Completato in 4 ms con risultato: SqlDataReader
Connessione a 12/10/2016 14:47:39 +02:00
chiusaConnessione a 12/10/2016 14:47:39 +02:00
apertaSELECT
[Extent1].[DOS_NumeroRiga] AS [DOS_NumeroRiga],
[Extent1].[DOS_Anno] AS [DOS_Anno],
[Extent1].[DOS_Codcen] AS [DOS_Codcen],
[Extent1].[DOS_Coddep] AS [DOS_Coddep],
[Extent1].[DOS_Tipord] AS [DOS_Tipord],
[Extent1].[DOS_Numord] AS [DOS_Numord],
[Extent1].[DOS_Tipdoc] AS [DOS_Tipdoc],
[Extent1].[DOS_Distinzione] AS [DOS_Distinzione],
[Extent1].[DOS_Codart] AS [DOS_Codart],
[Extent1].[DOS_Codvar] AS [DOS_Codvar],
[Extent1].[DOS_QuantitaAssegnata] AS [DOS_QuantitaAssegnata],
[Extent1].[DOS_QuantitaOrdinata] AS [DOS_QuantitaOrdinata],
[Extent1].[DOS_Priorita] AS [DOS_Priorita]
FROM [dbo].[DETTAGLIO_ORDINE_SELEZIONATO] AS [Extent1]
ORDER BY [Extent1].[DOS_Codart] ASC, [Extent1].[DOS_Codvar] ASC, [Extent1].[DOS_Priorita] ASC
-- Esecuzione in 12/10/2016 14:47:39 +02:00
-- Completato in 28 ms con risultato: SqlDataReader
Connessione a 12/10/2016 14:47:39 +02:00
chiusaConnessione a 12/10/2016 14:47:40 +02:00
apertaTransazione avviata in 12/10/2016 14:47:40 +02:00
UPDATE [dbo].[DETTAGLIO_ORDINE_SELEZIONATO]
SET [DOS_QuantitaAssegnata] = @0
WHERE ((((((([DOS_NumeroRiga] = @1) AND ([DOS_Anno] = @2)) AND ([DOS_Codcen] = @3)) AND ([DOS_Coddep] = @4)) AND ([DOS_Tipord] = @5)) AND ([DOS_Numord] = @6)) AND ([DOS_Distinzione] = @7))
-- @0: '1' (Type = Double)
-- @1: '43366' (Type = Int32)
-- @2: '2016' (Type = Int16)
-- @3: '003' (Type = AnsiString, Size = 3)
-- @4: '300' (Type = AnsiString, Size = 3)
-- @5: '5' (Type = Int16)
-- @6: '1588' (Type = Int32)
-- @7: '00001' (Type = AnsiString, Size = 255)
-- Esecuzione in 12/10/2016 14:47:40 +02:00
-- Completato in 134 ms con risultato: 1
Transazione sottoposta a commit in 12/10/2016 14:47:40 +02:00
Connessione a 12/10/2016 14:47:40 +02:00
chiusaConnessione a 12/10/2016 14:47:40 +02:00
apertaTransazione avviata in 12/10/2016 14:47:40 +02:00
UPDATE [dbo].[DETTAGLIO_ORDINE_SELEZIONATO]
SET [DOS_QuantitaAssegnata] = @0
WHERE ((((((([DOS_NumeroRiga] = @1) AND ([DOS_Anno] = @2)) AND ([DOS_Codcen] = @3)) AND ([DOS_Coddep] = @4)) AND ([DOS_Tipord] = @5)) AND ([DOS_Numord] = @6)) AND ([DOS_Distinzione] = @7))
-- @0: '1' (Type = Double)
-- @1: '43367' (Type = Int32)
-- @2: '2016' (Type = Int16)
-- @3: '003' (Type = AnsiString, Size = 3)
-- @4: '300' (Type = AnsiString, Size = 3)
-- @5: '5' (Type = Int16)
-- @6: '1588' (Type = Int32)
-- @7: '00001' (Type = AnsiString, Size = 255)
-- Esecuzione in 12/10/2016 14:47:40 +02:00
-- Completato in 1 ms con risultato: 1
Quindi qual'e il prossimo passo ?
grazie Moreno
Modificato da jjchuck il 12 ottobre 2016 15.29 -