![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
技巧心得
xiangdejun
这个作者很懒,什么都没留下…
展开
-
C#2005 动态修改配置参数
DataSet dx = new DataSet();dx.ReadXml(Application.ExecutablePath + ".config", XmlReadMode.InferSchema);DataRow[] dtTmp = dx.Tables["setting"].Select("name = DepartName");dtTmp[0]["Value"] = t原创 2009-02-20 17:44:00 · 266 阅读 · 0 评论 -
C# 窗体点击关闭按钮时最小化到托盘
private void form1_FormClosing(object sender, FormClosingEventArgs e){ if (e.CloseReason == CloseReason.UserClosing) { e.Cancel = true; this.Hide(); TaskIcon.BalloonT原创 2010-01-12 13:37:00 · 574 阅读 · 0 评论 -
查询SQL服务器所有数据库名
String strServerName = "服务器名或IP";String strUserID = "数据库用户名";String strPSW= "数据库密码";DataTable DBNameTable = new DataTable();OleDbConnection Connection = new OleDbConnection(String.For原创 2010-01-12 13:39:00 · 669 阅读 · 0 评论 -
SQL Server 2005 中 ROW_NUMBER() 函数的简单用法
表名:d_ClientInfo语句作用:取出第100-120条数据 SELECT *FROM (SELECT ROW_NUMBER() OVER (ORDER BY ClientID ASC) AS ROWID, * FROM d_ClientInfo) AS tmpTableWHERE ROWID BETWEEN 100 AND 120 此函数原创 2010-01-12 13:41:00 · 236 阅读 · 0 评论