Hello Tina,
I have found that using the Microsoft.ApplicationBlocks.Data.dll simplifies database work. (This dll is something that does not come with .NET, you need to download the source code from MS, compile it yourself, then add a reference to the dll in your project)
What you wind up with are calls that look like this (The
VB syntax is similar):
DataTable dt = SqlHelper.ExecuteDataset( <connection string>, CommandType.StoredProcedure, "usp_foo").Tables[0];
SqlHelper is a public class inside of the ApplicationBlock that also exposes these methods and functions: ExecuteScalar, ExecuteNonQuery, ExecuteReader, and ExecuteXMLReader
Of course you can create your own data layer where you define your data adapters, connections, data readers etc.
hth.
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
Technical Editor for:
Professional Search Engine Optimization with ASP.NET
Professional IIS 7 and ASP.NET Integrated Programming
================================================== =========