C# SQL 查询超时
时间:2011-05-13 来源:dtlcq
最近做一个项目时,由于数据库数据量较大,查询很耗时,无法查询,老是超时~~
注意红色部分
connection.Open();
SqlDataAdapter command = new SqlDataAdapter(SQLString, connection);
command.SelectCommand.CommandTimeout = 500;
command.Fill(ds, "ds");
相关阅读 更多 +
排行榜 更多 +