What template to use in VS2010
I want to store data in a data base and thought I would do a database project that I can add to future projects. VS2010 has loads of database project templates. Which one should I use - i just want a simple database for account data storage.
Sam HobbsPosted Apr 16, 2011, 10:34 PM
I posted something a little earlier that you can play with. See Procedure to generate serial number from a range in a table There are also many articles in this web site to explore. Also look at the DbTalks web site for articles and forums and such.
Richard BrennanPosted Apr 16, 2011, 9:07 PM
Sam HobbsPosted Apr 16, 2011, 9:03 PM
Note that is likely that if you are likely going to have difficulty using something generated as a project to be used in another project. There are many ways that it would be possible but it is likely not as flexible as you might think. regardless, it would be beneficial for you to try some.
There are ways to benefit from tools provided by Microsoft other than by generating a project. You can get the IDE to generate a substantial amount of code just by creating a data source. Doing that is much more flexible for use in the future for other projects. See my Database Table Update in a DataGridView without Writing Code for a taste of that.
There are many articles in this web site that will help you. Search (from the home page) the articles for "entity"; I think that the Entity Framework is worth learning about but I know nothing about it. Also search for "3-tier" and "three-tier" (two separate searches); that is not so relevant to small applications but highly relevant to large ones. Another keyword to search for is "DAL" as in Data Access Layer, which is one of the three tiers in a three-tier application.