怎么设置c#连接sqlserver数据库 超时时间

如题所述

第1个回答  2016-08-26
SqlCommand sqlcommand = connection.CreateCommand();
sqlcommand.CommandTimeout = 60;
//默认时间为 30 秒