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 |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2004-02-27 : 08:28:40
|
| wong writes "HI,i would like to know any way to export data from a selected query statement to xml files using stored procedure. I treid bcp but it only workd in command prompt..i wanted to put this code in the stored procedure.....Thank you in advance" |
|
|
ehorn
Master Smack Fu Yak Hacker
1632 Posts |
Posted - 2004-02-27 : 09:26:30
|
| One option is to use xp_cmdshell from your sp to call bcp. |
 |
|
|
|
|
|