16 lines
502 B
Transact-SQL
16 lines
502 B
Transact-SQL
--[dbo].[sp_archiveDocumentIntoDB_ByIdDocument] 7876
|
|
CREATE PROCEDURE [dbo].[sp_archiveDocumentIntoDB_ByIdDocument]
|
|
@idDocument as int
|
|
AS
|
|
BEGIN
|
|
SET NOCOUNT ON;
|
|
UPDATE [dbo].[ReportperClienteDati]
|
|
SET FlgArchiviato = 1
|
|
WHERE Identificativo = @idDocument
|
|
--V Aggiorno la tabella Generazione Report
|
|
UPDATE [dbo].[GenerazioneReport]
|
|
SET stampaDefinitiva = 'S'
|
|
where IdReport = @idDocument
|
|
update repositoryMetadati
|
|
set flagLock = 1 where idInRepository = @idDocument and repository = 0
|
|
END |