I need some advise. I have a person table and a language table with a one to many relationship. I want to be able to add a new person and if they speak ohter languages then add then to the lang. table.
The data is comming from an asp.net page. I'd rather not insert the person , return the new id number then submit any languages spoken. i'd like to keep it to one round trip to the DB. Should i pass the any languages spoken as a delimited string and loop throught that in a stored procedure? and if so how?
Person Table:
PerID
FirstName
LastName
etc...
Language Table:
PerID
LangID (id number from a lookup table)
The data is comming from an asp.net page. I'd rather not insert the person , return the new id number then submit any languages spoken. i'd like to keep it to one round trip to the DB. Should i pass the any languages spoken as a delimited string and loop throught that in a stored procedure? and if so how?
Person Table:
PerID
FirstName
LastName
etc...
Language Table:
PerID
LangID (id number from a lookup table)