473,287 Members | 1,927 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,287 software developers and data experts.

A little help with optimistic concurrency please?

I was suddenly told to whip up a web project in ASP.Net 2.0. The last few
weeks have been a crash course in new technology. I've done some 1.1 web
work but it's been a while. The basics are really quite simple and I want to
keep it that way. I'm using virtually nothing but grid views and
detailsviews. The grids are used solely for display. Each row has an edit
hyperlink that goes to a detailsview for actual edits and inserts. The
datasource is an xsd. Create a connection to a SQL Server2000 db and drag
tables onto it. Then, when creating grids and detailviews, use
ObjectDateSources. Minimal code and most of that for navigation. So far, so
good.

I believe it would be negligent of me not to implement optimistic
concurrency. Unfortunately I don't know what I'm doing and time is short.
Also I'm getting the impression that Visual Studio default code is not enough.

What, in your opinion, is the simplest and safest way to do this? Anything
to avoid deadends.

I do know there are some problems with the sql generation wizards in the xsd
and so far I've been able to work around them. Optimistic concurrency seems
to present another set of problems. I'm still running through demos and
tutorials but I'd appreciate it if anyone has a favorite method they'd like
to share.

(Also would using timestamp fields simplify matters?)

Thanks.
Dec 16 '07 #1
1 1177
Ignore this. Found a solution (I hope). Will create new post.

"B. Chernick" wrote:
I was suddenly told to whip up a web project in ASP.Net 2.0. The last few
weeks have been a crash course in new technology. I've done some 1.1 web
work but it's been a while. The basics are really quite simple and I want to
keep it that way. I'm using virtually nothing but grid views and
detailsviews. The grids are used solely for display. Each row has an edit
hyperlink that goes to a detailsview for actual edits and inserts. The
datasource is an xsd. Create a connection to a SQL Server2000 db and drag
tables onto it. Then, when creating grids and detailviews, use
ObjectDateSources. Minimal code and most of that for navigation. So far, so
good.

I believe it would be negligent of me not to implement optimistic
concurrency. Unfortunately I don't know what I'm doing and time is short.
Also I'm getting the impression that Visual Studio default code is not enough.

What, in your opinion, is the simplest and safest way to do this? Anything
to avoid deadends.

I do know there are some problems with the sql generation wizards in the xsd
and so far I've been able to work around them. Optimistic concurrency seems
to present another set of problems. I'm still running through demos and
tutorials but I'd appreciate it if anyone has a favorite method they'd like
to share.

(Also would using timestamp fields simplify matters?)

Thanks.
Dec 18 '07 #2

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

Similar topics

1
by: Chris Huddle | last post by:
Is there a way to turn off optimistic concurrency in ASP.NET when updating a record via the oleDBdataAdapter/oleDBcommandBuilder? If you use the Microsoft ASP.NET tools you can turn it off and...
4
by: unkwb | last post by:
Dealing with the Oracle / DB2 XA (2-phase commit) drivers, I found a locking situation in DB2 I do not understand. It is actually a pretty simple scenario to which I can drill it down. Let say I...
8
by: Mike Kelly | last post by:
I've chosen to implement the "optimistic concurrency" model in my application. To assist in that, I've added a ROWVERSION (TIMESTAMP) column to my main tables. I read the value of the column in my...
3
by: Niels Jensen | last post by:
I'm developing an application which will sit on a Citrix server and users will run it from there. Now as far as I can make out citrix starts a new process every time an .EXE is run, however as...
2
by: John | last post by:
In 'Data Adapter Configuration Wizard' for OleDbDataAdapter, there's a checkbox called 'Use optimistic concurrency' that allows to turn on/off the option. I don't use the wizard, I create...
2
by: stuart.d.jones | last post by:
Hi, I'm using a detailsview control with an SqlDataSource control. My Update query isn't working, and I've narrowed it down to the optimistic concurrency parameters - i.e. when I comment them...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
1
by: =?Utf-8?B?Qi4gQ2hlcm5pY2s=?= | last post by:
(If I'm overlooking anything, please let me know.) First, my only concern is updating single records in a Detailsview using an ObjectDataSource. The target table has a timestamp field. Assume ...
8
by: Roger.Noreply | last post by:
Hi, Sql-Server 2000, 2005. A report fetches a lot of rows using the "WITH (ROWLOCK)" syntax (the sql is generated on the fly by a tool and not easily changeable). SELECT col1, col2 FROM mytab...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.