Forum Replies Created

Viewing 15 posts - 1,396 through 1,410 (of 1,988 total)

  • RE: Today's Random Word!

    Ed Wagner (4/6/2016)


    djj (4/6/2016)


    Grumpy DBA (4/6/2016)


    Revenant (4/6/2016)


    Morgan

    Fairchild

    Unfair

    Politicians

    Card

  • RE: Replace a capital letter in a string

    Try this,

    REPLACE(value COLLATE Latin1_General_Bin, 'X', '/')

  • RE: Would You Move For a Job?

    Rod that entirely depends on your situation, if you have no particularly important ties to where you are and the ability to live without income for awhile it's definitely worth...

  • RE: Today's Random Word!

    Grumpy DBA (4/5/2016)


    Ed Wagner (4/5/2016)


    Sunrise

    Sunset

    Pegasus

  • RE: About Index - Can we create a nonclustered index on clustered index column

    p.shabbir (4/5/2016)


    Thnx Gail,

    So, finally no use of creating nonclustered index on clustered indexed column since there will be diff in milliseconds for both indexes right?

    Just to clarify, are you referring...

  • RE: Code smells versus transgressions

    GPO (4/4/2016)


    If an application is that badly coded there's little you can do on the database side to fix it.

    I would have thought that's one reason why you put constraints...

  • RE: Code smells versus transgressions

    GPO (4/4/2016)


    On the other hand if SQL is the system of record they do not and are a very handy tool to use.

    We're talking about two different kinds of unique....

  • RE: Code smells versus transgressions

    GPO (4/4/2016)


    there are perfectly valid reasons to do this, for example order numbers

    Well... kinda. I don't think I explained myself very well. My apologies. Incrementing integers CAUSE uniqueness. They don't...

  • RE: Today's Random Word!

    crookj (4/4/2016)


    ThomasRushton (4/4/2016)


    crookj (4/4/2016)


    Ed Wagner (4/4/2016)


    Grumpy DBA (4/4/2016)


    DonlSimpson (4/4/2016)


    Redsox

    WhiteSox

    Cubs

    Skysox

    SmellySocks

    Deadsox (All zombie team)

    Mutant

  • RE: Find out the record with that falls in the date range

    SQL_Surfer (4/4/2016)


    Price will never overlap.

    Then that's relatively simple,

    SELECT * FROM #temp WHERE ValidFrom IS NULL OR (ValidFrom >= getdate() AND (ValidTo IS NULL OR ValidTo <= getdate()))

    That's assuming that...

  • RE: Code smells versus transgressions

    :exclamationmark: Using incrementing integers to cause uniqueness, instead of using an understanding of the business and constraints to enforce uniqueness.

    In all fairness there are perfectly valid reasons to do this,...

  • RE: Error in dynamic sql

    sp_executesql should be able to handle a NVARCHAR(MAX) so that shouldn't be the issue, it's likely one(or more) of the values you're trying to use to generate the sql has...

  • RE: Error in dynamic sql

    Can you try running it with simpler metadata in the table it's building the dynamic SQL from? If possible only 1 return row, that should make it easier to...

  • RE: Error in dynamic sql

    And what are the results from this?

    PRINT @v_sql;

  • RE: On formatting SQL code

    There's some pretty basic rules for formatting that I use that I guess I'm just so used to they don't add any overhead what I'm doing. But simple things...

Viewing 15 posts - 1,396 through 1,410 (of 1,988 total)