GreatSeaSpider
Programmer
Hi,
I'm using stored procedures to add entries to my tables in my database. A couple of the tables have two different integers as keys eg:
customer: 1
Order: 1
etc.
My stored procedures auto increment one of these fields, in this case the order field.
my question is will the sql server be clever enough to increment the value of order in relation to the customer field? ie:
customer 1|order 1
customer 2|order 1
customer 1|order 2
NOT
customer 1|order 1
customer 2|order 2
customer 1|order 3
my brain is hurting on this one!
any advice appreciated
Pete
I'm using stored procedures to add entries to my tables in my database. A couple of the tables have two different integers as keys eg:
customer: 1
Order: 1
etc.
My stored procedures auto increment one of these fields, in this case the order field.
my question is will the sql server be clever enough to increment the value of order in relation to the customer field? ie:
customer 1|order 1
customer 2|order 1
customer 1|order 2
NOT
customer 1|order 1
customer 2|order 2
customer 1|order 3
my brain is hurting on this one!
any advice appreciated
Pete