This is my table:
Phone: Id, MemberId, Number, PhoneType, IsDefault
I need an stored procedure to get an array of numbers and a memberId as argument and insert all of them to Phone Table. I can't pass numbers one by one I need to insert all of them or none of them. I think to pass numbers as a list of separated by comma Nvarchar like '0412589, 0425896, 04789652' I must mention MemberId is always constant and pass by argument, PhoneType always constant ='phone', and for first number of array IsDefault = 1 for others IsDefault = 0 How can I select Numbers from numbers and set other columns in insert command? Or you have another suggestion to pass array of numbers?