• can you add CLR procedures?

    writing to a file is very, very easy if you add some CLR's;

    i've got a simple example out on codeplex that i wrote as a proof of concept:

    http://sqlclrexport.codeplex.com/

    an example call would be like this; a CLR has access ot any table, temp table or table variable, if it is in scope and the calling user has permissions, of course.

    EXECUTE CLR_ExportTableAppendToCSV @TableName = '@Log',

    @FilePath = 'C:\Data\Logging',

    @FileName = 'Procedure_logging.csv',

    @IncludeHeaders = 1

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!