Click here to Skip to main content
15,893,487 members
Please Sign up or sign in to vote.
1.50/5 (2 votes)
hello friends

is there any possible to store an array using bulkcopy...

for ex i m having an array
string[] st=new string[2];
st[0]="as";
st[1]="se";

i want to store dis using bulkcopy
Posted
Updated 11-Apr-11 19:58pm
v2
Comments
Manfred Rudolf Bihy 12-Apr-11 9:00am    
Don't just repost your question when you are not satisfied with a solution. The least you could have done is look at the article Abhinav suggested and try something by yourself.

1 solution

The array has a copy method that can be used.
Perhaps this was what you were looking for.

More information here - http://msdn.microsoft.com/en-us/library/y5s0whfd.aspx[^].
 
Share this answer
 
Comments
beginner in C#.net 12-Apr-11 1:37am    
array copy to store one array to another... i want to store it to db...
Abhinav S 12-Apr-11 2:57am    
Ok. Have a look at this excellent article. It does discuss some ways you can approach this - http://www.codeproject.com/KB/cs/MultipleInsertsIn1dbTrip.aspx?msg=2523641
beginner in C#.net 12-Apr-11 6:44am    
tnx friend

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