Click here to Skip to main content
15,944,733 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
i have a stored procedure it will basically insert and update based on a string passed as parameter to sp, sp works fine if it is executed in SSMS, but if i invoke the same sp from SL5 application using WCF Service it returns the saved information which i pass from the sp, but if i query the table insert thru sp, it takes time to list 10 records with 3 columns, while it taking time i queried using sp_who2 which show the select statement is blocked a SPID, which was the one from SL5 Application, How to resolve this and insert / Update freom UI
Posted
Comments
Maciej Los 30-Jun-14 15:13pm    
Not enough information to answer the question!

1 solution

"based on a string passed as parameter"

Do you mean it's using dynamic SQL? If so, maybe the following will help:
http://www.sommarskog.se/dynamic_sql.html[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900