I'm creating a small utility for custom SQL table synchronization. I need to store the binary value of a timestamp field into a status table. In this status table, I can't use the actual timestamp type since SQL will then automatically update it -which I don't want. However, in my source table, I do need to use the timestamp time since I want SQL to update this field when appropriate.
A timestamp type is 8 bytes of binary (NOT wall clock time). I've tried copying this data into a (binary x 8) and a datetime8 field. Both give "Type mismatch" errors.
Is there a type that is copy-compatible with timestamp.
As a different approach, can I use the timestamp type in my status table and tell SQL to NOT update it for me?
-with thanks.
A timestamp type is 8 bytes of binary (NOT wall clock time). I've tried copying this data into a (binary x 8) and a datetime8 field. Both give "Type mismatch" errors.
Is there a type that is copy-compatible with timestamp.
As a different approach, can I use the timestamp type in my status table and tell SQL to NOT update it for me?
-with thanks.