Writing from a Stored procedure to Flatfile

  • hi Guys,

    I writing a stored procedure using a number of cursors. Each cursor gets a specific set of data, cycles through it creates a very specific Text String (for each row) using the data and then outputs that text string to one of three flatfiles...

    At least it would if I could figure out how to write to the file.

    I think i could get it working using xp_cmdshell but my DBA is somewhat reluctant to give me the permissions.

    Is there any other way to append a string from a sproc to a flatfile??

     

  • Put the results into 1 of 3 temporary table. Once complete, dump the tables to the filesystem using BCP or DTS.

    Are you sure you need cursors ?

     

     

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply