摘要: /************************************************************************************ 功能说明:XML处理基类* 作者:;* 版本:V0.1(C#2.0);时间:2006-12-13** *******************************************************************************/using System;using System.Data;using System.Configuration;using System.Web;using Sy 阅读全文
posted @ 2014-01-22 17:35 weikai 阅读(133) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/zhengguangyi130/article/details/8062418获取数据库中所有的表SELECT SysObjects.name AS Tablename FROM sysobjects WHERE xtype = 'U'获取数据库中所有表的列名SELECT SysColumns.name AS Columnsname, SysObjects.name AS Tablename FROM SysObjects, SysColumns WHERE Sysobjects.Xtype='u' AND Sysobj 阅读全文
posted @ 2014-01-22 14:38 weikai 阅读(452) 评论(0) 推荐(0) 编辑
摘要: http://paulfzm.iteye.com/blog/394886C#代码//////获取汉字的首字母和全拼///publicclassChineseCode{protectedstring_CnTxt;protectedstring_EnTxt;//////要获取字母的汉字///publicstringCnTxt{get{return_CnTxt;}set{_CnTxt=value;}}//////汉字的首字母///publicstringEnTxt{get{return_EnTxt;}set{_EnTxt=value;}}//////构造方法///publicChineseCode( 阅读全文
posted @ 2014-01-22 12:25 weikai 阅读(540) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/cpcpc/article/details/7029763下面给出一个在网上下载的一个已经封装好的类[csharp]view plaincopyusingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Web;usingSystem.Web.UI.WebControls;usingSystem.Web.UI;usingSystem.Data;usingSystem.Text;usingSystem.Globalization;usingSystem.IO;names 阅读全文
posted @ 2014-01-22 11:28 weikai 阅读(2056) 评论(0) 推荐(0) 编辑
摘要: 一台服务器上所有数据库(也可能是部分数据库)的大小是我们经常需要了解的,它不仅能让我们知道目前数据库使用磁盘的比例,而且定期搜集这些信息,还能了解数据库一段时间的数据增量,更为常用的是在做数据迁移和升级时,方便规划新服务器磁盘容量。这里介绍三种统计数据库大小的方法:方法一:使用 sp_spaceuseddeclare @dbname varchar(100) declare db_cur cursor forselect name from sys.sysdatabases where dbid>4 and name'distribution'open db_curfet 阅读全文
posted @ 2014-01-22 09:39 weikai 阅读(593) 评论(0) 推荐(0) 编辑