勤学如春起之苗不见其增日有所长,辍学如磨刀之石不见其损日有所亏
摘要: static void SubTest() { DateTime beforDT = System.DateTime.Now; //耗时巨大的代码 DateTime afterDT = System.DateTime.Now; TimeSpan ts = afterDT.Subtract(beforDT); ... 阅读全文
posted @ 2019-01-15 13:32 TheClound 阅读(2238) 评论(0) 推荐(0) 编辑
摘要: 例如: 2018-12-30 到 2019-01-05获取的时间都是 2018-12-31(当前时间星期一具体时间) 阅读全文
posted @ 2019-01-03 16:02 TheClound 阅读(1241) 评论(0) 推荐(0) 编辑
摘要: 新建silverlight项目失败,提示 未将对象设置到实例 的解决办法: 1.打开 visual studio 命令提示 输入一下命令:2.devenv /resetskippkgs ,这条命令会启动visual stuio ;关闭visual studio,然后输入下面的命令:3.devenv 阅读全文
posted @ 2018-12-05 15:35 TheClound 阅读(242) 评论(0) 推荐(0) 编辑
摘要: /// /// Post接口方法 /// /// /// /// public static string PostHttpRequest(string requestUri, string json, IDbSqlService dbSqlService, Int32 tim... 阅读全文
posted @ 2018-06-22 11:29 TheClound 阅读(390) 评论(0) 推荐(0) 编辑
摘要: --查找存储过程定义sp_helptext 'op.uspgetdepends'--存储过程属性sp_help 'op.uspgetdepends' 阅读全文
posted @ 2018-06-13 09:49 TheClound 阅读(215) 评论(0) 推荐(0) 编辑
摘要: var server = HttpContext.Current.Server; var jsFiles = System.IO.Directory.GetFiles(server.MapPath("~/Scripts/jsPlugs"),"*.js", SearchOption.AllDirectories); var applicati... 阅读全文
posted @ 2017-12-16 22:19 TheClound 阅读(430) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2017-12-15 17:30 TheClound 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 第一行转换成第二行格式 select b.FactoryName,isnull(M1,0) M1,isnull(M2,0) M2,isnull(M3,0) M3,isnull(M4,0) M4,isnull(M5,0) M5,isnull(M6,0) M6,isnull(M7,0) M7,isnul 阅读全文
posted @ 2017-12-14 16:41 TheClound 阅读(325) 评论(0) 推荐(0) 编辑
摘要: ALTER proc [op].[uspGetDepends]( @StrName varchar(100), @Type varchar(10) = 'all')asbegin set nocount on --查询非用户表,即函数、存储过程、视图、约束等等。 select schema_name 阅读全文
posted @ 2017-10-25 13:21 TheClound 阅读(388) 评论(0) 推荐(0) 编辑
摘要: //查询目前系统正在运行的sqlSELECT [Spid]=session_Id, [ecid], [Database]=DB_NAME(sp.dbid), [User] = nt_username, [Status] = er.status, [Wait] = wait_type, [Individual Query]= SUBSTRI... 阅读全文
posted @ 2017-09-14 11:17 TheClound 阅读(124) 评论(0) 推荐(0) 编辑