摘要:
闲来无事,利用WinForm做了个查看SQL Server所有数据库表信息的小工具。总结一下:1、只允许运行应用程序的一个实例..... 阅读全文
摘要:
反编译工具ILSpy、LINQ学习工具LINQPad等。。。。。。 阅读全文
摘要:
平时用系统自带的记事本记录日常消费,简单快捷但是缺少统计功能,不清楚每个月花费多少,于是写个程序统计一下。 阅读全文
摘要:
DrawStat.ashxusing System; using System.Web; using System.Collections.Generic; using System.Drawing; using System.Drawing.Imaging; using OWC11 = Microsoft.Office.Interop.Owc11; //引用com组件:Micorsoft Office Web Components 11.0 /// /// DrawStat 的摘要说明 /// public class DrawStat : IHttpHandler { public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; int chartType = 0; 阅读全文
摘要:
Microsoft.Office.Interop.Owc11.ChartSpace objchartspace = new Microsoft.Office.Interop.Owc11.ChartSpaceClass();在vs2008中正常,但在vs2010中出错:错误 14 类型“Microsoft.Office.Interop.Owc11.ChartSpaceClass”未定义构造函数错误 15 无法嵌入互操作类型“Microsoft.Office.Interop.Owc11.ChartSpaceClass”。请改用适用的接口。解决方法:选择“引用”文件夹中引入的dll:OWC11,鼠标 阅读全文
摘要:
来源:http://damieng.com/blog/2009/11/06/multiple-outputs-from-t4-made-easy-revisited
My multiple outputs from t4 made easy post contained a class making it easy to produce multiple files from Visual Studio’s text templating engine (T4).
While useful it had a few issues:
Getting start/end blocks mixed up resulted in unpredictable behaviour
Files were rewritten even when content did not change
Did not play well with source control
Files not always deleted in VS
Faile 阅读全文
摘要:
SQL Server 2008打开存储过程列表时提示:请参阅“对象资源管理器详细信息”了解此文件夹中的对象 阅读全文
摘要:
有时候需要执行一些Sql语句时,不想开企业管理器,或者是发给客户执行但那边又不懂代码,这时就可以用下面方法: 1、把待执行Sql保存在一个文件,这里为20110224.sql。 2、新建一个扩展名.bat的批处理文件,输入下面命令并保存后,双击.bat文件,系统会自动执行20110224.sql的语句: osql -S gdjlc -d TestDB -U sa -P 1 -i 20110224.sql osql参数见下面 阅读全文
摘要:
建立ODBC数据源,在Powerdesigner中选择Database菜单下的Reverse Engineer Database,弹出Database Reverse Engineering对话框,选Using an ODBC data source选择刚才创建的ODBC数据源,点击确定后,显示此数据库中所有表、视图、用户。根据需要选择后,转换成pdm。 阅读全文
摘要:
Repeater绑定Dictionary... 阅读全文