I have written a stored procedure which retrieves more than 7000 rows. While executing the stored procedure in my VB.NET winforms application, I’m getting an error like as follows.
Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
I googled and tried like using these lines of codes which wasn’t useful.
sqlCmd.CommandTimeout = 0
sqlCmd = New SqlCommand("waitfor delay '00:00:60'")
Please help me with this.
There are multiple places you can be experiencing a timeout. Some things to try.