2014年11月19日
摘要: 防止多个线程同时访问同意对象//1.创建一个锁对象,锁对象必须是一个引用类型static readonly object objSync=new object();Thread t1=new Thread(new ThreadStart(()=>{ lock(objSync) { 代码块 ... 阅读全文
posted @ 2014-11-19 16:56 Struggling Rookie 阅读(97) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u... 阅读全文
posted @ 2014-11-19 10:47 Struggling Rookie 阅读(78) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u... 阅读全文
posted @ 2014-11-19 10:26 Struggling Rookie 阅读(93) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace _02_委托复习 { class Program { static void Main(string[] args... 阅读全文
posted @ 2014-11-19 10:25 Struggling Rookie 阅读(97) 评论(0) 推荐(0) 编辑
  2014年11月15日
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace { public class { private _; p... 阅读全文
posted @ 2014-11-15 15:16 Struggling Rookie 阅读(79) 评论(0) 推荐(0) 编辑
  2014年11月14日
摘要: SQL Server数据库远程操作中,在使用openrowset/opendatasource前首先要启用Ad Hoc Distributed Queries服务,因为这个服务不安全所以SqlServer默认是关闭的。1、启用Ad Hoc Distributed Queries的方法SQL Serv... 阅读全文
posted @ 2014-11-14 12:26 Struggling Rookie 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 1.查询当前所有表select * from INFORMATION_SCHEMA.TABLES 阅读全文
posted @ 2014-11-14 12:25 Struggling Rookie 阅读(205) 评论(0) 推荐(0) 编辑
  2014年11月12日
摘要: 1.写入2.读取Using(FileStream fs=File.OpenRead("文件")){ //1 创建一个workBooke对象fs 创建一个Workbook对象,会自动把指定的Excel加载到workbook中 using(Workbook wk=new HSSFWorkbook(f... 阅读全文
posted @ 2014-11-12 14:52 Struggling Rookie 阅读(136) 评论(0) 推荐(0) 编辑
  2014年11月7日
摘要: 问题描述:无论是在sql 2000,还是在 sql 2005 中,都没有提供字符串的聚合函数,所以,当我们在处理下列要求时,会比较麻烦:有表tb, 如下:idvalue----- ------1 aa1 bb2 aaa2 bbb2 ccc需要得到结果:id values------ --------... 阅读全文
posted @ 2014-11-07 16:16 Struggling Rookie 阅读(467) 评论(0) 推荐(0) 编辑
摘要: declare @Result nvarchar(Max) declare @AuthorityZone nvarchar(Max)='' declare @Apply_Type nvarchar(50)='' declare @ProductCode nvarchar(50)='' se... 阅读全文
posted @ 2014-11-07 16:15 Struggling Rookie 阅读(117) 评论(0) 推荐(0) 编辑