我正在使用 Microsoft.SqlServer.Management.Smo.
我的代码:
Server server = new Server(new ServerConnection( new SqlConnection(ConnectionString));
server.ConnectionContext.ExecuteNonQuery(script);
我想像CommandTimeout正常一样设置它SQLCommand
请告诉我如何设置CommandTimeout查询运行通过Microsoft.SqlServer.Management.Smo.Server