C# 字符串加密

摘要: //默认密钥向量 private static byte[] Keys = { 0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF }; /// <summary>/// DES加密字符串 /// </summary> /// <param name="encryptString">待加密的字符串</param> /// <param name="encryptKey">加密密钥,要求为8位</param> /// <returns&g 阅读全文
posted @ 2013-01-03 15:47 《红猪》 阅读(243) 评论(0) 推荐(0) 编辑

Sql server 查询锁表和接锁表

摘要: sql server 查询锁表select request_session_id spid,OBJECT_NAME(resource_associated_entity_id) as tableName ,*from sys.dm_tran_locks where resource_type='OBJECT' and OBJECT_NAME(resource_associated_entity_id) is not nullsql server 解锁表declare @spid int Set @spid = 54 --锁表进程declare @sql varchar(1000 阅读全文
posted @ 2012-12-17 10:15 《红猪》 阅读(2897) 评论(0) 推荐(1) 编辑