473,659 Members | 3,031 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ADO Record Set in Multi User Mode

Hi All,

Can any body help me to use the ADO Recordset in Multiuser Environment for
SQL Server DB?

How Can I Restrict User 2 to Open the Same Row which is Opened By User 1 and
I will Display Message that "This Record is being opened for edit"?

Suppose User 1 Open a ROW using SQL "Select * from EMP Where EMPID = 1001".
So Now User 2 Should not be able to use the 1001 Employee. If He Try to open
that then he should get the Above message. But he should be able to open any
other records. And Also When the User 1 will Say "Update" or "Cancel" then
the user 2 should be able to open 1001.

I am New to Multiuser programming in ADO. Please Guide me.

Thanks
Prabhat
Nov 20 '05 #1
8 2388
Hi Prabhat,

Just a thought, but perhaps you could add an additional
field to the data table - call it Edit (or something like
that). This field would be Null by default. When a user
accesses the record (from an Edit button) you would
automatically update that record with some character or
number so that it is not null. If another user tries to
access this record (also from an edit button) it would
first check the edit field. If the field is not null then
give the message that it is being edited. When the first
user is finished editing the record you automatically set
the Edit field back to Null. Maybe there is something
easier, but I am kind of new to dotnet also.

Rich
-----Original Message-----
Hi All,

Can any body help me to use the ADO Recordset in Multiuser Environment forSQL Server DB?

How Can I Restrict User 2 to Open the Same Row which is Opened By User 1 andI will Display Message that "This Record is being opened for edit"?
Suppose User 1 Open a ROW using SQL "Select * from EMP Where EMPID = 1001".So Now User 2 Should not be able to use the 1001 Employee. If He Try to openthat then he should get the Above message. But he should be able to open anyother records. And Also When the User 1 will Say "Update" or "Cancel" thenthe user 2 should be able to open 1001.

I am New to Multiuser programming in ADO. Please Guide me.

Thanks
Prabhat
.

Nov 20 '05 #2
Hi Prabhat,

Just a thought, but perhaps you could add an additional
field to the data table - call it Edit (or something like
that). This field would be Null by default. When a user
accesses the record (from an Edit button) you would
automatically update that record with some character or
number so that it is not null. If another user tries to
access this record (also from an edit button) it would
first check the edit field. If the field is not null then
give the message that it is being edited. When the first
user is finished editing the record you automatically set
the Edit field back to Null. Maybe there is something
easier, but I am kind of new to dotnet also.

Rich
-----Original Message-----
Hi All,

Can any body help me to use the ADO Recordset in Multiuser Environment forSQL Server DB?

How Can I Restrict User 2 to Open the Same Row which is Opened By User 1 andI will Display Message that "This Record is being opened for edit"?
Suppose User 1 Open a ROW using SQL "Select * from EMP Where EMPID = 1001".So Now User 2 Should not be able to use the 1001 Employee. If He Try to openthat then he should get the Above message. But he should be able to open anyother records. And Also When the User 1 will Say "Update" or "Cancel" thenthe user 2 should be able to open 1001.

I am New to Multiuser programming in ADO. Please Guide me.

Thanks
Prabhat
.

Nov 20 '05 #3
Thanks Rich,

I know that we can do like that. But that has a potential problem. Like if
suppose the application will not be able to release that FLAG then it will
not alow any user to open that. We need again a interface to clear that all.

So I am searching for something in ADO Recordset.

Can Any One HELP Me out of that?

Thanks
Prabhat
"Rich" <an*******@disc ussions.microso ft.com> wrote in message
news:19******** *************** ******@phx.gbl. ..
Hi Prabhat,

Just a thought, but perhaps you could add an additional
field to the data table - call it Edit (or something like
that). This field would be Null by default. When a user
accesses the record (from an Edit button) you would
automatically update that record with some character or
number so that it is not null. If another user tries to
access this record (also from an edit button) it would
first check the edit field. If the field is not null then
give the message that it is being edited. When the first
user is finished editing the record you automatically set
the Edit field back to Null. Maybe there is something
easier, but I am kind of new to dotnet also.

Rich
-----Original Message-----
Hi All,

Can any body help me to use the ADO Recordset in

Multiuser Environment for
SQL Server DB?

How Can I Restrict User 2 to Open the Same Row which is

