Unique SPID for each stored procedure execution

713 Views Asked by At

I am building an angularjs .net application with WebApi2 and SQL Server 2008.When page loads, it sends multiple ajax calls to WebApi. WebApi then in turn passes on these calls to Sql server, but when I look into sql profiler, all calls to db are executed with same SPID,which I believe is a sequential execution rather than parallel execution of stored procs. Even after having looking at the network monitor tab on firefox browser, all these calls return one after another and not at the same time.This might create bottleneck in the system , as angular sends parallel request to webapi but sql server is executing each request sequentially rather than parallel. I have used Data Access Application Block v6.0 and have put Connection and Command objects under "Using" scope. Still it fires all my storedproc with same SPID. Is there anything which I am doing wrong here?

0

There are 0 best solutions below