specify comparison key for tbl with a PK in link static data
d.roberts
Posts: 11
I dont want to use the PK as its just an autogenerated int. I want to use 3 other fields, which I can specify in SQL Data Compare Ok.
Comments
In link static data in SSMS / SQL Src Control, it doesn't give the option to specify the fields to use for the comparison key, and just uses any PK defined in the db itself.
In SQL Data Compare itself it gives the option to specify the fields.
In my particular case there is a PK used for update and delete operations, but the real unique compound keys are 3 string fields.
Is there any way I can get SSC to use these :?:
Unfortunately I don't think it's possible to specify a custom comparison key in SQL Source Control. I'm double checking there's no workaround (I don't believe there is...) but if I do find anything I'll post back.
Redgate Software
http://redgate.uservoice.com/forums/390 ... ce-control
I hope to get some responses soon.
Our only suggested workaround would be to have a separate checkout of your repo to another folder on your PC, and sync between the DB and that folder using SQL Data Compare- you can then manually commit the data records into the repo using Visual Studio/Tortoise SVN etc.
Sorry I don't have better news on this one
Redgate Software