Forum Replies Created

Viewing 15 posts - 3,361 through 3,375 (of 8,731 total)

  • RE: HEX conversions

    Igor Micev (2/15/2016)


    Was this inspired from QotD "Converting hex values" on Feb 9 ?

    "repeating is the mother of knowledge"

    Thanks

    I was thinking the exact same thing.

  • RE: Identify procs referencing user-defined table type

    Having that issue right now, the problem comes not when the type is in the code, but when it's a parameter. An easy way to find problems would be like...

  • RE: Window function to expand row into multiple rows?

    Jacob Wilkins (2/12/2016)


    No need to use window functions. A simple CROSS APPLY will do the trick.

    SELECT [OrderNumber]=OrderID,

    [User]=x.[User]

    FROM dbo.Orders CROSS APPLY (SELECT...

  • RE: Today's Random Word!

    DonlSimpson (2/12/2016)


    crookj (2/12/2016)


    djj (2/12/2016)


    Ed Wagner (2/12/2016)


    Grumpy DBA (2/12/2016)


    Ed Wagner (2/11/2016)


    DonlSimpson (2/11/2016)


    Hugo Kornelis (2/11/2016)


    Anyway, back to out regular scheduled content for this topic....

    Ed Wagner (2/11/2016)


    Skynet

    Terminator

    Resistor

    Resistance

    Futile

    Borg

    android

    synthezoid

    Vision

    blurred

  • RE: Are the posted questions getting worse?

    Grumpy DBA (2/12/2016)


    ^ Okay, I can't take it any more, link please...

    (background noise - popcorn is popping)

    http://www.sqlservercentral.com/Forums/Topic1760779-2799-1.aspx

    I was going to comment on that thread, but I got lost with some...

  • RE: Calculating YOY data assistance

    I would actually remove THEYEAR, THEMONTH & Month-Year columns and leave them as formatted values in SSRS.

    Here's an option:

    CREATE TABLE POSTING(

    POSTING_ID INT IDENTITY(1,1),

    ...

  • RE: Are the posted questions getting worse?

    Grumpy DBA (2/12/2016)


    Luis Cazares (2/12/2016)


    Wouldn't having the power switch close make Jason its biggest threat?

    Yes, and once the server rack realizes that... goodbye Jason.

    If we're possitive, maybe the server rack...

  • RE: The RPO

    djj (2/12/2016)


    sestell1 (2/12/2016)


    I was confused by the transaction logs being "from midnight on". What is that relative to? :angry:

    My comment also. I was thinking you stopped transaction...

  • RE: Are the posted questions getting worse?

    Ed Wagner (2/12/2016)


    Grant Fritchey (2/12/2016)


    jasona.work (2/11/2016)


    Ed Wagner (2/11/2016)


    jasona.work (2/11/2016)


    Grumpy DBA (2/11/2016)


    At least he didn't name it WOPR ("shall we play a game?").

    No, that's one of my domain controllers.

    It's an older...

  • RE: Calculating YOY data assistance

    Here's some sample data (which you should have posted) and a shorter version of your query.

    What should the results look like for this data?

    CREATE TABLE POSTING(

    POSTING_ID...

  • RE: Select from tables dynamically (table is variable)

    There's actually a good method to validate table names.

    This is a generic example that you need to adapt to your needs. An invalid table name won't do anything.

    DECLARE @table_name sysname...

  • RE: Creating Snippets

    Steve Jones - SSC Editor (2/9/2016)


    bump

    Does this means that an article on this could be interesting?

  • RE: need help to write a query

    Did you try something like this?

    SELECT o.*,

    COALESCE( NULLIF( o.t_wght, 0), x.t_wght, 0)

    FROM [TBRTEK002] o

    OUTER APPLY (

    ...

  • RE: TVF suddenly slow

    I'd encourage Scott's suggestion. You might be missing something in the code that can be improved.

  • RE: Convert date to MMDDYYYY

    micang (2/10/2016)


    Orlando Colamatteo (2/9/2016)


    The performance of FORMAT is very poor when used over large sets of data which is unfortunate because the syntax is more readable than any of the...

Viewing 15 posts - 3,361 through 3,375 (of 8,731 total)