博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2015年1月16日

摘要: 方法一:1 if exists (select * from tempdb.dbo.sysobjects where id = object_id(N'tempdb..#tempcitys') and type='U')2 drop table #tempcitys注意tempdb后面是两个.... 阅读全文
posted @ 2015-01-16 16:41 权 阅读(4262) 评论(0) 推荐(1)

2015年1月9日

摘要: 一开始报“出现了内部错误” 解决方法是方法一var cer = new X509Certificate(certpath, password,X509KeyStorageFlags.MachineKeySet);方法二iis 找到部署的站点应用连接池,右键高级设置,找到“加载用户配置文件”改为tru... 阅读全文
posted @ 2015-01-09 10:23 权 阅读(3991) 评论(9) 推荐(5)

2015年1月8日

摘要: MSSQL 判断一个时间段是否在另一个时间段内! 1 CREATE TABLE #B 2 ( 3 MeetingRoom int, 4 BeginTime datetime, 5 EndTime datetime 6 ) 7 insert into #B 8 select 1,'2... 阅读全文
posted @ 2015-01-08 15:16 权 阅读(3966) 评论(0) 推荐(0)

摘要: 1、在界面创建一个新的TBPwdTemp并设置TextMode=“SingleLine”,visible=“false”,将数据库密码值传给该TextBox;2、然后分别用this.TBPwd.Attributes.Add("value", this.TBPwdTemp.Text);this.TBP... 阅读全文
posted @ 2015-01-08 11:12 权 阅读(548) 评论(0) 推荐(0)

2014年12月14日

摘要: 打开项目文件就VS2012就崩溃解决方案:步骤1:开始-->所有程序-->Microsoft Visual Studio 2012-->Visual Studio Tools-->VS2012 开发人员命令提示(以管理员方式运行)步骤2:运行devenv /Safemode步骤3:正常打开VS,也能... 阅读全文
posted @ 2014-12-14 11:21 权 阅读(461) 评论(0) 推荐(1)

2014年12月10日

摘要: 开源类库地址https://github.com/sethyates/urlrewriter/find/master 1 2 3 4 5 6 7 ... 阅读全文
posted @ 2014-12-10 16:09 权 阅读(236) 评论(0) 推荐(0)

2014年11月6日

摘要: 实际demo: 跨库更新 阅读全文
posted @ 2014-11-06 17:19 权 阅读(7115) 评论(0) 推荐(0)

2014年11月5日

摘要: 阅读全文
posted @ 2014-11-05 09:45 权 阅读(140) 评论(0) 推荐(0)

2014年10月21日

摘要: 冒泡算法C#namespace数组排序{classProgram{staticvoidMain(string[]args){inttemp=0;int[]arr={23,44,66,76,98,11,3,9,7};#region该段与排序无关Console.WriteLine("排序前的数组:");... 阅读全文
posted @ 2014-10-21 14:19 权 阅读(372) 评论(0) 推荐(0)

2014年10月20日

摘要: 1 一.定义表变量 2 3 DECLARE @T1 table 4 ( 5 UserID int , 6 UserName nvarchar(50), 7 CityName nvarchar(50) 8 ); 9 10 insert into @T1 (UserID,UserName,City... 阅读全文
posted @ 2014-10-20 14:41 权 阅读(5568) 评论(1) 推荐(0)