• jayoub1 (5/18/2013)


    Thank you very much for replying

    The reason I would not be able to use these tools is that the user needs to be able to enter a start date, end date and SSN number to generate the report. The use must be able to access the report any time they want. I don’t think the users have access to these tools.

    I spoke to a developer after posting and he said that you would need to change the file to .asp and then place it on a web server that the user can access. He said that the script would need to be modified with the correct connection string and table and field references before it would work.

    Aside from the developers creating a program I need a solution that a user can generate a CVS file and the specs for the output are as follows:

    Example:

    Position 0-9 = SSN

    Position 10-22 = First Name

    Position 23-35 = Last name

    Position 36- … = …

    Do you know if report server will do the job. I know I can write the query to extract the data, but the users must be able to generate it and it must be delivered as a CVS

    Your help is appreciated.

    As Lowell stated previously there just isn't enough information here to provide much help. We can't see your screen, we don't know the project and we are not familiar with the data structures.

    I suppose you could create an asp page to capture the parameters (SSN, dates, etc) and have that page call your stored proc. I would agree with Lowell that a CLR is probably a good candidate here. Have your proc generate the file, return it to your asp page and then send the file as an attachment in the header.

    _______________________________________________________________

    Need help? Help us help you.

    Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.

    Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.

    Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
    Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
    Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
    Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/