03 2013 档案

摘要: 阅读全文
posted @ 2013-03-16 10:39 Kenyep 阅读(12000) 评论(1) 推荐(0)
摘要:Winform界面设计:放置一个TextBox控件(命名为:txtPath),两个按钮控件(一个btnSelect,一个btnStart),一个显示文件列表Label控件(lblFileList),还有一个重要的folderBrowserDialog1控件。 阅读全文
posted @ 2013-03-16 10:12 Kenyep 阅读(458) 评论(0) 推荐(0)
摘要:1 //获取内网IP 2 private string GetInternalIP() 3 { 4 IPHostEntry host; 5 string localIP = "?"; 6 host = Dns.GetHostEntry(Dns.GetHostName()); 7 foreach (IPAddress ip in host.AddressList) 8 { 9 if (ip.AddressFamily.ToString() == "InterNetwork")10 {11 local... 阅读全文
posted @ 2013-03-16 09:47 Kenyep 阅读(17156) 评论(3) 推荐(2)
摘要:创建链接服务器 exec sp_addlinkedserver 'ITSV ', ' ', 'SQLOLEDB ', '远程服务器名或ip地址 ' exec sp_addlinkedsrvlogin 'ITSV ', 'false ',null, '用户名 ', '密码 ' --查询示例 select * from ITSV.数据库名.dbo.表名 --导入示例 select * into 表 from ITSV.数据库名.dbo.表名 --以后不再使用时删除链接服务器 exec sp_dropserver 'ITSV ', 'droplogins ' 阅读全文
posted @ 2013-03-02 14:57 Kenyep 阅读(17091) 评论(2) 推荐(1)