上一页 1 2 3 4 5 6 7 8 9 ··· 18 下一页

2012年6月17日

无限分类编辑移动栏目代码

摘要: '系统页面加载初始化参数设定ClassID=request("ClassID")if ClassID="" or not isnumeric(ClassID) thenresponse.Write("")response.End()end if'类别列表读取函数Function ShowClassFormOption(sChannelID,CurrentID,sClassDepth)dim rsClass,sqlClass,sTemp,tmpClassDepth,i,ndim arrShowLine(10)for i= 阅读全文

posted @ 2012-06-17 10:52 风灵溪清 阅读(134) 评论(0) 推荐(0) 编辑

使用线程加载指定目录下的所有子目录和文件名称到TreeView中

摘要: 界面设计:从工具箱中拖放一个TreeView(teeView1)和一个Button(button1)到WinForm窗体中添加引用:using System.Threading;using System.IO;详细代码: #region 目录树委托定义 private delegate void UpdateTreeViewDelegate(TreeNode node);//声明委托类型 private static string CurrentFolderPath; #endregion #region 目录树节点操作函数 /// /// 加载节点到TreeView中 /// /... 阅读全文

posted @ 2012-06-17 10:52 风灵溪清 阅读(121) 评论(0) 推荐(0) 编辑

UDP聊天代码发送消息客户端代码

摘要: UDP聊天代码发送消息客户端代码添加引用using System;using System.Drawing;using System.Collections;using System.ComponentModel;using System.Windows.Forms;using System.Net;using System.Net.Sockets;using System.Text;using System.Threading;//发送消息按钮事件private void button1_Click(object sender, System.EventArgs e){this.button 阅读全文

posted @ 2012-06-17 10:51 风灵溪清 阅读(140) 评论(0) 推荐(0) 编辑

2012年6月7日

SQL2005读取所有表字段的备注

摘要: 注:数据表所有字段说明其实都是都存放在sys.extended_properties这个表里面的,本文采用游标跟系统函数获取所有表字段说明文字--声明变量declare @TableName nvarchar(250) --声明一个游标mycursor,select语句中参数的个数必须要和从游标取出的变量名相同declare mycursor cursor for select name from sys.tables order by name--打开游标open mycursor--从游标里取出数据赋值到我们刚才声明的变量中fetch next from mycursor into @Ta 阅读全文

posted @ 2012-06-07 12:29 风灵溪清 阅读(109) 评论(0) 推荐(0) 编辑

2012年5月22日

64位操作系统中用C#连接Informix

摘要: 测试环境:Windows2008+SQL2008R2+Linux虚拟机+Informix9数据库+IBM INFORMIX-Client SDK 3.70.FC4连接步骤:一、开启Linux虚拟机,启动网络配置,启动Informix数据库二、安装Windows下的Informix数据库客户端工具IBM INFORMIX-Client SDK 3.70.FC4,配置好下面两个跟你的Informix数据库相关的配置1、用记事本打开C:\Windows\System32\drivers\etc\hosts文件,在末尾添加127.0.0.1 localhostInformix_Server_IPInf 阅读全文

posted @ 2012-05-22 12:02 风灵溪清 阅读(331) 评论(0) 推荐(0) 编辑

2012年5月18日

64位Windows2008R2操作系统下的最新JAVA开发环境所需软件下载和设置办法

摘要: 64位Windows2008R2操作系统下的最新JAVA开发环境所需软件下载和设置办法一、基本安装软件准备1.Java运行环境Java SE Development Kit 6 Update 32进入官网地址http://www.oracle.com/technetwork/java/javase/downloads/index.html后下载软件下载地址为http://download.oracle.com/otn-pub/java/jdk/6u32-b05/jdk-6u32-windows-x64.exe2.Tomcat服务器tomcat7.0进入官网地址http://tomcat.apa 阅读全文

posted @ 2012-05-18 19:24 风灵溪清 阅读(623) 评论(0) 推荐(0) 编辑

2012年5月10日

C#批量附加指定目录下的所有数据库文件到数据库中

摘要: 应用场合:因为经常更换操作系统,所以D盘存放数据库文件目录的数据库每次都要一个一个的附加到MSSQL中,因此设计程序批量附加省时间也方便自己和大家。程序不足:没有去研究跟实现NDF日志文件附加和多个日志文件的数据库附加。程序源码: /// /// 循环查找指定目录下要附加的数据库文件和对应的日志文件,连接本地数据库并执行数据库附加命令 /// private void AttachFolderDB() { string strFileFolder = ""; FolderBrowserDialog myFolderBrowserDialog = new FolderBrow 阅读全文

posted @ 2012-05-10 15:57 风灵溪清 阅读(233) 评论(0) 推荐(0) 编辑

2012年4月16日

SQL备份所有数据库脚本

摘要: --SQL备份所有数据库脚本declare @CurrentDataBaseName nvarchar(100)declare @CurrentBackFolder nvarchar(200)declare @CurrentBackString nvarchar(2000)set @CurrentBackFolder='D:\Test'--这里是备份的目录,所有数据库都备份到这个目录--查询所有数据库名称--select * from master..sysdatabases where dbid>=7declare tb cursor local for select 阅读全文

posted @ 2012-04-16 13:27 风灵溪清 阅读(248) 评论(0) 推荐(0) 编辑

2012年4月9日

SQL清除所有数据库日志脚本

摘要: --SQL清除所有数据库日志脚本declare @CurrentDataBaseName nvarchar(100)declare @CurrentDataBaseID nvarchar(100)declare @CurrentLogName nvarchar(100)declare @CurrentClearString nvarchar(4000)declare @CurrentLogFileName nvarchar(255)declare @CurrentClearLogString nvarchar(2000)--查询所有数据库名称--select * from master..sy 阅读全文

posted @ 2012-04-09 13:42 风灵溪清 阅读(142) 评论(0) 推荐(0) 编辑

2012年3月10日

C#使用线程加载指定目录下的所有子目录和文件名称到TreeView中

摘要: 界面设计步骤:从工具箱中拖放一个TreeView(teeView1)和一个Button(button1)到WinForm窗体中添加引用:using System.Threading;using System.IO;详细代码: #region 目录树委托定义 private delegate void UpdateTreeViewDelegate(TreeNode node);//声明委托类型 private static string CurrentFolderPath; #endregion #region 目录树节点操作函数 /// /// 加载节点到TreeView中 /// ... 阅读全文

posted @ 2012-03-10 13:07 风灵溪清 阅读(206) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 9 ··· 18 下一页

导航