Opened By User 1 and
I will Display Message that "This Record is being opened

for edit"?

Suppose User 1 Open a ROW using SQL "Select * from EMP

Where EMPID = 1001".
So Now User 2 Should not be able to use the 1001

Employee. If He Try to open
that then he should get the Above message. But he should

be able to open any
other records. And Also When the User 1 will Say "Update"

or "Cancel" then
the user 2 should be able to open 1001.

I am New to Multiuser programming in ADO. Please Guide me.

Thanks
Prabhat
.

Nov 20 '05 #4
Thanks Rich,

I know that we can do like that. But that has a potential problem. Like if
suppose the application will not be able to release that FLAG then it will
not alow any user to open that. We need again a interface to clear that all.

So I am searching for something in ADO Recordset.

Can Any One HELP Me out of that?

Thanks
Prabhat
"Rich" <an*******@disc ussions.microso ft.com> wrote in message
news:19******** *************** ******@phx.gbl. ..
Hi Prabhat,

Just a thought, but perhaps you could add an additional
field to the data table - call it Edit (or something like
that). This field would be Null by default. When a user
accesses the record (from an Edit button) you would
automatically update that record with some character or
number so that it is not null. If another user tries to
access this record (also from an edit button) it would
first check the edit field. If the field is not null then
give the message that it is being edited. When the first
user is finished editing the record you automatically set
the Edit field back to Null. Maybe there is something
easier, but I am kind of new to dotnet also.

Rich
-----Original Message-----
Hi All,

Can any body help me to use the ADO Recordset in

Multiuser Environment for
SQL Server DB?

How Can I Restrict User 2 to Open the Same Row which is

Opened By User 1 and
I will Display Message that "This Record is being opened

for edit"?

Suppose User 1 Open a ROW using SQL "Select * from EMP

Where EMPID = 1001".
So Now User 2 Should not be able to use the 1001

Employee. If He Try to open
that then he should get the Above message. But he should

be able to open any
other records. And Also When the User 1 will Say "Update"

or "Cancel" then
the user 2 should be able to open 1001.

I am New to Multiuser programming in ADO. Please Guide me.

Thanks
Prabhat
.

Nov 20 '05 #5
Cor
Hi Prabhat,

When you want information about the Ado recordset in multiuser mode I think
you can better ask that in a classic VB newsgroup.

microsoft.publi c.vb
or
microsoft.data. ado (is a small but active newsgroup)

In dotnet is Adonet and the Dataset more normal used.

I do not think that a lot active in the dotnet newsgroups will take a lot of
time with looking again to those typical ADO settings, the rollbacks or/and
whatever needed for this.

Just my thought,

Cor
Nov 20 '05 #6
Cor
Hi Prabhat,

When you want information about the Ado recordset in multiuser mode I think
you can better ask that in a classic VB newsgroup.

microsoft.publi c.vb
or
microsoft.data. ado (is a small but active newsgroup)

In dotnet is Adonet and the Dataset more normal used.

I do not think that a lot active in the dotnet newsgroups will take a lot of
time with looking again to those typical ADO settings, the rollbacks or/and
whatever needed for this.

Just my thought,

Cor
Nov 20 '05 #7
Hi Friends!

Can We do this type of multiuser handling in ADO.NET ?

Any Suggestions, Website Link, or Small Example?

Thanks
Prabhat

"Prabhat" <no********@hot mail.com> wrote in message
news:uR******** ******@TK2MSFTN GP09.phx.gbl...
Hi All,

Can any body help me to use the ADO Recordset in Multiuser Environment for
SQL Server DB?

How Can I Restrict User 2 to Open the Same Row which is Opened By User 1 and I will Display Message that "This Record is being opened for edit"?

Suppose User 1 Open a ROW using SQL "Select * from EMP Where EMPID = 1001". So Now User 2 Should not be able to use the 1001 Employee. If He Try to open that then he should get the Above message. But he should be able to open any other records. And Also When the User 1 will Say "Update" or "Cancel" then
the user 2 should be able to open 1001.

I am New to Multiuser programming in ADO. Please Guide me.

Thanks
Prabhat

Nov 20 '05 #8
Hi Friends!

Can We do this type of multiuser handling in ADO.NET ?

