SQL实战训练2--- PowerShell中导出数据到excel表格
2012-08-10 15:30
856 查看
1.启动PowerShell
在数据库的实例名上右击,选择"启动PowerShell"
2.输入命令
PS SQLSERVER:\SQL\LENOVO-PC\DEFAULT> bcp YLBX兰考.dbo.ff out e:/123.xls -c -q -S
"LENOVO-PC" -U "sa" -P "lvyafei"
开始复制...
1000 rows successfully bulk-copied to host-file. Total received: 1000
1000 rows successfully bulk-copied to host-file. Total received: 2000
1000 rows successfully bulk-copied to host-file. Total received: 3000
1000 rows successfully bulk-copied to host-file. Total received: 4000
1000 rows successfully bulk-copied to host-file. Total received: 5000
1000 rows successfully bulk-copied to host-file. Total received: 6000
1000 rows successfully bulk-copied to host-file. Total received: 7000
1000 rows successfully bulk-copied to host-file. Total received: 8000
1000 rows successfully bulk-copied to host-file. Total received: 9000
1000 rows successfully bulk-copied to host-file. Total received: 10000
1000 rows successfully bulk-copied to host-file. Total received: 11000
1000 rows successfully bulk-copied to host-file. Total received: 12000
1000 rows successfully bulk-copied to host-file. Total received: 13000
1000 rows successfully bulk-copied to host-file. Total received: 14000
1000 rows successfully bulk-copied to host-file. Total received: 15000
1000 rows successfully bulk-copied to host-file. Total received: 16000
1000 rows successfully bulk-copied to host-file. Total received: 17000
1000 rows successfully bulk-copied to host-file. Total received: 18000
1000 rows successfully bulk-copied to host-file. Total received: 19000
1000 rows successfully bulk-copied to host-file. Total received: 20000
1000 rows successfully bulk-copied to host-file. Total received: 21000
1000 rows successfully bulk-copied to host-file. Total received: 22000
1000 rows successfully bulk-copied to host-file. Total received: 23000
已复制 23243 行。
网络数据包大小(字节): 4096
总时钟时间(毫秒) : 483 平均值: (每秒 48122.15 行。)
PS SQLSERVER:\SQL\LENOVO-PC\DEFAULT>
在数据库的实例名上右击,选择"启动PowerShell"
2.输入命令
PS SQLSERVER:\SQL\LENOVO-PC\DEFAULT> bcp YLBX兰考.dbo.ff out e:/123.xls -c -q -S
"LENOVO-PC" -U "sa" -P "lvyafei"
开始复制...
1000 rows successfully bulk-copied to host-file. Total received: 1000
1000 rows successfully bulk-copied to host-file. Total received: 2000
1000 rows successfully bulk-copied to host-file. Total received: 3000
1000 rows successfully bulk-copied to host-file. Total received: 4000
1000 rows successfully bulk-copied to host-file. Total received: 5000
1000 rows successfully bulk-copied to host-file. Total received: 6000
1000 rows successfully bulk-copied to host-file. Total received: 7000
1000 rows successfully bulk-copied to host-file. Total received: 8000
1000 rows successfully bulk-copied to host-file. Total received: 9000
1000 rows successfully bulk-copied to host-file. Total received: 10000
1000 rows successfully bulk-copied to host-file. Total received: 11000
1000 rows successfully bulk-copied to host-file. Total received: 12000
1000 rows successfully bulk-copied to host-file. Total received: 13000
1000 rows successfully bulk-copied to host-file. Total received: 14000
1000 rows successfully bulk-copied to host-file. Total received: 15000
1000 rows successfully bulk-copied to host-file. Total received: 16000
1000 rows successfully bulk-copied to host-file. Total received: 17000
1000 rows successfully bulk-copied to host-file. Total received: 18000
1000 rows successfully bulk-copied to host-file. Total received: 19000
1000 rows successfully bulk-copied to host-file. Total received: 20000
1000 rows successfully bulk-copied to host-file. Total received: 21000
1000 rows successfully bulk-copied to host-file. Total received: 22000
1000 rows successfully bulk-copied to host-file. Total received: 23000
已复制 23243 行。
网络数据包大小(字节): 4096
总时钟时间(毫秒) : 483 平均值: (每秒 48122.15 行。)
PS SQLSERVER:\SQL\LENOVO-PC\DEFAULT>
相关文章推荐
- asp.net如何实现excel导入到sql或者根据需要再将sql中的数据导出到excel表格中
- asp.net将sql数据导出excel表格(代sql字段名)
- navicat 导出向导 , 通过Excel生成批量SQL语句,处理大量数据
- 【Python实战】Pandas:让你像写SQL一样做数据分析(一)
- Spark SQL数据载入和保存实战
- sql2005与sql200数据导入导出
- 将excel表格中的数据导入到SQL中
- PL/SQL Developer 导出表结构和表数据
- SQL Server MangeMent导入导出数据
- 利用PL/SQL Developer导入导出ORACLE数据库数据
- SQL Server 2005 导出包含(insert into)数据的SQL脚本 (使用存储过程) 分类: 数据库
- Windows sql语句正则匹配导出数据到本地 The MySQL server is running with the --secure-file-priv option so it cannot execute this statement
- Oracle导出数据字典SQL语句
- SQL Server将数据导出SQL脚本的方法
- PHP导出数据为excel表格
- sql查询和预览界面,在预览界面选择图表最后进行导出数据和图表到excel
- oracle表数据用java导出为SQL文件的方法
- sql server中三种导入导出数据方式(SQL语句、bcp、dts)
- SQL Server数据导入导出的几种方法
- [MSSQL]SQL Server里面导出SQL脚本(表数据的insert语句)(转)