It only works for ULONG and it turns out if you delete a primary key and then add it again vStudio crashes.