Any Suggestions, Website Link, or Small Example?

Thanks
Prabhat

"Prabhat" <no********@hot mail.com> wrote in message
news:uR******** ******@TK2MSFTN GP09.phx.gbl...
Hi All,

Can any body help me to use the ADO Recordset in Multiuser Environment for
SQL Server DB?

How Can I Restrict User 2 to Open the Same Row which is Opened By User 1 and I will Display Message that "This Record is being opened for edit"?

Suppose User 1 Open a ROW using SQL "Select * from EMP Where EMPID = 1001". So Now User 2 Should not be able to use the 1001 Employee. If He Try to open that then he should get the Above message. But he should be able to open any other records. And Also When the User 1 will Say "Update" or "Cancel" then
the user 2 should be able to open 1001.

I am New to Multiuser programming in ADO. Please Guide me.

Thanks
Prabhat

Nov 20 '05 #9

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

Similar topics

4
3862
by: Tim Marshall | last post by:
This is an embarrassing question to which I should know the answer, but I am not 100% sure of myself. My applications, whether they are Jet or Oracle usually deal with reporting on existing apps that others have done and except for the odd single user app, I don't do many transaction type applications.... Anyways, I have an unbound form which is a data entry form for new records or in "add record" mode. Say this form is for creating...
1
2004
by: me | last post by:
I'm building a multi user app where many admins will be making calls to people in one table. I want to keep things simple and find a way to prevent 2 or more admins from working on the same record at the same time. In other words I need a way to go the next "available" record. Any help will be greatly appreciated, please reply here in the NG. Thanks in advance !!
2
3827
by: M Fisher | last post by:
Is there a way to get the autonumber of a newly inserted record? I am working with unbound forms, and using an append query to insert a record into a table. I am then using a select query that returns the max ID (the autonumber field) of the table. This gives me the correct number. However, could this go wrong in a multi-user environment. I insert a record, and say it gets ID 10, but before (even thoug it is a split second) I read the...
5
3329
by: Ross A. Finlayson | last post by:
Hi, I'm scratching together an Access database. The development box is Office 95, the deployment box Office 2003. So anyways I am griping about forms and global variables. Say for example I'm adding a customer. The Customer fields are mostly foreign keys that refer to primary keys in other tables, left join instead of junction tables at this point. So, when I want to add a customer record, I also need to add records to the other...
8
1048
by: Prabhat | last post by:
Hi All, Can any body help me to use the ADO Recordset in Multiuser Environment for SQL Server DB? How Can I Restrict User 2 to Open the Same Row which is Opened By User 1 and I will Display Message that "This Record is being opened for edit"? Suppose User 1 Open a ROW using SQL "Select * from EMP Where EMPID = 1001". So Now User 2 Should not be able to use the 1001 Employee. If He Try to open
2
2430
by: Mark Reed | last post by:
Hi All, I have created a multi-user application at work which is working perfectly apart from a small problem which I believe to more a of a user issue (maybe some will set me straight on that one). I have set the 'Default Record Locking' option to 'Edited Record' in the hope that if someone tries to edit a record someone has open, they would not be able to do so. After a little testing, I found this not to be the case. Instead, if 2...
6
8143
by: Matt | last post by:
I need some guidance on how to handle an issue. I have an .asp page that correctly queries a table and returns data if a 'job number' and week ending date exist and the user can update the information that is there. What I need to do is, if a record does not exist the page needs to create one and then refresh/requery so the user can edit the data. Any suggestions on how to accomplish this? THanks
10
15320
by: sara | last post by:
Hi - I have been struggling with solution ideas for this now for almost 2 weeks, and have not been able to figure this out. I have a user who creates a Purchase Order (tblPOData). In some circumstances, this or another user must create an invoice to go with the PO (I know - that makes no sense, but this is the business case). I have the user go to a form to create the invoice:
1
1910
by: hariaum001 | last post by:
We are using Access database in multi-user environment. In some instance when user is modifying the record, it's left in edit mode (shows pencil in the record seletor) which prevents other user to update different record. The default values in the "Option" (Update Retry Interval...) does not seems to work. How do I resove this issue? Any help will be greatly appriciated. Thanks in advance. Hariaum.
0
8428
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8337
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8748
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8531
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7359
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5650
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
1978
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1739
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.