I have a simple SQL script that I execute manually from Visual Studio. It is a data generation script so I expect it to take a couple of minutes to run. But I get the follow
@christian answer did not work for me (changing the settings in SQL Management Studio).
Biswa answer worked for me. I will include code to clarify
SqlCommand cmd = new SqlCommand("MyReport", conn); cmd.CommandType = CommandType.StoredProcedure; cmd.CommandTimeout = 60; /* note default is 30 sec */