摘要: 昨天修改了一个工具,编译后本机运行正常,但放到服务器上执行却不行,提示:message:GetOleDbSchemaTable requires an open and available Connection. The connection's current state is closed重新检... 阅读全文
posted @ 2014-07-11 16:49 踏叶乘风 阅读(1042) 评论(0) 推荐(0) 编辑
摘要: --下面是具体的配置邮件步骤 --在 sa 系统帐户下运行。 ----1. 启用 SQL Server 2005 邮件功能。 use mastergoexec sp_configure 'show advanced options',1goreconfiguregoexec sp_configure... 阅读全文
posted @ 2014-06-10 11:42 踏叶乘风 阅读(289) 评论(0) 推荐(0) 编辑
摘要: c# Microsoft.ACE.OLEDB.12.0 阅读全文
posted @ 2014-04-21 15:47 踏叶乘风 阅读(794) 评论(0) 推荐(1) 编辑
摘要: 1Color.AliceBlue240,248,255Color.LightSalmon255,160,122Color.AntiqueWhite250,235,215Color.LightSeaGreen32,178,170Color.Aqua0,255,255Color.LightSkyBlue135,206,250Color.Aquamarine127,255,212Color.LightSlateGray119,136,153Color.Azure240,255,255Color.LightSteelBlue176,196,222Color.Beige245,245,220Color. 阅读全文
posted @ 2014-03-11 14:03 踏叶乘风 阅读(406) 评论(0) 推荐(0) 编辑
摘要: foreach (DictionaryEntry de in hashTable) { System.Windows.Forms.MessageBox.Show(de.Key.ToString()); System.Windows.Forms.MessageBox.Show(de.Value.ToString()); } 阅读全文
posted @ 2014-02-24 16:33 踏叶乘风 阅读(206) 评论(0) 推荐(0) 编辑
摘要: SELECT COLUMN_NAME as '列名' ,DATA_TYPE as '字段类型' ,COLUMN_TYPE as '长度加类型' FROM information_schema.`COLUMNS` where TABLE_SCHEMA like '库名'andTABLE_NAME like '表名' 阅读全文
posted @ 2014-01-23 13:28 踏叶乘风 阅读(724) 评论(0) 推荐(0) 编辑
摘要: DataRow[] rows = dt.Select("1=1"); string[] arr = rows.Select(x => x[0].ToString()).ToArray(); 阅读全文
posted @ 2014-01-16 17:12 踏叶乘风 阅读(1703) 评论(0) 推荐(0) 编辑
摘要: 目的:要循环刷新界面上的控件,同时不影响用户操作。循环结束后关闭窗体。步骤:先创建一个窗体,窗体中拖入一个lable控件(label1),一个button控件(button1)代码窗口输入: /// /// 开始按钮单击事件 /// /// /// private void button1_Click(object sender, EventArgs e) { ThreadStart start = new ThreadStart(ShowTime); ... 阅读全文
posted @ 2014-01-11 23:18 踏叶乘风 阅读(6608) 评论(0) 推荐(1) 编辑
摘要: /****** Object: StoredProcedure [dbo].[GET_TableScript_MSSQL] Script Date: 06/15/2012 11:59:00 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO /*=========================================... 阅读全文
posted @ 2013-12-26 15:20 踏叶乘风 阅读(4081) 评论(1) 推荐(0) 编辑
摘要: /****** Object: StoredProcedure [dbo].[GET_TableScript_MYSQL] Script Date: 06/15/2012 13:05:14 ******/SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGO/*==============================================================名称: GET_TableScript_MYSQL功能: 生成单个表的MYSQL脚本 创建:2010年10月22日参数:@DBNAME --数据库名称 @T... 阅读全文
posted @ 2013-12-26 15:18 踏叶乘风 阅读(1339) 评论(1) 推荐(0) 编辑