Forum Replies Created

Viewing 15 posts - 3,301 through 3,315 (of 4,087 total)

  • RE: How to select values

    Jonathan AC Roberts (3/5/2012)


    drew.allen (3/5/2012)


    Jonathan AC Roberts (3/5/2012)


    Create a function to split a string into a table:

    The original question was about taking multiple values and storing them in a single...

  • RE: How to select values

    Jonathan AC Roberts (3/5/2012)


    Create a function to split a string into a table:

    The original question was about taking multiple values and storing them in a single variable, not doing the...

  • RE: How to select values

    suresh0534 (3/4/2012)


    by using SET we can set only one value at a time for a variable...so i need to set multiple values for Location variable when user logined with that...

  • RE: How many ways are there to define a "statement_block"?

    fahey.jonathan (3/2/2012)


    IF Boolean_expression

    { sql_statement | statement_block }

    [ ELSE

    { sql_statement | statement_block } ]

    Is your point that "TRY...CATCH"...

  • RE: How many ways are there to define a "statement_block"?

    Let me see if I can rephrase this so that it makes sense.

    DECLARE@MyIntINT = 1

    IF@MyInt = 1

    BEGIN

    PRINT'Begin: Int = 1'

    PRINT'Begin: It really does.'

    END

    ELSE

    PRINT'Begin: Int <> 1'

    This code is parsed as

    IF...

  • RE: How many ways are there to define a "statement_block"?

    fahey.jonathan (3/1/2012)


    So, my questions are:

    1) Is there documentation on what can define a statement_block?

    2) Is "TRY...CATCH" intended to define a statement_block or is that an accident that may be removed...

  • RE: Modify the argument sent to a process task

    If the process task is in an event handler, it can be fired multiple times independently.

    I haven't really used the event handlers, because I found that SSIS' built-in logging was...

  • RE: Need help replicating an algorithm in TSQL Table?

    This formula is jammed with functions—ROW() and INDIRECT()—that depend on the underlying structure of Excel that consists of a grid of cells with each cell having a specific location within...

  • RE: Looping through table records and doing a replace

    TeraByteMe (2/29/2012)


    update #removepgp

    set originalfilename=REPLACE(originalfilename,'.pgp','')

    update #removepgp

    set originalfilename=REPLACE(originalfilename,'.dat.pgp','.txt')

    update #removepgp

    set originalfilename=REPLACE(originalfilename,'.dat.gpg','.txt')

    You need to be careful on the order here. The second update here will never match any records (barring something unusual like...

  • RE: Weird DELETE statement or is legit?

    Just to clarify. INSERT has an optional INTO that is almost never specified, and DELETE has an optional FROM that is almost never specified. In both cases, the...

  • RE: Optimize Query with Highest Cost

    Your function is what is known as a "catch-all" query and these are known to have performance problems. Gail has a very good article about "Catch-all" queries[/url] and how...

  • RE: Trigger or Insert issue: Not generating the correct data

    You still haven't fixed the FATAL FLAW that you were warned about in this thread http://www.sqlservercentral.com/Forums/FindPost1256724.aspx.

    Someone (SQL KIWI maybe) mentioned that one company had gone out of business, because they...

  • RE: How do I return only entries with multiple categories in a junction table?

    CELKO (2/23/2012)


    Start using the ANSI/ISO row constructors

    Evil Kraig F (2/27/2012)


    Nah, I much prefer something that makes sense to the people I work with instead of forcing them to conform to...

  • RE: Pivot/Unpivot

    Alexander G. (2/27/2012)


    Hoping to be more helpful and less snotty than others:

    I'm a firm believer in the old aphorism, "Give a man a fish and you feed him for a...

  • RE: Pivot/Unpivot

    From the title it's obvious that you know you should be using the PIVOT/UNPIVOT to accomplish the task, but the text of your question indicates that you have no idea...

Viewing 15 posts - 3,301 through 3,315 (of 4,087 total)