How can I change the timeout for a manually executed query in SQL Server?

后端 未结 7 1771
终归单人心
终归单人心 2021-01-11 19:15

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

7条回答
  •  迷失自我
    2021-01-11 19:45

    SQL Server will wait indefinitely before returning to the user. More than likely there was a client side timeout property set. For example you can set a timeout property for the ADO command object.

    Cheers, Andy.

提交回复
热议问题