摘要: sometimes, we have no rights to drop the whole database in SQL SERVER. But we still want to clear the the database and recreate tables/constraints/views/functions/store procedure etc.The following is the script. use at your risk. 1 /* Drop all non-system stored procs */ 2 DECLARE @name VARCHAR(128.. 阅读全文
posted @ 2013-11-08 17:32 Cathy Lee 阅读(254) 评论(0) 推荐(0) 编辑
摘要: The original article comes from :http://www.codeproject.com/Articles/14957/Web-Services-in-C-and-NetWeb Services provide the most flexible infrastructure for creating distributed computing applications. A web service in its simplest form is an object oriented class residing on a web server, and allo 阅读全文
posted @ 2013-10-17 18:02 Cathy Lee 阅读(296) 评论(0) 推荐(0) 编辑
摘要: this article comes from: http://www.codeproject.com/Articles/33769/Basics-of-LINQ-Lamda-ExpressionsIntroductionHi Friends, Its a long time since I have last written a Article. Since then, I have learned a lot of things and its time to share them with you. .NET is getting richer and richer with new c 阅读全文
posted @ 2013-10-14 16:12 Cathy Lee 阅读(296) 评论(0) 推荐(0) 编辑
摘要: Always has some confusion about set values to ComboBox, few minutes ago,I spent some time on this. Figure it out and blog this.The following is part of the code: 1 private string[] GetName() 2 { 3 string[] strName={"Allen","Cathy","Annie","Eric","Sinon&qu 阅读全文
posted @ 2013-10-11 15:09 Cathy Lee 阅读(242) 评论(0) 推荐(0) 编辑
摘要: In this article I have explained about how to create set up file with MS Access Database, Uninstall option, etc. Each steps I have clearly explained in this article with screen shot. First step (create windows application) to last step Uninstall option all are covered in this article.DescriptionCrea 阅读全文
posted @ 2013-09-25 22:47 Cathy Lee 阅读(328) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.cnblogs.com/KissKnife/archive/2008/11/17/1335271.html1、ADO.NET相关对象一句话介绍1)DataAdapter:DataAdapter实际是一个SQL语句集合,因为对Database的操作最终需要归结到SQL语句。2)Dataset:DataSet可以理解成若干DataTable的集合,DataSet在内存里面维护一个表集合包括表间关系。对于.NET Framework 2.0之前的版本,DataSet在ADO.NET中拥有至关重要的作用,但在其后的版本中,由于DataTable类的完备(例如与XML相关的几 阅读全文
posted @ 2013-04-29 17:55 Cathy Lee 阅读(319) 评论(0) 推荐(0) 编辑
摘要: 转自:http://blog.csdn.net/21aspnet/article/details/1539200如何创建强命名程序集(StrongNameAssembly)创建一个强命名程序集首先需要获得一个用强命名实用工具(StrongNameUtility,即SN.exe,.NETSDK自带)产生的密钥。下面简要介绍一下SN.exe的一些用法。要产生一个公钥/私钥对:a)SN–kMyCompany.Keys该命名告诉SN.exe创建一个名为MyCompany.keys的文件。MyCompany.keys文件将包含以对以二进制格式存储的公有密钥和私有密钥。b)查看公有密钥:首先生成一个只包含 阅读全文
posted @ 2013-04-26 10:00 Cathy Lee 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 转自:http://blog.csdn.net/gideal_wang/article/details/4316691一 原理区别 一般在浏览器中输入网址访问资源都是通过GET方式;在FORM提交中,可以通过Method指定提交方式为GET或者POST,默认为GET提交Http定义了与服务器交互的不同方法,最基本的方法有4种,分别是GET,POST,PUT,DELETE URL全称是资源描述符,我们可以这样认为:一个URL地址,它用于描述一个网络上的资源,而HTTP中的GET,POST,PUT,DELETE就对应着对这个资源的查 ,改 ,增 ,删 4个操作。到这里,大家应该有个大概的了解了,. 阅读全文
posted @ 2013-04-25 11:13 Cathy Lee 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.cnblogs.com/know-life-death/archive/2011/07/04/2097841.html问题缘起: Release 模式下编译发布WPF项目,会生成[*.vshost.exe] & [*.vshost.exe.config]文件。当需要临时手动修改[*.config]中的一些配置信息时,[*.vshost.exe.config] & [*.exe.config]是否都要修改?[*.vshost.exe] & [*.vshost.exe.config]是否可以删除?宿主进程 [*.vshost.exe] & 阅读全文
posted @ 2013-04-22 16:26 Cathy Lee 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 转自:http://blog.csdn.net/zhoufoxcn/article/details/4402999在实例化Thread的实例,需要提供一个委托,在实例化这个委托时所用到的参数是线程将来启动时要运行的方法。在.net中提供了两种启动线程的方式,一种是不带参数的启动方式,另一种是带参数的启动的方式。不带参数的启动方式如果启动参数时无需其它额外的信息,可以使用ThreadStart来实例化Thread,如下面的代码:using System; using System.Collections.Generic; using System.Text; usi... 阅读全文
posted @ 2013-04-22 13:54 Cathy Lee 阅读(148) 评论(0) 推荐(0) 编辑