上一页 1 2 3 4 5 6 7 8 ··· 18 下一页
摘要: 近来发现数据库过大,空间不足,因此打算将数据库的数据进行全面的清理,但表非常多,一张一张的清空,实在麻烦,因此就想利用SQL语句一次清空所有数据.找到了三种方法进行清空.使用的数据库为MS SQL SERVER. 1.搜索出所有表名,构造为一条SQL语句 declare @trun_name varchar(8000) set @trun_name='' select @trun_name=... 阅读全文
posted @ 2017-10-14 11:05 深南大道 阅读(13077) 评论(0) 推荐(0)
摘要: --获取所有数据库名: SELECT name FROM master..sysdatabases WHERE name NOT IN ( 'master', 'model', 'msdb', 'tempdb', 'northwind','pubs' ) --获取某数据库的所有表: SELECT name FROM YiDianTongV2..sysobjects Where xtype='... 阅读全文
posted @ 2017-10-14 11:03 深南大道 阅读(13097) 评论(0) 推荐(3)
摘要: create proc pro_GetProTrans @GoodsId int, @Number int, @StockPrice money, @SupplierId int, @EmpId int, @StockUnit varchar(50), @StockDate datetime, @TotalMoney money , @ActMoney money , @baseId int, ... 阅读全文
posted @ 2017-10-14 11:00 深南大道 阅读(16400) 评论(1) 推荐(2)
摘要: 在批处理中加字段或表或视图或存储过程是否存在的判断 阅读全文
posted @ 2017-10-14 10:59 深南大道 阅读(7639) 评论(0) 推荐(0)
摘要: /************************************************************ * 标题:MS SQLServer 批量附加数据库 * 说明:请根据下面的注释使用此脚本 * 时间: 2015/7/13 11:16:41 *******************************************************... 阅读全文
posted @ 2017-10-14 10:51 深南大道 阅读(2481) 评论(0) 推荐(1)
摘要: auto_copy.bat文件 阅读全文
posted @ 2017-10-14 10:49 深南大道 阅读(15625) 评论(0) 推荐(0)
摘要: using System.Drawing; using System.Drawing.Imaging; using System.Web.Mvc; namespace MVC2017_Sample.Controllers { public class DefaultController : Cont 阅读全文
posted @ 2017-10-14 10:00 深南大道 阅读(2239) 评论(0) 推荐(0)
摘要: /******************************************* * 批量备份数据库且删除3天前的备份 *******************************************/ DECLARE @backupfile VARCHAR(1024) DECLARE @backdesc VARCHAR(1024) DECLARE @filename ... 阅读全文
posted @ 2017-09-13 17:16 深南大道 阅读(1692) 评论(0) 推荐(1)
摘要: [Route("api/Message/MessageList/")] [HttpGet] public HttpResponseMessage MessageList() { ResponseResult obj = new ResponseResult(); var pageData = Ydt.ExtLib.DataTableHelper.DataTableToList(r... 阅读全文
posted @ 2017-09-13 15:13 深南大道 阅读(1200) 评论(0) 推荐(0)
摘要: 项目中,使用svn经常遇到,文件或文件夹图标延时显示或未显示的问题,终于找到办法解决 客户端:TortoiseSVN 阅读全文
posted @ 2016-12-24 16:31 深南大道 阅读(379) 评论(0) 推荐(0)
摘要: ALTER VIEW [dbo].[view_TreeLevel] AS WITH cte AS ( SELECT a.ModuleID , a.Module_Name , a.Module_Description , a.Module_FatherID , a.Module_Url , a.Module_Order, 1 Le... 阅读全文
posted @ 2016-12-22 19:50 深南大道 阅读(314) 评论(0) 推荐(0)
摘要: /************************ Layer扩展 ****************************/ /* * Layer弹出Alert提示框 * @param message 提示信息 * @param type 类型 1成功 2失败 3疑问 7提示 * @param fn (可选)点击后回调方法 * @return */ function LayerAlert(me... 阅读全文
posted @ 2016-12-22 17:50 深南大道 阅读(510) 评论(0) 推荐(0)
摘要: Js 数组filter()、map()、some()、every()、forEach()、lastIndexOf()、indexOf()实例 阅读全文
posted @ 2016-12-21 20:12 深南大道 阅读(196) 评论(0) 推荐(0)
摘要: javascript字典数据结构Dictionary实现 阅读全文
posted @ 2016-12-21 19:50 深南大道 阅读(275) 评论(0) 推荐(0)
摘要: javascript集合的交,并,补,子集的操作实现 阅读全文
posted @ 2016-12-21 19:42 深南大道 阅读(278) 评论(0) 推荐(0)
摘要: Jquery测试 去百度 外层div 内层div 阅读全文
posted @ 2016-12-20 16:43 深南大道 阅读(213) 评论(0) 推荐(0)
摘要: Jquery 操作cookie示例 阅读全文
posted @ 2016-12-20 11:22 深南大道 阅读(313) 评论(0) 推荐(0)
摘要: private static string connectionString = RBAC.Dal.DataRootBase.ConnectionString; private SqlConnection mConnection = new SqlConnection(connectionString); #region /// /// 当点击执行查询时发生(异步操作) /// 执行数据库w... 阅读全文
posted @ 2016-12-19 17:18 深南大道 阅读(1856) 评论(0) 推荐(0)
摘要: 测试页面 其它一些例子 阅读全文
posted @ 2016-12-19 11:46 深南大道 阅读(1108) 评论(0) 推荐(0)
摘要: 1. 创建一个变量 var ref = ""; 2. 定时刷新调用的方法 function consoleLog(){ console.log("a"); } 3. 设置定时刷新 ref = setInterval(function(){ consoleLog(); },2000); 这样会每2秒执行一次consoleLog方法 4. 阻止定时刷新 clearInterval... 阅读全文
posted @ 2016-12-19 11:06 深南大道 阅读(62647) 评论(0) 推荐(0)
摘要: 为什么使用时间戳? 关于Unix时间戳,大概是这个意思,从1970年0时0分0秒开始到现在的秒数.使用它来获得的是一个INT值,储存在数据库里只要使用INT格式就可以了,方便数据库进行排序,搜索,而且比datetime格式更节省数据库空间。 阅读全文
posted @ 2016-12-19 10:54 深南大道 阅读(9465) 评论(0) 推荐(0)
摘要: /*查找XML*/ var filePath = Server.MapPath("~/xml/sample.xml"); XDocument doc = XDocument.Load(filePath); var text1 = doc.Descendants("用户") //定位到节点 .Where(p => p.Element("性别").Value.Contains('男')) ... 阅读全文
posted @ 2016-12-17 17:30 深南大道 阅读(203) 评论(0) 推荐(0)
摘要: using System; using System.Web; using System.Collections; namespace MSCL { /// /// Cache辅助类 /// public class CacheHelper { /// /// 获取数据缓存 /// /... 阅读全文
posted @ 2016-12-17 16:22 深南大道 阅读(200) 评论(0) 推荐(0)
摘要: /* Sqlserver数据库开始相关服务 以下示例显示了如何查看 OLE Automation Procedures 的当前设置。0未启用 */ EXEC sp_configure 'show advanced option', '1' --只有这个高级选项被打开的时候,才有权限修改其他配置。 go RECONFIGURE --运行RECONFIGURE语句进行安装,也就是说,使以上语... 阅读全文
posted @ 2016-12-17 10:04 深南大道 阅读(1559) 评论(0) 推荐(1)
摘要: using System; using System.IO; using System.Runtime.CompilerServices; using System.Text; namespace SystemTask { public class CensusdemoTask { System.Threading.Timer timer; pri... 阅读全文
posted @ 2016-12-16 20:04 深南大道 阅读(420) 评论(0) 推荐(0)
摘要: use master GO /* --开启sql server代理 sp_configure 'show advanced options', 1; GO RECONFIGURE; GO sp_configure 'Agent XPs', 1; GO RECONFIGURE GO */ --定义创建作业 DECLARE @jobid uniquei... 阅读全文
posted @ 2016-12-16 19:27 深南大道 阅读(2174) 评论(0) 推荐(0)
摘要: 1.首先新建一个空的解决方案,并添加一个类库,代码如下,编译并生产dll using System; using System.Collections.Generic; using System.Data.SqlTypes; using System.Linq; using System.Text; namespace TEST { public cla... 阅读全文
posted @ 2016-12-16 18:28 深南大道 阅读(589) 评论(0) 推荐(0)
摘要: INSERTED');" /> 阅读全文
posted @ 2016-12-14 17:04 深南大道 阅读(597) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; using System.Data.Common; using System.Threading.Tasks; using JianKu.Dal; using JianKu.Model; u... 阅读全文
posted @ 2016-12-08 19:02 深南大道 阅读(181) 评论(0) 推荐(0)
摘要: @{ Layout = null; } @if (false) { } 访问统计 选择时间: ... 阅读全文
posted @ 2016-12-06 17:01 深南大道 阅读(520) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 18 下一页