/*Folder Created By and CreatedDateTime populate */
UPDATE
					ComFolder
				SET
					ComFolder.CreatedDatetime= a.DateTimeValue
				FROM
					ComFolderAttribute a
					INNER JOIN ComFolder
						ON a.ComFolderId =ComFolder.Id And a.ComAttributeId = 4  
						 
UPDATE
					ComFolder
				SET
					ComFolder.CreatedBy= a.StringValue
				FROM
					ComFolderAttribute a
					INNER JOIN ComFolder
						ON a.ComFolderId =ComFolder.Id And a.ComAttributeId = 5

						 
/*Document Size, Created By and CreatedDateTime populate*/
	UPDATE
					ComDocument
				SET
					ComDocument.UploadedDatetime = a.DateTimeValue
				FROM
					ComDocumentAttribute a
					INNER JOIN ComDocument
						ON a.ComDocumentId =ComDocument.Id And a.ComAttributeId = 21  
						
						
	UPDATE
					ComDocument
				SET
					ComDocument.UploadedBy = a.StringValue
				FROM
					ComDocumentAttribute a
					INNER JOIN ComDocument
						ON a.ComDocumentId =ComDocument.Id And a.ComAttributeId = 22
						
						
	
	UPDATE
					ComDocument
				SET
					ComDocument.DocumentSize = a.IntegerValue
				FROM
					ComDocumentAttribute a
					INNER JOIN ComDocument
						ON a.ComDocumentId =ComDocument.Id And a.ComAttributeId = 32