Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
nounabarbie
Starting Member
10 Posts |
Posted - 2006-02-27 : 04:06:01
|
| Hi,I want to send the result of my query to an Excel file.How can I do it? |
|
|
shallu1_gupta
Constraint Violating Yak Guru
394 Posts |
Posted - 2006-02-27 : 04:26:59
|
| Use BCP Utilitybcp "SELECT au_fname, au_lname FROM pubs..authors ORDER BY au_lname" queryout Authors.xls -c -Sservername -Usa -Ppassword |
 |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-02-27 : 05:01:50
|
quote: Originally posted by shallu1_gupta Use BCP Utilitybcp "SELECT au_fname, au_lname FROM pubs..authors ORDER BY au_lname" queryout Authors.xls -c -Sservername -Usa -Ppassword
It will be saved as Text(Tab delimited) formatMadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|