上一页 1 2 3 4 5 6 ··· 11 下一页
摘要: byte[] byts = new byte[HttpContext.Current.Request.InputStream.Length]; HttpContext.Current.Request.InputStream.Read(byts, 0, byts.Length); string req 阅读全文
posted @ 2020-02-17 23:22 凌心缘 阅读(668) 评论(0) 推荐(1) 编辑
摘要: EXEC sp_who active --看哪个引起的阻塞,blk blk<>0 --解锁表declare @spid intSet @spid = 274 --锁表进程declare @sql varchar(1000)set @sql='kill '+cast(@spid as varchar) 阅读全文
posted @ 2019-12-06 15:47 凌心缘 阅读(822) 评论(0) 推荐(0) 编辑
摘要: 一、在gridcontrol列表控件中使用单选框作为选择列,这里有两种方式。 方式一:选择gridcontrol控件的Run Designer按钮,添加一列,设置该列的ColumnEdit为checkedit。如下图: 代码如下: 效果图: 方式二:选择gridcontrol控件的Run Desig 阅读全文
posted @ 2019-12-01 17:52 凌心缘 阅读(1167) 评论(0) 推荐(1) 编辑
摘要: 1、修改字段名: alter table 表名 rename column A to B 2、修改字段类型: alter table 表名 alter column 字段名 type not null 3、修改字段默认值 alter table 表名 add default (0) for 字段名 阅读全文
posted @ 2019-12-01 10:07 凌心缘 阅读(464) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// Http请求操作类之HttpWebRequest /// </summary> public class HttpHelper { #region properties private ILog _logger; private readonly Encoding ENCODING = Encoding.UTF8; #endregion #region cons 阅读全文
posted @ 2019-11-14 23:28 凌心缘 阅读(1870) 评论(0) 推荐(0) 编辑
摘要: if Exists(select * from sysobjects where NAME = 'insert_custominfo' and type='P') drop procedure insert_custominfo go create proc insert_custominfo @mid nvarchar(50), @custominfoid nvarchar(50) output 阅读全文
posted @ 2019-11-03 13:25 凌心缘 阅读(356) 评论(0) 推荐(0) 编辑
摘要: 1、首先在项目中添加Nuget程序包... 2、然后在NuGet窗体中搜索Log4Net,然后点击安装<安装过程可能会持续几分钟,请耐心等待> 3.在webconfig中添加配置 给AssemblyInfo文件添加装载描述 程序启动时加载配置文件 在当前项目下创建一个Configs文件夹,在此文件夹 阅读全文
posted @ 2019-11-03 11:06 凌心缘 阅读(274) 评论(0) 推荐(0) 编辑
摘要: public abstract class SQLHelper { //只读的静态数据库连接字符串 //需添加引用System.Configuration; public static readonly string connString = ConfigurationManager.Connect 阅读全文
posted @ 2019-11-01 07:29 凌心缘 阅读(523) 评论(0) 推荐(0) 编辑
摘要: <connectionStrings> <add name="ConnectionStringName" connectionString="Data Source=服务器名;Initial Catalog=数据库名;User ID=用户;Password=密码" providerName="Sys 阅读全文
posted @ 2019-11-01 07:28 凌心缘 阅读(5052) 评论(0) 推荐(0) 编辑
摘要: /*问题:type in (N'U') 中的N和U是什么意思? 答案:N是指Unicode编码,防止乱码;U是指用户表*/IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[EVADELSECUR 阅读全文
posted @ 2019-10-30 20:38 凌心缘 阅读(709) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 11 下一页