You can speed it up a bit by dragging the table onto the form and consuming
that data. It will create all of the adapters for you. It is not necessarily
the best, from an Enterprise standpoint, but it works rather well for many
sites for small and medium businesses. If you want to be a bit more correct,
a DataSet with a table adapter works nicely.
I will both agree and disagree with part of Mark's statement. The sproc
(stored procedure) version of database access is easier to secure, but you
can get similar security using parameterized queries in a tableAdapter, so
the main security is not what Mark states. When you drag data onto a form,
it is automatically parameterized, eliminating SQL injection.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com
********************************************
Think outside the box!
********************************************