Hi all,
I'm using sql-2005 on win 2k3 64-bit. I have a process that needs to write a csv file to a network share from a stored procedure.
I've used the sp_OAMethod to write simple text log files, so I have a few questions.
sp_OAMethod does fine when writing to a disk local to the server but does not seem to want to write to a unc share--is this something that can be overcome syntactically or via permissions?
Is sp_OAMethod the best way to write the file or are there newer possibly cleaner methods? (by 'cleaner' I just mean that sp_OAMethod seems klunky--but maybe it's the best way--that's why I'm asking).
Is there a 'pre-built' function to output a set of data in csv format? I have a test procudure working where I create the csv 'by hand', but as I was writing it I kept thinking there must be something already existing for this.
Thanks very much for any help and advice,
--Jim
I'm using sql-2005 on win 2k3 64-bit. I have a process that needs to write a csv file to a network share from a stored procedure.
I've used the sp_OAMethod to write simple text log files, so I have a few questions.
sp_OAMethod does fine when writing to a disk local to the server but does not seem to want to write to a unc share--is this something that can be overcome syntactically or via permissions?
Is sp_OAMethod the best way to write the file or are there newer possibly cleaner methods? (by 'cleaner' I just mean that sp_OAMethod seems klunky--but maybe it's the best way--that's why I'm asking).
Is there a 'pre-built' function to output a set of data in csv format? I have a test procudure working where I create the csv 'by hand', but as I was writing it I kept thinking there must be something already existing for this.
Thanks very much for any help and advice,
--Jim