摘要: 转自http://technet.microsoft.com/zh-cn/library/ms162132.aspxSQL Server 身份验证连接到 SQL Server 的实例public static void Main() { String sqlServerLogin = "user_id"; String password = "pwd"; String instanceName = "instance_name"; String remoteSvrName = "remote_server_name" 阅读全文
posted @ 2012-03-05 19:13 闹铃2009 阅读(432) 评论(0) 推荐(0) 编辑
摘要: 转自http://hi.baidu.com/jebeljebel/blog/item/d125270f091857eaaa645711.html不同的操作系统,桌面的路径不尽相同,而且随着用户安装位置的不同也不同。C#可以从Windows注册表读取得到用户的特殊文件夹(桌面、收藏夹等等)的位置。代码如下:代码Code highlighting produced by Actipro CodeHig... 阅读全文
posted @ 2010-05-24 10:53 闹铃2009 阅读(556) 评论(1) 推荐(1) 编辑
摘要: 起因:SQL Server数据库的默认值再还原数据库时,莫名其妙的没了。没找到怎么导出数据中的默认。索性写个小程序生成脚本代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Collections.Ge... 阅读全文
posted @ 2010-05-24 10:49 闹铃2009 阅读(210) 评论(0) 推荐(1) 编辑
摘要: [代码] 阅读全文
posted @ 2009-09-23 00:10 闹铃2009 阅读(346) 评论(1) 推荐(0) 编辑
摘要: 我最喜欢看的.NET设计模式系列文章 阅读全文
posted @ 2009-02-08 18:59 闹铃2009 阅读(289) 评论(0) 推荐(0) 编辑
摘要: sql 阅读全文
posted @ 2008-12-27 16:07 闹铃2009 阅读(278) 评论(0) 推荐(0) 编辑