Table:
CustID int, primary key, Identity Specification = yes
CustName nvarchar(20)
When a customer is added the CustName field is passed to a stored procedure, therby adding the customer. The CustID is created automatically by the DB.
I need to grab the value of the CustID just created by the DB. There is no windows databinding class being used.
That value is needed for a foreign key into additional tables (billing adresses, phone numbers, etc.)
Any thoughts? I must be overlooking a simple mechanism here. I can't simply grab the record by CustName since there may be more than one company with the same name. Also, I don't want the user to do a secondary lookup of customers once the customer is added merely to obtain the correct CustID.
I want to add the record, snag the CustID, and move onto the next task.
Thanks in advance,
Lance