Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to save multiple name of my friends in sql database table one row (same cell) using asp.net
Posted
Comments
Bandi Ramesh 16-Feb-13 2:26am    
separate all the names by comma and save them to the cell in your row, in your table

1 solution

Based on what you have shared, easiest would be to collate all names into a string with comma separated and then save this one string into one cell of the database table row for that friend.

Try out.
 
Share this answer
 
Comments
vinodkumarnie 16-Feb-13 2:40am    
Multiple names means how..? Is it like first name, middle name, Last name....?

Or

Ajay, ajay kumar, ajay sing etc.....?
Sandeep Mewara 16-Feb-13 2:46am    
I was suggesting second option based on the information you have shared:
Ajay, ajay kumar, ajay sing etc.....
vinodkumarnie 16-Feb-13 4:05am    
Sorry sir.. Instead of asking @BALBINDER4u, asked you.. Yes sir.. If it is second option your suggestion is right.. For 1st option I think we should go for another table according to normalization with foreign key reference from base table. right sir..? Thanks you very much for your response sir..
Sandeep Mewara 16-Feb-13 4:24am    
Right but that option does not sound so based on question information.
vinodkumarnie 16-Feb-13 4:34am    
Ya.. Thank you sir..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900