Click here to Skip to main content
15,888,802 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Please some one tell that how to do reporting with sql database in asp.net c#
I have done reporting with dataset it is giving output.

My code is:
DataSet1 ds = new DataSet1();
            DataTable t = ds.Tables.Add("Items");
            t.Columns.Add("COMP_NO", Type.GetType("System.Int32"));
            t.Columns.Add("STATUS", Type.GetType("System.String"));

            DataRow r;
            int i = 0;
            for (i = 0; i <= 9; i++)
            {
                r = t.NewRow();
                r["COMP_NO"] = i;
                //r["STATUS"] = "Item" + i;

                r["STATUS"] = i;
                t.Rows.Add(r);


But I need a reporting with sql database, but I don't know how.
Please someone tell that how to do reporting with sql database.
Posted
Updated 8-Nov-11 4:25am
v2
Comments
Smithers-Jones 8-Nov-11 10:26am    
Added code-block and replaced "pls" with "please" (because "pls" isn't a real word :-) )

1 solution

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