Click here to Skip to main content
15,896,442 members
Home / Discussions / Database
   

Database

 
AnswerRe: Parameters problem Pin
Baran M24-Jul-09 0:16
Baran M24-Jul-09 0:16 
QuestionGenerate report snapshot programatically in SQL Reporting Services Pin
sunit_8223-Jul-09 12:44
sunit_8223-Jul-09 12:44 
AnswerRe: Generate report snapshot programatically in SQL Reporting Services Pin
Mike Ellison24-Jul-09 4:10
Mike Ellison24-Jul-09 4:10 
QuestionSQL Stored procedure help Pin
cdietschrun23-Jul-09 8:30
cdietschrun23-Jul-09 8:30 
AnswerRe: SQL Stored procedure help Pin
Ashfield23-Jul-09 8:34
Ashfield23-Jul-09 8:34 
GeneralRe: SQL Stored procedure help Pin
cdietschrun23-Jul-09 9:35
cdietschrun23-Jul-09 9:35 
GeneralRe: SQL Stored procedure help Pin
cdietschrun23-Jul-09 9:48
cdietschrun23-Jul-09 9:48 
QuestionConcurrency Issue - Restict Select query ( view) till another user modifies it. Pin
meerabhuva23-Jul-09 4:07
meerabhuva23-Jul-09 4:07 
How do I check that or restrict the row to be selected if same row is modified by other user.

For eg. I have created following table.


Consider below tables;
1. Bills Table
Fields Description

BillNo - Bill No Unique (Primary) - No duplicates allowed.
Customer - Customer Name -Non Blank
BillAmt - Bill Total -Not Empty & Only Positive Values
Collected - Collection Done against this bill No Negative Values & shud never be more than BillAmt


2. Collection Table
Fields Description

RcptNo - Receipt No. Unique (Primary) - No duplicates allowed.
RcptAmt - Receipt Total - Cheque / Collection Value.


3. Col_Ref Table - Collection Reference, A Child Table for Collection to store its referred (multiple) bills.
Fields Description

RcptNo - Receipt No. Unique (Primary) - No duplicates allowed.
Ref_BillNo - Referred Bill No.
Ref_Billamt - Referred Bill Amount

I have some records. for eg.
1) I have Bill no. 00001 with amount 10,000/- in Bills Table.


At the same time another user is accessing Collection Table and referring the same Bill no. and accepts receipts and updating amount in Collection table in Bills table.

If user is accessing Bill number he will not get actual amount of collection so i want to restict user for viewing the Bill number which is getting modified by another user using Receipt option in web application. The back end will sql server 2005. How do I do that ?

Before allowing the Edit, Check if the record this invoice is not locked, only then lock the same & allow editing of this entry only for the Invoice Amount & later on <> / <> release the lock. Otherwise Pop message "Update is in progress for this entry, try again later..."

Please guide.

Thanks in advance.
AnswerRe: Concurrency Issue - Restict Select query ( view) till another user modifies it. Pin
David Mujica23-Jul-09 4:29
David Mujica23-Jul-09 4:29 
Questionupdate table with split function Pin
jrsreenivas23-Jul-09 3:44
jrsreenivas23-Jul-09 3:44 
AnswerRe: update table with split function Pin
leckey23-Jul-09 10:10
leckey23-Jul-09 10:10 
AnswerRe: update table with split function Pin
Robin_Roy27-Jul-09 17:25
Robin_Roy27-Jul-09 17:25 
QuestionMSMQ Performance Monitoring Pin
UmaMahesh suda23-Jul-09 3:08
UmaMahesh suda23-Jul-09 3:08 
AnswerRe: MSMQ Performance Monitoring Pin
leckey23-Jul-09 10:14
leckey23-Jul-09 10:14 
QuestionExecuteScalar() Pin
sandhya1422-Jul-09 22:08
sandhya1422-Jul-09 22:08 
AnswerRe: ExecuteScalar() Pin
Mycroft Holmes23-Jul-09 0:54
professionalMycroft Holmes23-Jul-09 0:54 
QuestionSecurity tree structure Pin
Rajeshwar Code- Developer22-Jul-09 20:30
Rajeshwar Code- Developer22-Jul-09 20:30 
AnswerRe: Security tree structure Pin
infneeta22-Jul-09 21:41
infneeta22-Jul-09 21:41 
AnswerRe: Security tree structure Pin
Mycroft Holmes23-Jul-09 0:56
professionalMycroft Holmes23-Jul-09 0:56 
GeneralRe: Security tree structure Pin
Jeremy Likness26-Jul-09 3:34
professionalJeremy Likness26-Jul-09 3:34 
QuestionAUTO NUmber column in SQL server Pin
jonhbt22-Jul-09 20:02
jonhbt22-Jul-09 20:02 
AnswerRe: AUTO NUmber column in SQL server Pin
Baran M22-Jul-09 20:37
Baran M22-Jul-09 20:37 
Questionoracle query Pin
sandhya1422-Jul-09 18:57
sandhya1422-Jul-09 18:57 
AnswerRe: oracle query Pin
Baran M22-Jul-09 20:34
Baran M22-Jul-09 20:34 
GeneralRe: oracle query Pin
sandhya1422-Jul-09 20:53
sandhya1422-Jul-09 20:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.