I’m trying to append data from one database to a new one where the new table has a replication ID (GUID) as the primary key field. I thought this would be similar to an autonumber, but it isn’t. Is there some trick to creating an acceptable GUID to go along with the record that’s being appended? For example:
INSERT INTO Equipment ( UniqueID, Equipment )
SELECT T_Machine.MachineID, T_Machine.MachineName
FROM T_Machine;
Where the MachineID is an autonumber. I was able to append the information, but the UniqueID now looks like an autonumber instead of a GUID and I don’t think this will be good enough for the new application. Is there a bit of code that anyone has to create the GUID (e.g. {60E7EF97-D735-42MM-A014-7AB11D83AB8C})?