Jump to content
Seja Membro VIP - Remova Banners de Propagandas, Tenha Liberado Qualquer Download, Além de Acessos em Áreas Exclusivas!! ×

Recommended Posts


  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  14
  • Content Per Day:  0.00
  • Reputation:   2
  • Achievement Points:  114
  • Solved Content:  0
  • Days Won:  1
  • Status:  Offline
  • Age:  55
  • Device:  Windows

Posted

Bom dia a todos.
Alguém teria um UPDATE para alterar o status do evento esocial? Estamos com vários retornos sem recibo e outros erros que podem ser corrigidos editando o xml, mas isso só é possível se o status for 1. Por isso quero fazer update no banco, mudando o status de 2 para 1.

Não tenho muito conhecimento de SQL, mas consigo entender e resolver pequenas coisas.

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic


  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  535
  • Content Per Day:  0.18
  • Reputation:   184
  • Achievement Points:  3,568
  • Solved Content:  0
  • Days Won:  77
  • Status:  Offline
  • Age:  37
  • Device:  Windows

Posted

@Soutto Mayor, bom dia!

 

Segue um exemplo, mas é importante salientar que existes diversas formas de realizar esse UPDATE via banco de dados, meu exemplo está em T-SQL (SQL Server)

 

UPDATE PESOCIALEVENTOS
SET
     [STATUS] = 1 
    ,RECMODIFIEDBY = 'seu_usuario'
    ,RECMODIFIEDON = GETDATE() 
WHERE CODCOLIGADA = 1 /*CÓDIGO DA SUA COLIGADA*/
AND ID 
    IN 
        (
             'LISTA DOS ID'
            ,'LISTA DOS ID'
            ,'LISTA DOS ID'
        ) 

Espero lhe ajudar! 

 

Abraços.

  • 2 weeks later...

  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  14
  • Content Per Day:  0.00
  • Reputation:   2
  • Achievement Points:  114
  • Solved Content:  0
  • Days Won:  1
  • Status:  Offline
  • Age:  55
  • Device:  Windows

Posted

Obrigado, Luís.

É extamente isso que preciso aqui.

Veleu!!!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.