摘要: 手头有一个项目VC++ 6的,非常老了,需要升级到VC++ 2015. 报了一堆的错误,这是其中两个: d3dx8.lib(d3dx8core.obj) : error LNK2019: unresolved external symbol __snprintf referenced in function _D3DXGetErrorStringA@12 d3dx8.lib(cd3dxassemb... 阅读全文
posted @ 2016-08-05 15:48 排骨虾 阅读(2907) 评论(0) 推荐(0) 编辑
摘要: 废话少说,先看效果。295万多条业务数据一次性插入数据库的一个表中,数据大小大约为280M,总耗时38秒。上图, 表的定义是这样的, 如果使用事务,那么时间增长到46s,也就是多了8s。我用SqlBulkCopy的InternalTransaction做的测试, SqlBulkCopy sbc = new SqlBulkCopy(m_dal.ConnectionString, SqlBul... 阅读全文
posted @ 2016-07-13 14:52 排骨虾 阅读(1246) 评论(0) 推荐(0) 编辑
摘要: 主要区别在于连接协议不同,前者(localhost)使用TCP协议,后者(“(local)”)使用NamedPipe协议。 Sample code with SQL Server connection strings often use localhost and (local) interchangeably. They're different. Server=(local);Datab... 阅读全文
posted @ 2016-03-22 11:41 排骨虾 阅读(256) 评论(0) 推荐(0) 编辑
摘要: 出现这个错误的原因是我们给ChartControl同时设置了Minimum和Maxmum的值,而这两个值又恰好相等。 chart.ChartAreas[0].AxisY.Minimum=min; chart.ChartAreas[0].AxixY.Maxmum=max; 解决的方法很简单,不要设置Maxmum就行了。或者可以判断当Minimum==Maxmum时,适当增大Maxmum的值。具体就得... 阅读全文
posted @ 2016-03-11 10:57 排骨虾 阅读(478) 评论(0) 推荐(0) 编辑
摘要: 启动Profiler之前设置一下Targets的属性就行,图中有说明。 阅读全文
posted @ 2016-03-09 17:04 排骨虾 阅读(1237) 评论(0) 推荐(0) 编辑
摘要: 可以用来跟踪执行的sql语句。安装SqlServer之后SqlServerManagementStudio自带一个SqlProfiler,但是如果安装的SqlExpress,那就没有了。 项目的主页在https://expressprofiler.codeplex.com/,点右边的“Download”下载,解压然后直接运行“ExpressProfiler.exe”就可以了。里面有个msi文件,... 阅读全文
posted @ 2016-03-08 15:54 排骨虾 阅读(2301) 评论(0) 推荐(0) 编辑
摘要: 前一篇关于anti-forgery token问题的博文提到我们可以通过修改AntiForgeryConfig.UniqueClaimTypeIdentifier属性来避免AntiForgeryToken生成的问题。但是也许你编译运行后又得到了这样一个错误: A claim of type 'http://schemas.xmlsoap.org/ws/2005/05/identity/claim... 阅读全文
posted @ 2016-03-04 16:12 排骨虾 阅读(1041) 评论(0) 推荐(0) 编辑
摘要: 当使用ClaimsIdentity的时候,Asp.Net MVC在生成AntiForgeryToken的时候会默认使用User.Identity中两种ClaimsType的值:NameIdentifier (http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier )和IdentityProvider (http://... 阅读全文
posted @ 2016-03-02 17:42 排骨虾 阅读(2990) 评论(0) 推荐(1) 编辑
摘要: Operating System Version(s) Location Unix, Unix-like, POSIX /etc/hosts Microsoft Windows 3.1 %WinDir%\HOSTS Microsoft Windows 95, 98, ME %WinDir%\hosts Microsoft Windows NT, 2000, XP, 2003, V... 阅读全文
posted @ 2016-03-02 14:36 排骨虾 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 步骤1,打开“Generate and Publish Objects”向导。右键点击要导出数据的数据库,选择Taks->GenerateScript 步骤2,选择要导出数据的表。在上一步的弹窗窗口中选择Next跳过“Introduction”,之后进入“Choose Objects”界面。 默认的选项”Script entire database and all data objects... 阅读全文
posted @ 2015-12-31 12:06 排骨虾 阅读(7784) 评论(2) 推荐(0) 编辑