Execute as etapas abaixo para localizar a coluna, exibição ou função ausente:
- Abra o SQL Management Studio.
- Expanda Bancos de dados e selecione seu banco de dados ePO.
- Clique com o botão direito do mouse no banco de dados do ePO e clique em Nova consulta.
- Digite os seguintes comandos na área em branco:
Consulta 1 - A consulta abaixo ajuda a encontrar a coluna de tags da tabela
ePOLeafNodeMT :
SELECT TABLE_NAME,COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'EPOLEAFNODEMT' and COLUMN_NAME = 'tags'
SaídaUma amostra dos resultados que a consulta gera é mostrada abaixo:
Consulta 2 - A consulta abaixo ajuda a verificar se a exibição
ePoLeafNode está listada no banco de dados do ePO:
Select * from sys.views where name = 'EPOLeafNode'
SaídaUma amostra dos resultados gerados pela consulta é mostrada abaixo:
Consulta 3 - A consulta abaixo ajuda a verificar se o nome da função está disponível no banco de dados principal do ePO:
Select * from sys.objects where name like 'epofn_tagcreatelist'
Saída
Uma amostra dos resultados que a consulta gera é mostrada abaixo:
Execute uma das seguintes opções para resolver o problema:
Opção 1:
- Se os resultados da Consulta 1 mostrarem que a coluna de tags está ausente, execute o seguinte script para localizar a coluna de tags na tabela ePoLeafNodeMT :
Alter table EPOLeafNodeMT add ExcludedTags AS ([dbo].[epofn_tagCreateList]([AutoID],(1)));
- Após a conclusão bem-sucedida da consulta acima, execute o script abaixo:
EXEC sp_refreshView N'EPOLeafNode';
Opção 2:
Se os resultados da Consulta 1 mostrarem a coluna de tags, execute apenas o seguinte script para atualizar a visualização EPOLeafNode:
EXEC sp_refreshView N'EPOLeafNode';