摘要: http://www.cnblogs.com/Olive116/p/3355840.html 阅读全文
posted @ 2016-03-04 14:34 anranstl 阅读(230) 评论(0) 推荐(0) 编辑
摘要: SET NOCOUNT ON BEGIN TRY BEGIN TRANSACTION --your logic COMMIT TRANSACTION END TRY BEGIN CATCH IF XACT_STATE() <> 0 --当前请求有活动的用户事务 BEGIN ROLLBACK TRAN 阅读全文
posted @ 2016-03-04 14:22 anranstl 阅读(195) 评论(0) 推荐(0) 编辑
摘要: private void CallTaxonomyNodeAttributeApi(TaxonomyNodeAttribute taxonomyNodeAttribute) { string apiUri = string.Format(nodeAttributeURL, taxonomyNodeA 阅读全文
posted @ 2016-03-04 14:06 anranstl 阅读(2210) 评论(0) 推荐(0) 编辑
摘要: USE DBName GO WHILE ( 1 = 1 ) BEGIN UPDATE TOP ( 1000 ) dbo.TableName SET Filter= '' WHERE Filter IS NULL IF @@ROWCOUNT < 1000 BREAK WAITFOR DELAY '00 阅读全文
posted @ 2016-03-04 13:12 anranstl 阅读(743) 评论(0) 推荐(0) 编辑
摘要: Kendo UI 介绍: http://docs.telerik.com/kendo-ui/introduction 30天试用版地址:https://www.telerik.com/download-trial-file/v2/kendo-ui 阅读全文
posted @ 2016-03-04 11:10 anranstl 阅读(144) 评论(0) 推荐(0) 编辑
摘要: Resharper的永久有效的license: cfed Wx6BHWsaHRZ9R5AU+7BF+ED1cruTlceD 阅读全文
posted @ 2016-03-04 11:09 anranstl 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 安装nodejs:https://nodejs.org/en/ 安装git:http://www.git-scm.com/download/ 使用git cmd安装npm,命令: git clone --recursive git://github.com/isaacs/npm.git (注意这个可 阅读全文
posted @ 2016-03-04 11:09 anranstl 阅读(250) 评论(0) 推荐(0) 编辑
摘要: <td style="text-align: center;" bind="{fieldName:'$.UserTypeName', attribute: 'innerText'}"></td> <td style="text-align: center;" bind="{fieldName:'$. 阅读全文
posted @ 2016-03-04 11:08 anranstl 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 常见状态码: 503 服务器过载,不能对请求进行服务 501 服务器不支持完成请求要的某项功能 500 服务器内部发生错误(即:代码错误) 404 请求资源不可用(即:请求路径错误) 204 请求成功,但未发布新内容 202 请求被接受,但处理尚未成功 201 请求成功,并在服务器上创建资源 200 阅读全文
posted @ 2016-03-04 11:07 anranstl 阅读(94) 评论(0) 推荐(0) 编辑
摘要: 首先是寺庙吧,拉萨的寺庙实在是太多了,但我认识那个姑娘跟我说的是出名的寺庙其实都不在拉萨市内,离拉萨远点的呢你估计时间也没法满足。市内的寺庙基本都是要门票的,你要是能乔装成藏民手里拎一壶甜茶或者酥油茶也有可能能混进去,或者还有个办法就是找个本地人带你进去。大昭寺内有释迦摩尼的等身金像,你要感兴趣可以 阅读全文
posted @ 2016-03-04 11:04 anranstl 阅读(179) 评论(0) 推荐(0) 编辑
摘要: PLS: please BTW: by the way NRN: no response necessary IMO: in my opinion IC: I see PCR: per customer request MFC: manufacturing PST: pacific standard 阅读全文
posted @ 2016-03-04 10:59 anranstl 阅读(1196) 评论(0) 推荐(0) 编辑
摘要: IF OBJECT_ID(N'tempdb..#tmp') IS NOT NULL DROP TABLE #tmp CREATE TABLE #tmp ( aaa VARCHAR(10), bbb INT ) INSERT INTO #tmp ( aaa, bbb ) VALUES ( '11111 阅读全文
posted @ 2016-03-04 10:50 anranstl 阅读(281) 评论(0) 推荐(0) 编辑
摘要: IF OBJECT_ID(N'tempdb..#tmp') IS NOT NULL DROP TABLE #tmp CREATE TABLE #tmp ( aaa VARCHAR(10), bbb INT ) INSERT INTO #tmp ( aaa, bbb ) VALUES ( '11111 阅读全文
posted @ 2016-03-04 10:49 anranstl 阅读(334) 评论(0) 推荐(0) 编辑
摘要: 下面这这组方法用于把小数舍入为整数 Math.ceil()表示向上舍入函数,总是把数字向上舍入到最接近的值 Math.floor()表示乡下舍入函数,总是把数字向下舍入到最接近的值 Math.round()表示标准的舍入函数,及四舍五入 Math.ceil(25.5) output6 26 Math 阅读全文
posted @ 2016-03-04 10:48 anranstl 阅读(126) 评论(0) 推荐(0) 编辑
摘要: Js中字符串是值类型,值类型从栈中分配,引用类型从堆中分配 js中的闭包是指,函数中能使用函数外的定义的变量 this总是指向调用改方法的对象 Window.close()这段代码只对新创建的窗口有效。如果在主浏览器窗口中调用window.close()方法,将得到一条消息:提示该脚本试图关闭窗口, 阅读全文
posted @ 2016-03-04 10:47 anranstl 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 两种方式: re = /pattern/[flags] re = new RegExp("pattern"[,"flags"]) re必须。 正则表达式模式分配到的变量名称 Pattern 必须。 要使用的正则表达式模式。如果使用语法1,模式将由“/”字符分隔。如果使用语法2,则用引号将模 式括起来 阅读全文
posted @ 2016-03-04 10:43 anranstl 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 相同点: 1.truncate和不带where子句的delete、以及drop都会删除表内的数据。 2.drop、truncate都是DDL语句(数据定义语言),执行后会自动提交。 不同点: 1. truncate 和 delete 只删除数据不删除表的结构(定义) drop 语句将删除表的结构被依 阅读全文
posted @ 2016-03-04 10:42 anranstl 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 在实际使用的时候,我们如何灵活的在存储过程中运用它们,虽然它们实现的功能基本上是一样的,可如何在一个存储过程中有时候去使用临时表而不使用表变量,有时候去使用表变量而不使用临时表呢? 临时表 临时表与永久表相似,只是它的创建是在Tempdb中,它只有在一个数据库连接结束后或者由SQL命令DROP掉,才 阅读全文
posted @ 2016-03-04 10:41 anranstl 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 一个新的sql server安装总是包含四个数据库:master, model, tempdb, msdb. model数据库只是一个模板数据库,当我们创建一个新的数据库时,sql server都会复制model数据库座位新数据库的基础。如果希望每一个新的数据库在创建时都还有某些对象或者权限,可以把 阅读全文
posted @ 2016-03-04 10:38 anranstl 阅读(142) 评论(0) 推荐(0) 编辑
摘要: public static string CallService(string strXml) { Uri uri = new Uri(Settings.SettingWebServiceUrl); string postData = strXml; string result = null; Ht 阅读全文
posted @ 2016-03-04 10:37 anranstl 阅读(144) 评论(0) 推荐(0) 编辑