Forum Replies Created

Viewing 15 posts - 31 through 45 (of 98 total)

  • RE: Exporting to Excel Using a CLR Stored Procedure

    bret.lowery (12/8/2009)


    That method does not work on 64-bit SQLm the CLR method does

    Which method does not work? You may need to be more specific or quote the post you were...

    [font="Arial"]_______________________________________________________
    Change is inevitable... Except from a vending machine.[/font]

  • RE: Exporting to Excel Using a CLR Stored Procedure

    OK, got somewhere on the multi-line entries.

    This method may go horribly wrong if you have special characters such as ampersand, gt, lt etc since currently it's writing raw text.

    Working on...

    [font="Arial"]_______________________________________________________
    Change is inevitable... Except from a vending machine.[/font]

  • RE: Exporting to Excel Using a CLR Stored Procedure

    irozenberg (12/4/2009)


    Forget about EXCEL, I like an idea to have a SINGLE point of execution for ANY Stored procedure in database. Will try for output parameters....

    The point of this is...

    [font="Arial"]_______________________________________________________
    Change is inevitable... Except from a vending machine.[/font]

  • RE: Exporting to Excel Using a CLR Stored Procedure

    Just need to get this pesky carriage return issue sorted now.

    Tried the commented line but only allowed whitespace, \ n and \r there:

    settings.Indent = true;

    //settings.NewLineChars = "& #xA;";

    [font="Arial"]_______________________________________________________
    Change is inevitable... Except from a vending machine.[/font]

  • RE: Exporting to Excel Using a CLR Stored Procedure

    See, where I will find this really handy is the following scenario...

    SSRS report with multiple tables. Two summaries and a detailed list for instance.

    When a user exports it to excel...

    [font="Arial"]_______________________________________________________
    Change is inevitable... Except from a vending machine.[/font]

  • RE: Exporting to Excel Using a CLR Stored Procedure

    Anders Pedersen (12/4/2009)


    Josep,

    I don't have that situation here, I would just transfer the data directly from SQL to SQL. The solution should be obvious! ImportFromExcel.DLL !!! Get...

    [font="Arial"]_______________________________________________________
    Change is inevitable... Except from a vending machine.[/font]

  • RE: Exporting to Excel Using a CLR Stored Procedure

    Right, I've been doing some more investigation on the issue of carriage returns.

    I changed

    output = dr[dc].ToString().Trim();

    to

    output = dr[dc].ToString().Trim().Replace(Environment.NewLine, "& #xA;");

    & # (space added here to avoid displaying as a CR...

    [font="Arial"]_______________________________________________________
    Change is inevitable... Except from a vending machine.[/font]

  • RE: Exporting to Excel Using a CLR Stored Procedure

    Derek.Seal (12/3/2009)


    Great little bit of code but it still does not get me passed a very anoying problem..... which leads me to believe its my set up not the code...

    [font="Arial"]_______________________________________________________
    Change is inevitable... Except from a vending machine.[/font]

  • RE: Exporting to Excel Using a CLR Stored Procedure

    Marvelous on the key thingymajig.

    In addition I also have a separate Tools DB where I keep things like this, tally tables, regex CLRs etc.

    Mainly that means I have a single...

    [font="Arial"]_______________________________________________________
    Change is inevitable... Except from a vending machine.[/font]

  • RE: Exporting to Excel Using a CLR Stored Procedure

    Adrian Charles Chetwynd-Talbot (12/2/2009)


    does anybody know of a full proof way of migrating data from excel to sql server using stored procedures especially where the data may contain hidden characters...

    [font="Arial"]_______________________________________________________
    Change is inevitable... Except from a vending machine.[/font]

  • RE: Exporting to Excel Using a CLR Stored Procedure

    alex-743051 (12/2/2009)


    I just can use VBA in the Excel worksheet to perform same task:

    I've used similar in the past but it does not cover the fact that with this, the...

    [font="Arial"]_______________________________________________________
    Change is inevitable... Except from a vending machine.[/font]

  • RE: Exporting to Excel Using a CLR Stored Procedure

    It would be really, really nice if people could actually read the previous comments and realise that 95% of the comments so far are just one liners asking for the...

    [font="Arial"]_______________________________________________________
    Change is inevitable... Except from a vending machine.[/font]

  • RE: Exporting to Excel Using a CLR Stored Procedure

    evgeny-745697 (12/2/2009)


    Hi,

    2 questions:

    1. Will it work on SQL 2005?

    2. Will I need to install Excel or other Office components on SQL Server machine?

    Thanks,

    Evgeny.

    1: It does say that it has been...

    [font="Arial"]_______________________________________________________
    Change is inevitable... Except from a vending machine.[/font]

  • RE: Exporting to Excel Using a CLR Stored Procedure

    Calm down everyone. Source has already been asked for repeatedly. Give it time.

    Thanks for opening this alternative avenue.

    It looks as if it could be a bit more flexible than the...

    [font="Arial"]_______________________________________________________
    Change is inevitable... Except from a vending machine.[/font]

  • RE: Let's Talk Ownership (and SQL Jobs)

    Yeah. I'd be really worried about the security implications of this.

    I thought it was a great article highlighting the problems that can arise from personally owned jobs.

    Between it and the...

    [font="Arial"]_______________________________________________________
    Change is inevitable... Except from a vending machine.[/font]

Viewing 15 posts - 31 through 45 (of 98 total)