We have a software designed to run on MS SQL 2005, we have upgraded the database to 2008 R2, and are trying to increase accuracy in our timestamp by using Datetime2 instead of Datetime. The software running is still unchanged, and will have the accuracy of Datetime. But there is a extra field updated with correct ms.
So my question is; Are there any best practice for a trigger that takes the datetime2, and replace the MS-part with the correct value? I was hoping to avoid the cup-demanding convert to string and back again but has not been able to find a good function for this.