Arg81
Well-known member
Its been a few months since I last did any programming, so I'm a little rusty and this may be a nice simple question!
I have a number of fields in my table, 2 of which are important. The first one is a Identity, so my SQL server sets that as needed. The 2nd field is a manually entered integer, we'll call this mixID.
Now the mixID can be set when a new record is entered, or by editing a record at a later date and assigning it.
However, no 2 mixID can be the same, so I need some kind of check in place to make sure the entered number doesn't already exist for any row in the DB.
I thought I could set some kind of "ID" on but not allow the DB to automatically assign it, obviously not.
Easy to achieve?
thanks!
I have a number of fields in my table, 2 of which are important. The first one is a Identity, so my SQL server sets that as needed. The 2nd field is a manually entered integer, we'll call this mixID.
Now the mixID can be set when a new record is entered, or by editing a record at a later date and assigning it.
However, no 2 mixID can be the same, so I need some kind of check in place to make sure the entered number doesn't already exist for any row in the DB.
I thought I could set some kind of "ID" on but not allow the DB to automatically assign it, obviously not.
Easy to achieve?
thanks!