Link to home
Start Free TrialLog in
Avatar of rajniyadav
rajniyadav

asked on

Stored procedures and multiusers

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
Avatar of kretzschmar
kretzschmar
Flag of Germany image

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 ;-)
Avatar of Motaz
Motaz

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
Avatar of rajniyadav

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of kretzschmar
kretzschmar
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Second question about common store procedures this week!

VSF
www.victory.hpg.com.br
www.boatoda.hpg.com.br
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