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 |
|
bill_
Starting Member
38 Posts |
Posted - 2010-06-04 : 10:05:11
|
| I'm being asked to write data from a stored procedure to a text file that looks like a nice report. The data consists of a few numbers and rows and columns that are in a table variable.What is the best way to do this ? |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2010-06-04 : 10:06:41
|
| Have you tried bcp?MadhivananFailing to plan is Planning to fail |
 |
|
|
bill_
Starting Member
38 Posts |
Posted - 2010-06-04 : 10:48:08
|
| Yes. I copied some code from a website and got error saying "the execute permission was denied on the object xp_cmdshell database mssswlsystemresources etc".Wondering if server where sql is running has no idea about drives and directories I'm mapped to - like if I try to write to my c drive, it thinks I mean the server c drive. Don't know much about this. |
 |
|
|
X002548
Not Just a Number
15586 Posts |
|
|
|
|
|