>Store the value of Framework.DateFunction.GetEmptyDate() to a local variable so it doesn't get fired with every loop. For that matter, you could just say:
>
>
>"SET MitTelLog.XMLDowndt=NULL"
>
>
>and not use the function. SQL doesn't allow empty date values anyway.
Using NULL will return a message saying that the null value is not accepted. This is why the function returns a universal date of 30/12/1899 00:00:00.