Synch null DATES in SQL 2000 to SQL 2005 table returns TODAY
beachldy
Posts: 17
When synchronizing a NULL datetime field FROM SQL 2000 TO SQL 2005 , it returns TODAY's date and time instead of NULL (in SQL 2005), so the tables will never rematch on the refresh comparison. I can script both tables with some data in it, if this needs to be tested. NOTE: And yes, the items were SQL COMPARED first, to check for any discreptancies in the schema, etc. They matched. Why are the NULL dates in SQL 2000 coming back with today's date in them in the SQL 2005 table when synched?
Comments
On both SQL 2000 and SQL 2005 then in SQL 2000 I inserted the data.
After I ran the comparison the SQL the migrate the table was as I would expect
What I'm thinking may be happening is there is a data trigger getting in the way of the insert or the field is a timestamp column or similar. If you exclude the column from the comparison it will insert the default data which may be set to today in your case.
If none of the above helps perhaps you can script the schema and some data from the databases to see if we can reproduce the problem.
HTH
Project Manager
Red Gate Software Ltd
Project Manager
Red Gate Software Ltd