USE [DD_ECM]

UPDATE TBDD_BASECONFIG SET DB_VERSION = '1.9.7.4'
GO

ALTER VIEW [dbo].[VWDDINDEX_AUTOM]
AS
SELECT TOP 100 PERCENT
     T.GUID,
     T.INDEXNAME,
     T.COMMENT,
     T.DOCTYPE_ID,
     T1.BEZEICHNUNG	    DOKUMENTART,
     T1.KURZNAME,
     T.CONNECTION_ID,
     T2.BEZEICHNUNG		CONNECTION,
     T2.SQL_PROVIDER,
     T2.SERVER,
     T2.DATENBANK,
     T2.USERNAME,
     T2.PASSWORD,
     T.SQL_RESULT,
	 T.SQL_ACTIVE,
	 T.VALUE,
     T.[SEQUENCE],
     T.VKT_OVERWRITE,
     T.VKT_PREVENT_MULTIPLE_VALUES
FROM
	TBDD_INDEX_AUTOM			T
	INNER JOIN TBDD_DOKUMENTART	T1 ON T.DOCTYPE_ID = T1.GUID AND T1.AKTIV = 1
	LEFT  JOIN TBDD_CONNECTION	T2 ON T.CONNECTION_ID = T2.GUID	AND T2.AKTIV = 1
WHERE 
	T.ACTIVE = 1
ORDER BY
	 T.DOCTYPE_ID,
	 T.GUID

GO
