Solved

Stored procedures and multiusers

Posted on 2002-05-06
6
141 Views
Last Modified: 2010-04-04
First Question:
I am using interbase 6 with delphi 5. Now i want to create stored procedures for duplication checking and refrential integrity. I want to make some common stored procedure so that i can use one procedure for all the table. Is it possible? How?

Second Question:
With delphi 5 i am using sql server. To make my application multi uses what should i do. Any sites addresses or tips

answer asap :)
Rajni
0
Comment
Question by:rajniyadav
6 Comments
 
LVL 27

Expert Comment

by:kretzschmar
Comment Utility
1. common is not possible, because the tables must be known at compile-time by the server, but you can do a stored-procedure for each table anbd change the name of the storedprocedure in your tstoredproc-object (if you use this)

2. the sql-server takes care of multiuser-access, no need to do something special (excepts your grants and userlogins)

meikl ;-)
0
 
LVL 7

Expert Comment

by:Motaz
Comment Utility
Instead of stored procedure you can use Query and you can build it at run time such as:

ibQuery1.SQL.Text:= 'select * from ' + Edit1.Text;

Motaz
0
 

Author Comment

by:rajniyadav
Comment Utility
kretzschmar

SQL server takes care of multiusers
but when we are running two application and two users are trying to modify the same record or when one user is modifying a record while some other user is deleting that record. Those kind of errors how to handle those.
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 27

Accepted Solution

by:
kretzschmar earned 150 total points
Comment Utility
one user may have no luck and will get an exception thrown by the server forwarded through the connection-protocol to your application

SQL server takes care of multiusers,
doesn't matter if there are more users and/or applications accesses the same record, SQL server knows this, because all must go through the server

well there is a transaction issue,
depending on how you connect to the server (ado,bde,..).
but the default settings are normally useable.

meikl ;-)



0
 
LVL 3

Expert Comment

by:VSF
Comment Utility
Second question about common store procedures this week!

VSF
www.victory.hpg.com.br
www.boatoda.hpg.com.br
0
 
LVL 1

Expert Comment

by:pnh73
Comment Utility
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Accept answer from kretzschmar

Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Paul (pnh73)
EE Cleanup Volunteer
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

763 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now