Click here to Skip to main content
15,891,951 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello,
Can I update a column of a table by the values of an array?
Posted
Updated 23-Jul-12 19:40pm
v2

You question is not very clear but, yes, you can.
Just select the value using the particular index in the array and then save it to the database.
 
Share this answer
 
Comments
_Amy 24-Jul-12 1:46am    
Anyway Abhinav, for selecting the particular index he needs an ID. Right?
Abhinav S 26-Jul-12 1:47am    
Yes that is correct. He will need something to get the id to access the array element.
Hi,
I don't think so that you can update a table value with an array without having ID. For ID you can use HashTable(Key & Value pair). It will help you to update only those record which is having an unique ID.
Anyway check this out:
Update table using SqlDataAdapter[^]

--Amit
 
Share this answer
 
v2

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