Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

To data bind or not to data bind that is the question.

Posted on 2004-10-08
4
Medium Priority
?
233 Views
Last Modified: 2010-05-02
I'm begining to construct an N-Tier applicatoin. I have a data layer object forwarding a recordset to a business layer. The business layer has the DataSource behaviour set to vb datasoure. I use a grid to bind the return of multiple records in the recordset though I don't allow any editing in the grid. I do my Add, Editing, Deleteing in a serperate single record Form thats supplied with its own bussiness object. My question is should I do the updating with the single record using data binding (using a single record recordset) or should I use a stored procedure and pass paramerters. I have heard that databinding can be more trouble than its worth.  Thanks.
0
Comment
Question by:Arundel_Castle
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 7

Assisted Solution

by:HoweverComma
HoweverComma earned 800 total points
ID: 12264298
I prefer using a stored procedure as it allows YOU to control what and how it happens along with anything that you would like to happen additionally.
In a situation that sounds similar to yours I needed to record for auditing purposes who did the action as well as save the record to a tracking database, to aid in rolling back any changes made in error.

This will also give you complete control over the associations and interaction between the layers, as well as enhancing the ease of portability.

Now you can still accomplish most of that with Databinding by events, when you get through you are basically going to have the same code that you would have in stored procedures anyway.

0
 
LVL 3

Expert Comment

by:Noel_Castillo
ID: 12274476
If you have enough time then its better to create your stored procedure rather than databinding. Databinding can save your precious programming time but doesnt give full control on how it should be done. There are some instances that programmers find themselves helpless of some problems because of shortcuts and bundled functions. :)
0
 
LVL 3

Author Comment

by:Arundel_Castle
ID: 12299901
Do either of you have any good links on not using data bindings. Some examples would be good. I'm going to close this question shortly, if its ok with both of you I will split the points.
0
 
LVL 3

Accepted Solution

by:
Noel_Castillo earned 1200 total points
ID: 12304374
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question