Forum Replies Created

Viewing 15 posts - 4,276 through 4,290 (of 8,416 total)

  • RE: Foreign key constraints...WHY??

    CirquedeSQLeil (4/3/2010)


    Fair enough. I have yet to see an application do it correctly though.

    It does happen. I'm still a 'database person' though, and would prefer to do it...

  • RE: Get Date only from getdate() function

    Carl Federl (4/3/2010)


    CAST(convert(int, convert(float, getdate() )) AS DATETIME)

    Few of issues with this one.

    1. Relies on undocumented internal implementation details.

    2. Only works with DATETIME - none of the new...

  • RE: Get Date only from getdate() function

    Nabha (4/3/2010)


    Paul White NZ (4/1/2010)


    If there are points available for being obscure...

    SELECT {fn CURRENT_DATE()};

    :w00t: huh? :hehe: (ODBC yeah?)

    Yeah - works in normal Transact-SQL too though!

    Try it!

  • RE: DateTime input with time always at 00:00:00.0000

    Jeff Moden (4/3/2010)


    Heh... you know I'm blind and one eye and can't see out the other before coffee. 😛

    :laugh:

    Can't believe I missed my own comment :blush:

  • RE: Cross tab and Moving running totals

    Has a play with this, and came up with the following, as a proof of concept.

    This creates 100,000 transactions for a customer, and produces the required output.

    Setup

    -- =================

    -- Test object...

  • RE: TSQL

    Good question today - a nice variation on the convert-to-BIT questions of the past. I will freely admit to guessing on this one!

  • RE: SQL Server Login and Windows Auth

    I think I see what you are asking for now.

    See: xp_logininfo

    and: sp_validatelogins

  • RE: Row count difference between SYSINDEXES and SELECT COUNT(*)

    The row counts returned are not guaranteed to be exact - in fact they are documented as being 'approximate'. The numbers you see in the compatibility view 'sysindexes' might...

  • RE: UPDATE from CTE

    Only Joe could whine on about FIPS_FLAGGER and ANSI standards for a day and a half and then accuse someone else of being a whining child!

    ANSI standard UPDATE syntax? ...

  • RE: Are the posted questions getting worse?

    You guys our so funny.

  • RE: Performance Tuning Big Table

    Everyone else seems to have had a go, so here are my thoughts:

    1. This table probably does not benefit from having a clustered index. If the insertions are...

  • RE: very busy disk

    Steve Jones - Editor (4/3/2010)


    But I don't suspect SQL Server 😉

    :laugh:

    Ok, ok, I was talking to 'bag of birds' not you lot!

    Jusy saying...if SQL Server is in anyway responsible (autoshrink?)...

  • RE: Foreign key constraints...WHY??

    PaulB-TheOneAndOnly (4/3/2010)


    Either poster has poor comm skills, has no clue about what he's talking about or is the genious that wrote sql kernel 😀

    :laugh: genious? :laugh:

    Actually, I rather suspect that...

  • RE: very busy disk

    If it is SQL Server-related, you would expect the guilty process to jump out at you from Activity Monitor (IO latch waits/Data File I/O list depending on version).

    You could also...

  • RE: Msg 8134, Level 16, State 1, Line 63 Divide by zero error encountered

    bitbucket-25253 (4/3/2010)


    Yes I am well aware of what sp_foreach uses

    :ermm:...ok! Many people aren't 😉

    They can be useful yes, my comment was tongue-in-cheek 😛

    Shame they're undocumented, though, right?

Viewing 15 posts - 4,276 through 4,290 (of 8,416 total)