?
Solved

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

Posted on 2004-10-08
4
Medium Priority
?
226 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Suggested Courses
Course of the Month11 days, 8 hours left to enroll

752 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