Where Knowledge Rules

Computers & Technology:

Software

Get a Widget for this title

The pros and cons of VB database programming

Visual Basic 2005 is an excellent platform for writing a client or Web application that accesses a database. It includes controls that support data binding, as well as a full-featured data access object library. It also allows you to create stored procedures for use with SQL Server 2005.

The simplest way to create a data access application with Visual Basic 2005 is to use data binding. Data binding allows you to define a data source and bind that source to controls that can display and update the data. You can access any data for which there is a database provider, including an Access database file, an Open Database Connectivity (ODBC) data source, Microsoft SQL server, or Oracle. You can also data from an Extensible Markup Language (XML) Web service.

When you need more control over the data, you can use the OLE DB classes to connect to, view, and modify a data source. This method requires more code than using data binding. However, it allows you to provide additional functionality in the client code, such as validating user input before modifying the data source.

A better option for validating user input when using SQL Server is to create a stored procedure. You can combine stored procedures with databinding to create a secure data access application.

Learn more about this author, Rachelle Reese.
Contact this writer Click here to send this author comments or questions.


Below are the top articles rated and ranked by Helium members on:

The pros and cons of VB database programming

  • 1 of 3

    by Steven Laskoske

    While creating a simple "Hello, World!" program doesn't require much in the way of data access more complex programs require

    read more

  • 2 of 3

    by Rachelle Reese

    Visual Basic 2005 is an excellent platform for writing a client or Web application that accesses a database. It includes

    read more

  • by Raj Kumar

    There are many considerations, when you are accessing databases with Visual Basic. For example, data must be safe and protected

    read more

Add your voice

Know something about The pros and cons of VB database programming?
We want to hear your view. Write_penWrite now!

Helium Debate

Cast your vote!

Which is better, Windows Media Player 11 or Windows Media Player 10 and why?

Click for your side.

Partnerlogo

Featured Partner

Catalyst Music inc

more

Helium, Inc.
200 Brickstone Square Andover, MA 01810 USA