文章分类 | 推荐文章 | 最新文章 | 热点文章 | 最新软件 | 精品软件 | 下载排行 | 推荐下载 | 免费看大片 | WPS | 杀毒软件
清风网络
首 页 软件下载 网络学院 数码学院
QQ 电脑入门 游戏 操作系统 图形处理 办公软件 媒体动画 精文荟萃 工具软件 网络编程 程序开发 网络技术 认证考试 网站建设 文章专栏
当前位置:清风网络学院程序开发PowerBuilder导出数据到Excel概述
精品推荐
特别推荐
·PowerBuilder实用技巧八则
热点TOP10
·在PB中用Flash制作Splash封面
·PowerBuilder应用开发系列讲座(39)
·PowerBuilder实用技巧八则
·PB代码优化
·在pb中用语音读金额
·PB8.0应用程序编译发布技术研究
·关于PB播放AVI文件的补充
·在PB中如何实现数据模糊查询
·在PowerBulider中读写IC卡
·PowerBuilder的数据窗口

导出数据到Excel概述

日期:2008年5月10日 作者: 查看:[大字体 中字体 小字体]


  This stored procedure can be used to insert the result set of the
particular select statement into Excel file (c:\ImportToExcel.xls,
by default).
You can pass the server name, user name, user password, the select
statement to execute, and the file name to store the results set,
as in the example below:

EXEC ExportToExcel @server = '.',
                   @uname = 'sa',
                   @QueryText = 'SELECT au_fname FROM pubs..authors',
                   @filename = 'c:\ImportToExcel.xls'

/*
Version: SQL Server 7.0/2000
Created by: Alexander Chigrik
- all about MS SQL
(SQL Server Articles, FAQ, Scripts, Tips and Test Exams).

This stored procedure can be used to insert the result set of the
particular select statement into Excel file (c:\ImportToExcel.xls,
by default).
You can pass the server name, user name, user password, the select
statement to execute, and the file name to store the results set,
as in the example below:

EXEC ExportToExcel @server = '.',
                   @uname = 'sa',
                   @QueryText = 'SELECT au_fname FROM pubs..authors',
                   @filename = 'c:\ImportToExcel.xls'
*/

IF OBJECT_ID('ExportToExcel') IS NOT NULL DROP PROC ExportToExcel

[1] [2] [3] [4] [5] 下一页 




上一篇:如何判断是否以独占方式打开当前数据库?

下一篇:根据查询结果,生成XML文件

相关文章:
·巴塞尔新资本协议概述
·Excel密码保护的解除方法与解除原理
·建立自由的会计日期的报表--1.4.让报表处理期初和期末之间的数据
·Excel2000工作薄安全攻略
·EasyRecovery 604硬盘数据恢复软件技巧
·在Excel中的打印设置的技巧(图)
·Access使用查询--1.2.用选择查询进行分组数据的计算
·常用数据库比较
·利用Delphi 5.0开发OLE自动化控制器操纵Excel
·八招设置Excel2007 用得更顺手
相关软件:
·中文版Excel 2003实例与技巧
·Excel应用宝典
·SQL/MYSQL/数据库教程专栏
·逐步精通数据库 sql server 视频教程
·东南大学SQL数据库基础视频教学全42讲 CSF 详见查看
·勤哲Excel勤哲Excel服务器2007企业版V7.1.2
·FinalRecovery(数据恢复工具)V2.2.6.275 汉化版
·Excel2003函数应用完全手册
·Microsoft Excel打印功能增益集 V2.0 绿色版
·ACCESS数据库教程 北京大学的ACCESS教程

特别声明:本站除部分特别声明禁止转载的专稿外的其他文章可以自由转载,但请务必注明出处和原始作者。文章版权归文章原始作者所有。对于被本站转载文章的个人和网站,我们表示深深的谢意。如果本站转载的文章有版权问题请联系编辑人员,我们尽快予以更正。
[打印本页] [关闭窗口] 转载请注明来源:http://www.viphot.com
| 帮助(?) | 版权声明 | 友情连接 | 关于我们 | 信息发布
Copyright 2007 www.viphot.com All Rights Reserved. 鄂ICP备05000083号Powered by:viphot