【发布时间】:2012-05-17 17:25:26
【问题描述】:
我正在使用Microsoft.SqlServer.Management.Smo。
我的代码:
Server server = new Server(new ServerConnection( new SqlConnection(ConnectionString));
server.ConnectionContext.ExecuteNonQuery(script);
我想为它设置CommandTimeout,就像我们使用普通的SQLCommand一样
请告诉我如何为通过Microsoft.SqlServer.Management.Smo.Server 运行的查询设置CommandTimeout
【问题讨论】:
标签: c# smo sqlcommand command-timeout