Forum Replies Created

Viewing 8 posts - 16 through 23 (of 23 total)

  • RE: The Best Kept Secret About SQL Query Analyzer

    I didn't get much out of the article but I hadn't noticed the Date | Text to columns... feature of Excel before. Thanks for that. I've been using...

  • RE: Ranking rows

    I realize this is two years later but here's a way to simulate the rank function.

    create table #x ( playerID int, score int );

    insert into #x ( playerID, score )

    ...

  • RE: Worst Practices - Making Databases Case Sensitive (Or Anything Else)

    I'll have to agree that it's a matter of perspective and preference. My preference would be for object names to be both case sensitive (you have to use the...

  • RE: The DBA Whoops

    I've done a DTS table transfer from a staging server to production and misinterpreted what the Include all dependent objects checkbox meant. In this case the production server was...

  • RE: Suggestions for Datatypes

    That may be true for _most_ programming languages, but the .NET framework supports SmallDateTime (v 2.0) in the System.Data.SqlTypes namespace.

  • RE: UPDATE the same row multiple times in one query

    Thanks for your help, Joe.

    I am an application developer by trade and through necessity became a self taught mssql developer - I know, a dangerous combo. Anyway,...

  • RE: UPDATE the same row multiple times in one query

    Here's some sample data.

    table1 before

    key, value, status

    1, null, null

    2, null, null

    3, null, null

    4, null, null

    table2

    key, value, status

    1, 5, 'A'

    1, 2, 'A'

    2, 6, 'U'

    4, 3, 'A'

    4, 9, 'U'

    4, 7, 'A'

    table1 after

    key,...

  • RE: What You Dont Know

    Good article.  Maybe another bit of syntax to mention is how to deal with aggregates.  e.g. SUM(Amount) vs SUM(ISNULL(Amount,0)) vs ISNULL(SUM(Amount),0).

Viewing 8 posts - 16 through 23 (of 23 total)