10 2012 档案

清理sql server log 文件
摘要:declare @db nvarchar(20)set @db='KLims'dump transaction @db with no_logbackup log @db with no_logdbcc shrinkdatabase(@db) 阅读全文

posted @ 2012-10-17 10:08 静欲动 阅读(106) 评论(0) 推荐(0) 编辑

获取客户端IP
摘要:string clientIP = HttpContext.Request.ServerVariables["HTTP_X_FORWARDED_FOR"]; if (string.IsNullOrEmpty(clientIP)) clientIP = HttpContext.Request.ServerVariables["REMOTE_ADDR"]; if (string.IsNullOrEmpty(clientIP)) clientIP = HttpContext.Request.UserHostAddress; 阅读全文

posted @ 2012-10-08 11:37 静欲动 阅读(92) 评论(0) 推荐(0) 编辑

导航

点击右上角即可分享
微信分享提示