Forum Replies Created

Viewing 15 posts - 1 through 15 (of 49 total)

  • RE: IDENTITY(1,1) doesn't work, from 17 jumped to 1001

    Dan Guzman - Not the MVP (12/19/2014)


    Gaps I don't mind, but really 1000 or 10,000 at a time? It's too much. I guess if you only reboot once...

  • RE: IDENTITY(1,1) doesn't work, from 17 jumped to 1001

    Also note that with Replicated Tables you can/will also have gaps, as each subscriber of the published Table is pre-allocated a range of IDs it can use.

  • RE: 4-4-5 Calendar Functions, Part 1

    ian.fickling (9/6/2010)


    Still not clear to me how you have resolved the week on week comparison.

    Each month has field which states how many weeks it has, this year and last (4...

  • RE: 4-4-5 Calendar Functions, Part 1

    ian.fickling (9/6/2010)


    ...

    As Cliff Corder mentioned earlier the diggest difficulty with 445/444 is that you end up with 364 days a year. Each year your calendar drifts a day eventually after...

  • RE: 4-4-5 Calendar Functions, Part 1

    Not SQL-related, but in Excel I created a staff incentive scheme for a company using 4-4-5 ,and then had to 'adjust' every 3 or 4 years to bring the weeks...

  • RE: Create Database

    I'm surprised that this is treated as a T-SQL issue rather than Administration, as I regard database space creation as Admin.

    To me, T-SQL stands for 'Transaction(al) SQL', and I...

  • RE: Weird datetime conversions

    Ah! I see ... Like those psychological tests where what they're testing is not what they tell you they're testing, because if you knew what they were *really* testing then...

  • RE: Weird datetime conversions

    Hasn't anybody noticed that the *none* of the 'weird datetime conversions' answer options actually gave the answer (1899-12-31 00:00:00.000) ??

  • RE: MAX

    I expected that I'd get the 0 result, but wasn't sure about the message. Anyway, I got

    "

    (1 row(s) affected)

    (1 row(s) affected)

    (1 row(s) affected)

    Warning: Null value is eliminated by an...

  • RE: SELECT FUN

    I got it right (guessed that it would sort alphabetically to remove duplicates, but that's not guaranteed, as mentioned)

    However, I reckon that *none* of the answers are (or should that...

  • RE: Polymorphed Proc

    IANAL = I Am Not A Lawyer

    ^H = control-H = backspace 1 char (old Teletype/CPM/MS-DOS control sequence), gives IANA = I Am Not A

    DBA = .. this is left as...

  • RE: Polymorphed Proc

    I got it wrong, but nothing to do with the use of the word 'GO'.

    As I calculated in my head what would happen, I had to make a guess as...

  • RE: Identity puzzle

    Tim Wilson-Brown (3/3/2009)


    I'll leave you with the challenge of parsing the output from DBCC CHECKIDENT.

    SQL Server should act like a Finite State Machine, to be able to predict its behaviour...

  • RE: T-SQL

    ramu.valleti (2/18/2009)


    And actually there are two answers.

    {emphasis changed by brewmanz}

    2009-01-31 00:00:00.000, 2009-01-31 00:01:01.000, 2009-01-31 12:59:59.128

    ...

    2009-01-31 00:00:00.000, 2009-01-31 00:01:01.000, 2009-01-31 21:59:58.347

    Please explain how you got 2009-01-31 12:59:59.128 (as in, ending with...

  • RE: T-SQL

    Hugo Kornelis (2/17/2009)


    Finally, the datetime datatype is not inexact. It is basically a counter of the number of 1/300 second intervals since a fixed starting point (midnight of Jan 1st,...

Viewing 15 posts - 1 through 15 (of 49 total)