Click here to Skip to main content
15,919,245 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, I have to crated application in which I have to fetch all data in data-set in C#NET, And I will done all transaction operation on that data-set. If any have any solution over my question please update me.

Thanks
Posted

//write a store procedure to fetch data
if you need to fetch the data's from more than one table use joins

//To fill a dataset

SqlConnection con =new SqlConnection("");
SqlCommand cmd =new SqlCommand("sp name",con);
cmd.CommandTye=commandType.StoredProcedure;
SqlDataAdapter da=new SqlDataAdapter(cmd);
Dataset ds=new Dataset();
da.Fill(ds);
 
Share this answer
 
v3
Go through the below link, and practice the examples

http://www.java2s.com/Code/CSharp/Database-ADO.net/CatalogDatabase-ADO.net.htm[^]

Thanks
--RA
 
Share this answer
 
Assuming you want to perform operations on dataset, I am providing following links which will help you in getting started.

http://msdn.microsoft.com/en-us/library/system.data.dataset(v=vs.71).aspx[^]

http://www.csharp-station.com/Tutorial/AdoDotNet/lesson05[^]

Using ADO.NET for beginners[^]

http://www.dotnetperls.com/dataset[^]
 
Share this answer
 

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