Forum Replies Created

Viewing 15 posts - 2,506 through 2,520 (of 3,348 total)

  • RE: Computed column

    john.arnott (11/8/2010)


    Hmmm. When I run this code to build the table, "Select 1 from #test" returns two rows, each with a "1". It's an implied join, isn't it?

    Create...

  • RE: Predict the total count

    timothy bates (11/8/2010)


    Should I get an error or count 2 instead of 3? :hehe:

    Allthough not explicitly documented, the SQL Server data type supports the Gregorian calendar. The SET LANGUAGE affects...

  • RE: Predict the total count

    mtassin (11/5/2010)


    For instance, you can cast -1 as a datetime. You'll get 1899-12-31.

    This can go back to 1753-01-01, but not to 1752-12-31.

    And *that* is because of the change from...

  • RE: Predict the total count

    SanDroid (11/5/2010)


    Hugo, is the default date format a server level default or user level regional setting?

    Simple question, but with a complicated answer. And I'll start with a disclaimer - I...

  • RE: Predict the total count

    Steve Eckhart (11/5/2010)


    I also didn't want to just run the code to get the question, so I converted July 1, 2010 and January 1, 2010 to integers in Excel. Excel...

  • RE: Predict the total count

    OCTom (11/5/2010)


    Why would the two platforms differ by one day?

    Probably because of February 29, 1900.

    There is no such date. The full rule for leap years is not "evey four years",...

  • RE: Predict the total count

    Terrible question. The only correct answer is "it depends", and that answer was missing.

    If the default language of your server happens to be, for example, British English, you'll get 1...

  • RE: A Faster BETWEEN Dates

    sql.monkey (11/4/2010)


    I have a table with an unindexed date column in a table of billions of rows

    I collect the lowest and highest primary keys between those dates into variables

    I...

  • RE: Using OVER with an Aggregate Function

    tilew-948340 (11/4/2010)


    My engish beeing what it is, I did also not get the differance between the first two answers, but that's ok. I learned something new and it is the...

  • RE: Writing Nearly Codeless Apps: Part 5

    David Ziffer (11/4/2010)


    If you look at the ExampleCRM tables that have foreign keys that are defined for business purposes (not just the status-field foreign key) you will see the function...

  • RE: Using OVER with an Aggregate Function

    Imran Ashraf-452633 (11/4/2010)


    Good question learned something new today.

    (Not targeting you specifically, but everyone who posted and/or will post similar comments)

    The question is good indeed - but please don't learn too...

  • RE: Using OVER with an Aggregate Function

    mislamuddin (11/3/2010)


    If select distinct specified order by item must appear in the select list

    It does. The code window has a scroll bar at the bottom; you'll find the column sstr.StateProvinceID...

  • RE: Writing Nearly Codeless Apps: Part 5

    Hi David,

    I'm surprised to see so little comments yet. But who knows, maybe I'm not the only one with a reading backlog.

    In the beginning of your article, you write that...

  • RE: A Faster BETWEEN Dates

    Hi Terry,

    Thanks for the article.

    It's definitely an interesting approach - but I miss an explanation. WHY does the second version run faster than the first? I would have expected the...

  • RE: Writing Nearly Codeless Apps: Part 4

    Jeff Moden (10/31/2010)


    David Ziffer (10/30/2010)


    I certainly would load rows into a single table as a group, but even those insertions must be done through individual calls to the RAP insertion...

Viewing 15 posts - 2,506 through 2,520 (of 3,348 total)