摘要: 二 序列化XML文件与实体类的互相转换一.将XML文件反序列化为实体类对象 1. 通常程序的配置信息都保存在程序或者网站的专门的配置文件中(App.config/web.config)。但是现在为了演示XML序列化和反序列化,将配置信息保存在一个XML文件(config.xml)中,通过反序列化将... 阅读全文
posted @ 2015-04-23 13:57 Adam_Li 阅读(872) 评论(0) 推荐(0) 编辑
摘要: //Create our own namespaces for the outputXmlSerializerNamespaces ns = new XmlSerializerNamespaces ();//Add an empty namespace and empty valuens.Add (... 阅读全文
posted @ 2015-04-23 09:56 Adam_Li 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 给table新增水平滚动条 序号 地市 区县 门店名称 对应直供客户名称 虚拟账号 门店负责人 联系方... 阅读全文
posted @ 2014-12-31 16:12 Adam_Li 阅读(1620) 评论(0) 推荐(0) 编辑
摘要: CREATE FUNCTION [dbo].[f_Removezimuhanzishuzi] ( @str VARCHAR(500) ) RETURNS VARCHAR(500) AS BEGIN -- '%[1-9]%' 所有數字 -- '%[A... 阅读全文
posted @ 2014-12-31 16:11 Adam_Li 阅读(5449) 评论(0) 推荐(0) 编辑
摘要: --生成随机编号的函数CREATE FUNCTION [dbo].[f_RANDBH](@BHLen int)RETURNS varchar(50)ASBEGIN DECLARE @r varchar(50) IF NOT(ISNULL(@BHLen,0) BETWEEN 1 AND 50) SE... 阅读全文
posted @ 2014-12-31 16:10 Adam_Li 阅读(1269) 评论(0) 推荐(0) 编辑
摘要: create proc sp_backupdatabase@bak_path nvarchar(4000)='' --备份路径;,@baktype int = null --备份类型为全备,1为差异备,2为日志备份,@type int = null ... 阅读全文
posted @ 2014-12-31 16:09 Adam_Li 阅读(243) 评论(0) 推荐(0) 编辑
摘要: ---------------------------------------------------------------------------------- -- Author : htl258(Tony) -- Date : 2010-06-25 22:23:18 -- Version... 阅读全文
posted @ 2014-12-31 16:08 Adam_Li 阅读(800) 评论(0) 推荐(0) 编辑
摘要: --更新序号,最大值+1的方式自增DECLARE @maxvalue INT SELECT @maxvalue=ISNULL(MAX(SEQUENCE),0) FROM TBL_MMDM WHERE TYPE='Product Category'UPDATE TBL_MMDM SET ... 阅读全文
posted @ 2014-12-31 16:07 Adam_Li 阅读(810) 评论(0) 推荐(0) 编辑
摘要: with cte as( select groupname,GroupId from Sys_Group where GroupId in( select ReleaseRangeId from Sys_Notice_Permission where ReleaseRangeType=2 and N... 阅读全文
posted @ 2014-12-31 16:04 Adam_Li 阅读(664) 评论(0) 推荐(0) 编辑
摘要: --查询死锁select request_session_id spid,OBJECT_NAME(resource_associated_entity_id) tableName from sys.dm_tran_locks where resource_type='OBJECT'--删除死锁dec... 阅读全文
posted @ 2014-12-31 16:03 Adam_Li 阅读(937) 评论(0) 推荐(0) 编辑