Skip to content

Canceling statement due to user request

Bhushan Shimpi

Asked Jun 6, 2019, 8:26 PM EDT1 answer
Share
LinkedInX
I have asp.net application.
on button click i brought the data from database though Store procedure.
the query is liitle compler but execution time is nearly 2 minut.
but when i run through application it not hold connection 
and give this error 

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    I got the soluation. actually we use the NpgsqlDataAdapter and which is disconnected oriented. we remove it. and use the DataReader and its Execute reader method. Data reader is read the row by row data from database and still hold the connection. and use client side buffer. which reduce the Network overhead and improve the application performance. and also give the command time out.
    0