I'm trying to write a general purpose stored procedure to produce a
text file. Why? Because application role security will allow
applications to write to a folder where users on their own are barred.
I keep on getting close to wrapping up this SP, and in fact I can make
it work if the text to be written is purely numeric. However, I am at
my wits end due to inability to get a string variable into the osql
Here is an example of what does work, except that the text file body
is hard-coded in the SP rather ...