473,385 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Performing a Load after DML Statements

Okay, so I'm the DBA not a developer, but I need a sanity check. All the
data access to the database is controlled by Stored Procedures, the
procedures are really granular, basically every table has an
<tableName>Insert, <TableName>Update, <TableNameLoad ... procedure. My
question is this, the <TableName>Update and <TableName>Insert all contain a
call to <TableName>Load, as the last statement in the procedure. My initial
reaction is why would we do that, we just wrote the thing, and the reply from
the .NET developers is that we do this because we need to refresh the dataset
within .NET to say that it is committed. I asked why not just do a select of
the @variables passed into the proc to simulate the load, and the answer to
that was the coding issues of keeping that select in synch with the select
from the <tablename>Load proc, plus there are always parameters that are
defaulted (CreateDate, UpdateDate, UserID....), that would need to be
defaulted in the proc versus letting the database do it and getting it on the
Load. Hopefully I described our environment well enough to give you guys an
idea of our situation.

My question is this, does it make sense to do a Load after every DML
statment to refresh the .NET dataset?
Jul 22 '05 #1
1 1336
If specific values were being updated in the table by, say, a trigger or a
default, then your DataSet
will be out-of-sync with the underlying database table.

So the answer to your question is sometimes, but it depends on the scenario.

"paul-esposito" <pa***********@discussions.microsoft.com> wrote in message
news:5E**********************************@microsof t.com...
Okay, so I'm the DBA not a developer, but I need a sanity check. All the
data access to the database is controlled by Stored Procedures, the
procedures are really granular, basically every table has an
<tableName>Insert, <TableName>Update, <TableNameLoad ... procedure. My
question is this, the <TableName>Update and <TableName>Insert all contain
a
call to <TableName>Load, as the last statement in the procedure. My
initial
reaction is why would we do that, we just wrote the thing, and the reply
from
the .NET developers is that we do this because we need to refresh the
dataset
within .NET to say that it is committed. I asked why not just do a select
of
the @variables passed into the proc to simulate the load, and the answer
to
that was the coding issues of keeping that select in synch with the select
from the <tablename>Load proc, plus there are always parameters that are
defaulted (CreateDate, UpdateDate, UserID....), that would need to be
defaulted in the proc versus letting the database do it and getting it on
the
Load. Hopefully I described our environment well enough to give you guys
an
idea of our situation.

My question is this, does it make sense to do a Load after every DML
statment to refresh the .NET dataset?

Jul 22 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Steve | last post by:
Hi, Have a database that contains various tables. I need to run a query on two tables. Table A contains a column called Titles Table B contains a column called Uni_Titles
1
by: Uthuras | last post by:
Greetings, Machine : Pentium IV Os Windows 2000 server Product : DB2 UDB Release : 7.2 We are fail to load the following data file format into db2 database table that has long varchar...
4
by: yasaswi | last post by:
How can I find out the worst performing sql queries or statements in DB2 database? Is there a command or script to monitor all the sql statements which are consuming huge amounts of CPU cycles and...
2
by: Chris Fink | last post by:
Any idea why the database table is not being updated with the contents of the excel file loaded into the dataset? Any help is appreciated! // load database table, shell only string cnString =...
2
by: Razzie | last post by:
Hey all, I'm working on this project where I'm dynamically loading an assembly. Basically what I want is that I can just replace my old dll file with a new one without having to do anything...
1
by: paul-esposito | last post by:
Okay, so I'm the DBA not a developer, but I need a sanity check. All the data access to the database is controlled by Stored Procedures, the procedures are really granular, basically every table...
1
by: aj | last post by:
DB2 WSE LUW 8.1.5 A few questions: Why doesn't IMPORT have IDENTITYOVERRIDE support like LOAD does?? Why doesn't LOAD have CREATE INTO (ala IXF) like IMPORT DOES? Why doesn't: db2 -tvf...
9
by: monomaniac21 | last post by:
hi all i want to use hyperlinks to 'load' content by changing the display of div tags. the problem i have is that unless i specify a href the anchor does not change the mouse pointer on hover...
5
by: ZaphodBBB | last post by:
I have a form that is used just to review previously saved records.(1 record at a time). It also allows just a couple of fields to be updatable (in a given record)and resaved. I load all the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.