摘要:
When developing a desktop application, there will be times when you want to store settings for your program. A database is one option, but on Windows, you might just wish to have your settings stored in an INI file. One way to work with an INI file in C# is with the Nini Library. This makes it quite 阅读全文
摘要:
解决MySQL CPU占用100%的经验总结 朋友主机 (Windows 2003 + IIS + PHP + MySQL) 近来 MySQL 服务进程 (MySQLd-nt.exe) CPU 占用率总为 100% 高居不下。此主机有10个左右的 database,分别给十个网站调用。据朋友测试,导致 MySQLd-nt.exe CPU 占用奇高的是网站A,一旦在 IIS 中将此网站停止服务,CPU 占用就降下来了。一启用,则马上上升。 MySQL CPU 占用 100% 的解决过程 今天早上仔细检查了一下。目前此网站的七日平均日 IP 为2000,PageView 为 3万左右。网站A... 阅读全文
摘要:
DataSet用法详细一、特点介绍1、处理脱机数据,在多层应用程序中很有用。2、可以在任何时候查看DataSet中任意行的内容,允许修改查询结果的方法。3、处理分级数据4、缓存更改5、XML的完整性:DataSet对象和XML文档几乎是可互换的。二、使用介绍1、创建DataSet对象:DataSetds = new DataSet("DataSetName");2、查看调用SqlDataAdapter.Fill创建的结构da.Fill(ds,"Orders");DataTabletbl = ds.Table[0];foreach(DataColumnco 阅读全文