Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Execution of SQL Server Stored Procedure
Message
 
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00867969
Message ID:
00867974
Views:
25
>>We have a Visual Foxpro app and it uses SQL Server database. The app gets series no. from a table by using stored procedure. Is it right to assume that if a 100 users simultaneously running the application, the SQL Server manages the execution of the SP in a QUEUED manner? Meaning, the SQL Server should finish the execution of the SP before allowing another one to access or execute it again?
>
>Nope, all users can execute this stored procedure at the same time if they have rights to execute it..

So it's possible that two users gets the same series no.? The Stored Procedure looks like this:

Create Stored Procedure GetSeriesNo
@doccode VarChar(10)
As
Update ccdoc
Set seriesno = seriesno + 1
Where doccode = @doccode

Select seriesno From ccdoc Where doccode = @doccode
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform