2008年10月22日

举例说明数据库一、二、三及BCNF范式

摘要: 数据库的设计范式是数据库设计所需要满足的规范,满足这些规范的数据库是简洁的、结构明晰的,同时,不会发生插入(insert)、删除(delete)和更新(update)操作异常。反之则是乱七八糟,不仅给数据库的编程人员制造麻烦,而且面目可憎,可能存储了大量不需要的冗余信息。 设计范式是不是很难懂呢?非也,大学教材上给我们一堆数学公式我们当然看不懂,也记不住。所以我们很多人就根本不按照范式来设计... 阅读全文

posted @ 2008-10-22 17:43 那片云 阅读(609) 评论(0) 推荐(0) 编辑

数据库表及字段命名、设计规范

摘要: 1.数据库表及字段命名、设计规范 1.1数据库表的命名规范: a.表的前缀应该用系统或模块的英文名的缩写(全部大写或首字母大写)。如果系统功能简单,没有划分为模块,则可以以系统英文名称的缩写作为前缀,否则以各模块的英文名称缩写作为前缀。例如:如果有一个模块叫做BBS(缩写为BBS),那么你的数据库中的所有对象的名称都要加上这个前缀:BBS_ + 数据库对象名称,BBS_Customer... 阅读全文

posted @ 2008-10-22 14:47 那片云 阅读(993) 评论(0) 推荐(0) 编辑

2008年7月31日

在SQL语句中如何将text或ntext类型字段数据中的回车符替换成字符

摘要: --ntext字段的替换处理示例--全表替换 --测试数据 create table test(id varchar(3),txt ntext) insert into test select 1,abc我是中a国人 deaf;sdakj21432 我要处理中文 go -... 阅读全文

posted @ 2008-07-31 10:51 那片云 阅读(1254) 评论(0) 推荐(0) 编辑

2008年7月18日

NET 获取局域网内所有SQL Server 服务器列表

摘要: using System; using System.ComponentModel; using System.Windows.Forms; using SQLDMO; using Application = System.Windows.Forms.Application; namespace SQLDMOSample { /**//// /// Summary descri... 阅读全文

posted @ 2008-07-18 18:22 那片云 阅读(210) 评论(0) 推荐(0) 编辑

2008年7月16日

利用ADO.NET将SQL表导出到Excel中

摘要: #region SQL数据库导入到Excel表中(运用ADO.NET) /// /// 单表导入Excel单页中 /// /// 表名 /// public static void ExportDataByQueryTableA(string dtname,int index,Label msg) { long totalCount=0; lo... 阅读全文

posted @ 2008-07-16 15:25 那片云 阅读(954) 评论(1) 推荐(0) 编辑

2008年7月10日

C#程序中控制Windows的任务栏

摘要: 如果你要在你的C#程序中控制Windows的任务栏,有两个Windows api 可以帮到你!他们就是 FindWindowA 和 ShowWindow C#中声明如下: using System.Runtime.InteropServices; [DllImport("user32.dll", EntryPoint = "FindWindowA")] public static extern ... 阅读全文

posted @ 2008-07-10 17:51 那片云 阅读(339) 评论(0) 推荐(0) 编辑

Microsoft.Office.Interop.Excel命名空间

摘要: Microsoft.Office.Interop.Excel命名空间要添加什么引用 在visual Studio 2005命令提示工具中,定位到Excel安装目录,运行“TlbImp EXCEL.EXE”命令,把Excel.exe编译为Excel.dll。这一步会... 阅读全文

posted @ 2008-07-10 14:51 那片云 阅读(5442) 评论(3) 推荐(0) 编辑

C#将Excel表格中的数据导入SQL数据库

摘要: private static string _filePath=string.Empty ; #region Excel导入SQL数据库 /// /// 获取Excel数据表列表 /// /// public static ArrayList GetExcelTables() { //将Excel架构存入数据里 System.Data.DataTabl... 阅读全文

posted @ 2008-07-10 13:37 那片云 阅读(4138) 评论(0) 推荐(0) 编辑

2008年7月9日

Excel管理的一个类

摘要: namespace LiFengguo.ExcelManage { /**//// /// ExcelManage 的摘要说明。 /// public class ExcelManage { public ExcelManage() { } /**//// /// 获取Ex... 阅读全文

posted @ 2008-07-09 19:02 那片云 阅读(286) 评论(0) 推荐(0) 编辑

2008年7月8日

一个处理XML文件的类

摘要: using System; using System.Text; using System.IO; using System.Xml; using System.Data; namespace XmlBook.Com.Sem.Tools { /// /// 版权: Copyright by SEM IT Department /// 版本: 0.0.1 /// 文件: XmlBook.C... 阅读全文

posted @ 2008-07-08 13:41 那片云 阅读(205) 评论(0) 推荐(0) 编辑

导航