摘要:没有identity主健时 Code Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->DECLARE @iden int DECLARE @iKey int SELECT 0 AS aa ,COMMENT_ID,COMMENT_DES INT...
阅读全文
文章分类 - other
摘要:/**//// /// 序列化为二进制字节数组 /// /// 要序列化的对象 /// 字节数组 public static byte[] SerializeBinary(object request) { System.Runtime.Serialization.Formatters.Bina...
阅读全文
摘要:/**//**//**//// /// 转全角的函数(SBC case) /// /// 任意字符串 /// 全角字符串 /// ///全角空格为12288,半角空格为32 ///其他字符半角(33-126)与全角(65281-65374)的对应关系是:均相差65248 ...
阅读全文
摘要:declare @stor_id varchar(20)declare cur_s cursor for select stor_id from sales group by stor_idopen cur_sfetch cur_s into @stor_idwhile @@fetch_status = 0begin print @stor_id fetch cur_s into @stor_id...
阅读全文
摘要:总结一下我的问题: 无论是IIS 还是APACHE都是再运行一段时间后产生频繁停止服务,解决问题的唯一方法是1,重启web服务 2 重启服务器! 杀毒、重装IIS 重装APACHE 都无济于事。排除 病毒、网络、软件(IIS APACHE)等问题 后只剩下服务器本身。(要排除这些问题我做了N多尝试吖 可怜) 分析:系统服务都需要内存、CPU等支持更何况WEB服务,web服务是根据访问量的大小自动...
阅读全文
摘要:从Chinese_PRC_CS_AS改为:Chinese_PRC_CI_AS 1.alter database [dbname] collate Chinese_PRC_CI_AS如此语句有误,重启SQL服务器即可. 2.数据库组上属性->server setting->第一个Checkbox选上..(完成后还原) update syscolumns set collationid = 53284...
阅读全文
摘要:"从其他页面传过来"#region "从其他页面传过来" if (null != Request.ServerVariables["HTTP_REFERER"] && Request.ServerVariables["HTTP_REFERER"] != Request.ServerVariables["URL"]) { ...
阅读全文
摘要:select convert(varchar(10),getdate(),111) --结果为2006/08/29 SQL Server 中截取日期的日期部分:print convert(varchar(10),getdate(),120) --2006-09-22 SQL Server 中截取日期的时间部分:print convert(varchar(8),getdate(),108) --...
阅读全文
摘要:c#中 怎样将string转化为 把每个char用2个byte表示?而不是一个byte byte[] sender = System.Text.Encoding.ASCII.GetBytes("abcd".ToCharArray()) ; 结果为sender中为{97,98,99,100} 但是要是将"abcd"改为中文,比如"你好" 结果就是{63,63}.每个汉字只用了一个byte表示,显然不...
阅读全文
摘要:/Files/commonname/OfficeControl.rar 下载压缩文档即可..注意MakerCaption,MakerKey,ProductCaption,ProductKey属性 无标题页
阅读全文
摘要:症状 当您尝试运行 Microsoft Windows Server 2003 或 Microsoft Windows XP, 计算机上安装大 MicrosoftWindowsInstaller .msi) 程序包或大型 MicrosoftWindowsInstaller 修补程序 (.msp) 程序包您会收到以下错误信息: 错误 1718。 FileName 文件被数字签名策略拒绝。 ...
阅读全文
摘要:select CONVERT(varchar, getdate(), 120 ) 2004-09-12 11:06:08 select replace(replace(replace(CONVERT(varchar, getdate(), 120 ),\'-\',\'\'),\' \',\'\'),\':\',\'\') 20040912110608 select CONVERT(varchar(...
阅读全文
摘要:标题 (MS SQL Server)SQL语句导入导出大全 关键字 (MS SQL Server)SQL语句导入导出大全 出处 选择自 lchzh 的 Blog SQL语句导入导出大全 /******* 导出到exc...
阅读全文
摘要:--清除日志 方法1、 --在查询分析器,选中所要清理日志的数据库,执行如下SQL backup log 数据库名 with no_log DBCC SHRINKFILE ( 日志文件名或日志文件ID,要缩小的目标大小) 在当前数据库下 select fileid,groupid...
阅读全文
摘要:byte[] bPhoto = yourBytes;if(bPhoto!=null){//Read dataMemoryStream stream=new MemoryStream(bPhoto,true);stream.Read(bPhoto,0,bPhoto.Length);// Create a bitmap from the streamBitmap bmp = new Bitmap(st...
阅读全文

浙公网安备 33010602011771号