How to add DataSet and Add Database table to a DataSet

Before continue to this article I suggest you to see my previous article where i discuss about database table
How to Create a Database table in Visual Studio 2010

1.File-> New-> Website->  ASP.NET Web Site(Visual C#) -> Ok

2.Click Add New Item(shown on image)->










Select DataSet(you can change the DataSet name)->Click Add->Yes(now you will see a window)

















3.Click Solution Explorer->Double Click on your  Database Name->Double click on Tables->(you will see your table list)->Drag and Drop your table to DataSet window->Click Yes(By this way add your all table one by one to DataSet window)
(Click Save Before you leave this window otherwise you will not get the DataSet)


No comments:

Post a Comment