Forum Replies Created

Viewing 15 posts - 2,326 through 2,340 (of 5,109 total)

  • RE: using araylist in stored proc

    Lynn Pettis - Saturday, December 30, 2017 3:14 PM

    You are correct, 4000, not 2000.  It is Saturday and I have...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: using araylist in stored proc

    Lynn Pettis - Saturday, December 30, 2017 2:52 PM

    Thom, you may want to use NVARCHAR(MAX) for the dynamic SQL.  Only allowing 2000...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Are the posted questions getting worse?

    Ed Wagner - Saturday, December 30, 2017 1:37 PM

    It looks like you put some real effort into that thread.  You gave...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: using araylist in stored proc

    Just noticed an error in my UPDATE script. New version below (and full script attached again):

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: using araylist in stored proc

    Have a look at Table-Valued Parameters, specifically the section titled "Configuring a SqlParameter Example". It explains everything you need on how to use those SP's I provided from...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: using araylist in stored proc

    No, don't use a cursor.

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: using araylist in stored proc

    You can define table parameters in C#. I'd suggest keeping with the Custom Table Data Type and incorporating it into your application, rather than a delimited string.

    Have a...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Are the posted questions getting worse?

    Thom A - Saturday, December 30, 2017 8:35 AM

    As it stands, this is really a disaster waiting to happen: https://www.sqlservercentral.com/Forums/1914914/using-araylist-in-stored-proc

    Really hope...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: using araylist in stored proc

    Ok, that was a lot of work... Now, I'm made the comment in the script I've made as well, however, I'm going to repeat i'm not 100% happy with this....

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: using araylist in stored proc

    natigsqlserver - Saturday, December 30, 2017 9:06 AM

    yes i was understand 
    but ned pass column name and values for insert and update...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: using araylist in stored proc

    natigsqlserver - Saturday, December 30, 2017 8:57 AM

    Thom A - Saturday, December 30, 2017 8:51 AM

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: using araylist in stored proc

    I'll start off with an introduction anyway. This version below will avoid injection. I've commented the lines, which should help you understand what it's doing. if however, you don't, please...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Are the posted questions getting worse?

    As it stands, this is really a disaster waiting to happen: https://www.sqlservercentral.com/Forums/1914914/using-araylist-in-stored-proc

    Really hope the OP entertains fixing the real problem, and it's fixed, before any one starts...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: using araylist in stored proc

    natigsqlserver - Saturday, December 30, 2017 8:16 AM

    Thom A - Saturday, December 30, 2017 7:47 AM

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: using araylist in stored proc

    Grrr... Firefox crashed. Let's start again.

    Ok, so, firstly, Let's start simple. We'll use your Stored Procedure and pass the following values (note I have removed the

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

Viewing 15 posts - 2,326 through 2,340 (of 5,109 total)