摘要: Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->publicstaticDataTableGetPagedTable(DataTabledt,... 阅读全文
posted @ 2009-02-03 16:47 陈旭85 阅读(2128) 评论(3) 推荐(0) 编辑
摘要: 描述:根据表t1.t2的ID关联,将表2的字段2更新到表1的字段1上 语法: update t1 set 字段1=t2.字段2 from t2 where t1.ID=t2.ID 阅读全文
posted @ 2008-11-24 11:38 陈旭85 阅读(1466) 评论(0) 推荐(0) 编辑
摘要: sqlcmd -s 127.0.0.1 -i g:1.sql -U sa -P 123456 阅读全文
posted @ 2008-08-20 10:49 陈旭85 阅读(503) 评论(0) 推荐(0) 编辑
摘要: Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->/// ///Copyright(C)///文件名:DataMatch.cs ///版本:ve... 阅读全文
posted @ 2008-08-09 09:06 陈旭85 阅读(251) 评论(0) 推荐(0) 编辑
摘要: Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->publicboolExecuteCommand(ArrayListSqlList) { c... 阅读全文
posted @ 2008-08-09 08:59 陈旭85 阅读(240) 评论(0) 推荐(0) 编辑
摘要: Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->//关键代码 usingSystem.Net.WebRequestMethods.Ftp; ... 阅读全文
posted @ 2008-08-09 08:56 陈旭85 阅读(3519) 评论(1) 推荐(1) 编辑
摘要: net use \\192.168.1.2 "" /user:"Administrator" private string CmdPing(string strIp) { Process p = new Process(); p.StartInfo.FileName = "cmd.exe... 阅读全文
posted @ 2008-07-25 09:45 陈旭85 阅读(341) 评论(0) 推荐(0) 编辑
摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->usingSystem; usingSystem.Collections.Generic; usingS... 阅读全文
posted @ 2008-07-21 10:42 陈旭85 阅读(943) 评论(0) 推荐(0) 编辑
摘要: 当设计表的时候没有建组合字段唯一约束,以后需要增加这一约束时,却发现表里已经有了很多重复记录了。 请看看我用的去掉表里组合字段重复的记录方法: 假设原始表名为source_table,字段名1为field_name1,字段名2为field_name2。 (当然稍加修改也可以用到三个及以上组合字... 阅读全文
posted @ 2008-06-11 17:09 陈旭85 阅读(966) 评论(0) 推荐(0) 编辑
摘要: privatevoidbtn_send_Click(objectsender,EventArgse) { byte[]bt=System.Text.Encoding.Default.GetBytes(this.txt_msg.Text); TcpClienttc=newTcpClient(this... 阅读全文
posted @ 2008-05-13 15:09 陈旭85 阅读(675) 评论(0) 推荐(0) 编辑