冠冕堂皇

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

06 2012 档案

摘要:1、获取进程信息 代码:Process[] processes = Process.GetProcesses(); long totalMemery = 0; StringBuilder sbResult = new StringBuilder(); foreach (Process process in processes) { ... 阅读全文
posted @ 2012-06-07 18:10 冠冕堂皇 阅读(210) 评论(0) 推荐(0)

摘要:1、StopWatch(秒表)类提供一组方法和属性,可用于准确地测量运行时间。Provides a set of methods and properties that you can use to accurately measure elapsed time.在典型的 Stopwatch 方案中,先调用 Start 方法,然后调用 Stop 方法,最后使用 Elapsed 属性检查运行时间。S... 阅读全文
posted @ 2012-06-06 12:57 冠冕堂皇 阅读(244) 评论(0) 推荐(0)

摘要:1、SSPISecurity Support Provider InterfaceSQL SERVER的集成验证方式。Integrated Security=SSPI与Integrated Security=true是一个意思。都是采用windows身份验证。详见:http://hi.baidu.com/yjh6016/item/1eb9be9978718edb7a7f01412、lambda 运算符["=>"] delegate void OutHandler(out int x); static void Print(OutHandler test) { int 阅读全文
posted @ 2012-06-05 18:20 冠冕堂皇 阅读(165) 评论(0) 推荐(0)

摘要:问题描述背景:想用本机WIN7连接远程xp的sqlserver。报错: 标题: 查找服务器上的数据库:在与 SQL Server 建立连接时出现与网络相关的或特定于实例的错误。未找到或无法访问服务器。请验证实例名称是否正确并且 SQL Server 已配置为允许远程连接。 (provider: SQL 网络接口, error: 26 - 定位指定的服务器/实例时出错) (Microsoft SQL... 阅读全文
posted @ 2012-06-01 16:46 冠冕堂皇 阅读(413) 评论(0) 推荐(0)