0% found this document useful (0 votes)
15 views

Trab

The document contains SQL queries and procedures for checking indexes, orders, and tables in an ERP system. It also includes a daily checklist for verifying systems like the document management system, automatic processes, and the ERP itself.

Uploaded by

lreporta.lr1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views

Trab

The document contains SQL queries and procedures for checking indexes, orders, and tables in an ERP system. It also includes a daily checklist for verifying systems like the document management system, automatic processes, and the ERP itself.

Uploaded by

lreporta.lr1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

Regras ERP - Checklist

1,2,30,32,59,60,64,65,80,81,124,262,263,264,265,266,267,268,269,273,274,275,276,277
,278,279,281,282,331,360,361

--Select - tabela BI

SELECT
concat (t.name , '-',
i.name ) AS 'Indice Tabela',
CASE
WHEN i.is_primary_key = 1 THEN 'Chave Primária'
WHEN i.is_unique = 1 THEN 'Índice Único'
ELSE 'Índice Não-Único'
END AS Tipoindice
FROM sys.tables t
INNER JOIN sys.indexes i ON t.object_id = i.object_id
WHERE t.type = 'U' --Somente tabelas de usuário (excluindo tabelas de sistema)
ORDER BY t.name, i.name;

--Select - consulta de pedidos

SELECT
p.codemp, p.numped,p.codcli, t.nomcli, p.datemi, p.usu_pedwmw, usu_stpwms from
e120ped p
INNER JOIN e085cli t on p.codcli=t.codcli
where codemp in (1,2)
and datemi between '2024-02-01'
and '2024-02-29' and sitped in (1,9)
and tnspro in (90108,90109)
and usu_stpwms = ''

--Select - tabela PMED


Regras ERP - Checklist

1,2,30,32,59,60,64,65,80,81,124,262,263,264,265,266,267,268,269,273,274,275,276,277
,278,279,281,282,331,360,361,354,355

--Select - tabela BI

SELECT
concat (t.name , '-',
i.name ) AS 'Indice Tabela',
CASE
WHEN i.is_primary_key = 1 THEN 'Chave Primária'
WHEN i.is_unique = 1 THEN 'Índice Único'
ELSE 'Índice Não-Único'
END AS Tipoindice
FROM sys.tables t
INNER JOIN sys.indexes i ON t.object_id = i.object_id
WHERE t.type = 'U' --Somente tabelas de usuário (excluindo tabelas de sistema)
ORDER BY t.name, i.name;

--Select - consulta de pedidos

SELECT
p.codemp, p.numped,p.codcli, t.nomcli, p.datemi, p.usu_pedwmw, usu_stpwms from
e120ped p
INNER JOIN e085cli t on p.codcli=t.codcli
where codemp in (1,2)
and datemi between '2024-02-01'
and '2024-02-29' and sitped in (1,9)
and tnspro in (90108,90109)
and usu_stpwms = ''

--Select - tabela PMED

Select count(1) from E081ITP where Codemp = 1 and codTpr='SP' and


datini='2024-01-02' and sitreg='A'
Select count(1) from E081ITP where Codemp = 1 and codTpr='TMED' and
datini='2024-01-01' and sitreg='A'

--Select * from E081ITP where Codemp = 1 and codTpr='SP' and datini='2024-01-


02' and sitreg='A'//
--Select * from E081ITP where Codemp = 1 and codTpr='TMED' and datini='2024-01-
01' and sitreg='A'//

--Select Guilherme--

SELECT
p.codemp, p.numped,p.codcli, t.nomcli, p.datemi, p.usu_pedwmw, usu_stpwms from
e120ped p
INNER JOIN e085cli t on p.codcli=t.codcli
where codemp in (1,2)
and datemi between '2024-02-01'
and '2024-02-29'
and sitped in (1,9)
and tnspro in (90108,90109)
and usu_stpwms = ' '
and not exists ( select 1 from e135pes
where codemp = p.codemp
and codfil = p.codfil
and numped = p.numped)
--usuário que alterou

select * from e120ipd where numped= xxxxxxx and codemp=xxxx

Regras paradas resetar SRV APL PRD p

Consultar peno nmk


Select * from e120ped where usu_pedwmw like ('%164446581%')

LISTA DE VERIFICAÇÃO DIARIA - (07/03/2024)

Narwal✅
Espelho✅
Planilha geradora✅
Gestão de Imagens✅
FlowReset✅
GLPI✅
Tabela FOB✅
Tabela devolução✅
Tabela Captação de Clientes✅
Dashboard Faturamento✅
Dashboard One Page✅
Select Indice Banco✅
Processos Automáticos✅
Edocs✅
ERP✅

Indice Banco de dados(5012)

Ocorrências:
Web services Reiniciados

You might also like