06 2007 档案

CSDN上面的一段导出Excel格式文件的存储过程
摘要:if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[p_exporttb]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)drop procedure [dbo].[p_exporttb]GO/*--数据导出EXCEL 导出查询中的数据到Excel,包含字段名,文件... 阅读全文

posted @ 2007-06-27 15:07 Neo0820 阅读(731) 评论(0) 推荐(0)

sql判断文件是否存在
摘要:create proc p_QueryCheckFile @path nvarchar(1000), @fname nvarchar(250)as--检查文件是否已经存在if right(@path,1)'\' set @path=@path+'\'if exists (select * from sysobjects ... 阅读全文

posted @ 2007-06-27 14:53 Neo0820 阅读(1868) 评论(0) 推荐(0)

游标
摘要:游标备忘 阅读全文

posted @ 2007-06-15 08:39 Neo0820 阅读(215) 评论(0) 推荐(0)

在sql中快速导入、导出Excel
摘要:--导出不能回行 EXEC master..xp_cmdshell 'bcp "exec dbo.Redev_pr_GetDepartment_LingShouZhan_ZuoYe" queryout "C:\LingShouZhan.xls" -Sfileserver -Usa -P123456 -c' --导入不能回行 SELECT * FROM OpenDataSource( '... 阅读全文

posted @ 2007-06-15 08:37 Neo0820 阅读(414) 评论(0) 推荐(0)

winform下简单多线程例子
摘要:winform下简单多线程例子 阅读全文

posted @ 2007-06-11 10:36 Neo0820 阅读(1189) 评论(1) 推荐(0)

导航