上一页 1 2 3 4 5 6 7 ··· 11 下一页

2017年5月16日

sql server 最大 concurrent connection 设置

摘要: Using SQL Server Management Studio To configure the user connections option 1.In Object Explorer, right-click a server and click Properties. 2.Click t 阅读全文

posted @ 2017-05-16 16:43 齐文宣 阅读(288) 评论(0) 推荐(0)

suitecrm 如何backup and restore ,从一个server 转移到另一个 server . 并保证customer package , customer module 不丢

摘要: 原server部分 1 : suite backup 分为 数据库和 网站 两部分 , 在 网站目录下 config.php , 可以看到 数据库名字 等信息 。 在 /home 目录下 , 新建 liuyang 目录 mkdir liuyang 给予写权限 sudo chmod -R a+rw / 阅读全文

posted @ 2017-05-16 13:20 齐文宣 阅读(375) 评论(0) 推荐(1)

2017年5月11日

主线程create一个ConcurrentQueue ,然后用三个子线程往里面写数,主线程建timer检查ConcurrentQueue>某值,存数据库,存进多少就清ConcurrentQueue多少

摘要: 代码 : 注:一开始用的是 List<> , 但发现 不能保证线程安全,后来在 stackoverflow 提问, 改用 ConcurrentQueue ,队列的特征是 front delete 的同时, 可以在 tail insert , 足以保证thread safe 原帖网址 : http:/ 阅读全文

posted @ 2017-05-11 15:14 齐文宣 阅读(206) 评论(0) 推荐(0)

2017年5月9日

suie crm ----> Accounts 的某一个subpanel 是 自定义module ,如何设置这个module 的默认排序列

摘要: 版本号: 要实现的效果 : 不用自己点击列名排序, 一开始就按 Docdate 降序排 实现方法: 登陆网站所在linux,在这个目录下: 编辑图中的php 文件 ,重点在 sort_order 和 sort_by last step: Admin >Repair >qiuck Repair and 阅读全文

posted @ 2017-05-09 17:45 齐文宣 阅读(140) 评论(0) 推荐(0)

2017年5月5日

c# 实现 ListBox 每一列可以有各自的颜色

摘要: 上图是想实现的效果, 注意不是所有行一个颜色 首先把 listbox 的 DrawMode 属性 改为 OwnerDrawFixed 然后 override listbox 的 函数 DrawItem 系统重命名为 listBox1_DrawItem 阅读全文

posted @ 2017-05-05 17:51 齐文宣 阅读(5271) 评论(0) 推荐(0)

2017年5月4日

JSON序列化,并解码成为 datagridview 的 datasource

摘要: // encode List clientList = new List(); for (int i = 0; i source1 = JsonConvert.DeserializeObject>(sReply); var Dsource = new BindingSource(); ... 阅读全文

posted @ 2017-05-04 17:11 齐文宣 阅读(1638) 评论(0) 推荐(0)

2017年4月18日

安装和卸载C#写的 windows service

摘要: 安装 : 用管理员权限 运行 developer command prompt for VS2012 执行命令 installutil "可执行文件全路径" 卸载 : 用管理员权限 运行 developer command prompt for VS2012 执行命令 installutil /u 阅读全文

posted @ 2017-04-18 10:50 齐文宣 阅读(159) 评论(0) 推荐(0)

2017年4月13日

给一个二维数组随机赋值

摘要: 运行后, 在 immidiatly 窗口可以查询到 data[0]0x008b6f00 "Gh0stfrAQBcýýýý««««««««þîþîþîþîþ"data[1]0x008b45e8 "Gh0st8Wsa1xýýýý«««««««« 阅读全文

posted @ 2017-04-13 10:08 齐文宣 阅读(517) 评论(0) 推荐(0)

2017年4月7日

sql server use WAITFOR DELAY to wait some milliseconds

摘要: 延迟 300 毫秒 WAITFOR DELAY '00:00:00.300' 阅读全文

posted @ 2017-04-07 09:18 齐文宣 阅读(179) 评论(0) 推荐(0)

sql server print time with milliseconds

摘要: print convert(varchar, getdate(), 121) declare @callID as intdeclare @errCode as intdeclare @msg as nvarchar(200) exec [sp_Test_alwayRetTrue] @callID, 阅读全文

posted @ 2017-04-07 09:13 齐文宣 阅读(187) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 ··· 11 下一页

导航