我是使用 Microsoft.SqlServer.Management.Smo
。
我的代码:
Server server = new Server(new ServerConnection( new SqlConnection(ConnectionString));
server.ConnectionContext.ExecuteNonQuery(script);
我希望能够像普通的SQLCommand
一样为其设置CommandTimeout
请告诉我如何为通过Microsoft.SqlServer.Management.Smo.Server
运行的查询设置CommandTimeout