UPDATE TBDD_MODULES SET PRODUCT_VERSION = '2.4.5.1' where NAME = 'Record-Organizer' 
GO
ALTER TABLE TBDD_INDEX_MAN
ADD SAVE_VALUE BIT NOT NULL DEFAULT 0
GO
ALTER VIEW VWDDINDEX_MAN
AS
SELECT TOP 2000
     T.GUID,
     T.NAME		INDEXNAME,
	 T.WD_INDEX,
     T.COMMENT,
     T.DATATYPE,
     T.DOK_ID,
     T1.BEZEICHNUNG	    DOKUMENTART,
     T1.KURZNAME,
     T.SUGGESTION,
     T.CONNECTION_ID,
     T2.BEZEICHNUNG		CONNECTION,
     T2.SQL_PROVIDER,
     T2.SERVER,
     T2.DATENBANK,
     T2.USERNAME,
     T2.PASSWORD,
     T.SQL_RESULT,
     T.SQL_CHECK,
	 T.OPTIONAL,
	 T.SAVE_VALUE
FROM
	 TBDD_INDEX_MAN				T
	 INNER JOIN TBDD_DOKUMENTART	T1 ON T.DOK_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.DOK_ID,
	 T.GUID
GO