Forum Replies Created

Viewing 15 posts - 331 through 345 (of 417 total)

  • RE: Query toolbar does not display for sql files opened from TFS

    Grant Fritchey (2/18/2015)


    Maybe I missed the .sql on the second one. It had the standard name for a window. My bad.

    Yeah, my eyes aren't what they used to be either....

  • RE: WHERE 1 = 1,who uses this besides me

    PHYData DBA (2/19/2015)


    ChrisM@Work (2/19/2015)


    DonlSimpson (2/18/2015)


    ...

    I think it's just lazy though.

    When "lazy" translates to "quick, easy and accurate" it's not so bad.

    That statement says it all.

    It is a perfect example...

  • RE: Want to create random alphanumeric characters for primary key values

    CELKO (2/18/2015)


    I need to create random alphanumeric characters as primary key values when inserting a record [sic]. .. I don't want to use GUID or auto increment integer...

  • RE: WHERE 1 = 1,who uses this besides me

    PHYData DBA (2/18/2015)


    Eric M Russell (2/18/2015)


    Resender (2/2/2015)


    ok this is something of a best practice of mine in my queries

    I always do

    WHERE 1 = 1

    I can't remember where I picked this...

  • RE: Query toolbar does not display for sql files opened from TFS

    Grant Fritchey (2/18/2015)


    Is it possible it's coming in as read only? I work with various source control systems all the time and I'm not seeing a similar issue.

    One difference between...

  • RE: foreach loop in sql

    WHILE@nextpos <> 0

    Begin

    ...

    End

    RBAR!

  • RE: values in two columns?

    aaron.reese (2/8/2015)


    Well said Jeff,

    @joe, it would be lovely to live in your SQL bubble where all RDMS is built and managed by people with 20 years experience, a masters degree...

  • RE: wait for delay inside a fuction

    wannabe1 (1/14/2015)


    i wanna wait for some time(seconds) to get a delta on resources and i want it as a function to sort based on columns

    thanks for the reply.

    What does...

  • RE: Putting Rows together

    CELKO (2/2/2015)


    >> I need some help building a query. I have a table with 4 columns and need to try and put the times together. <<

    And thanks to your bad...

  • RE: Using a column name in a COUNT function

    Sean Lange (1/30/2015)

    Or even this:

    select count(1/0) from myTable

    Ooo, I like that! That could break somebody's brain when they stumbled up it.

    This is cool to the appropriate nerds too:

    select count(distinct...

  • RE: Using a column name in a COUNT function

    mark.finch (1/30/2015)


    and what about Count(0) ? Is that the same result as Count(1)?

    ANY literal value, or non-column name value, acts exactly the same as count(*).

    select count(*) from myTable

    select...

  • RE: Just an idea ...

    Phil Parkin (1/27/2015)


    DonlSimpson (1/27/2015)


    I know this is fairly radical, but I enforce an alphabetic order to the column list in the schema. My only concession is pk first. ...

  • RE: DAte Function

    Any idea why the first query (the one with the parameters) shows a Query cost (relative to the batch): 100%, and the second 0% ? The difference narrows slightly...

  • RE: Just an idea ...

    I know this is fairly radical, but I enforce an alphabetic order to the column list in the schema. My only concession is pk first.

    I got an...

  • RE: ID or Id

    I use ID unless it is followed by another word, e.g. memberIdHistory

Viewing 15 posts - 331 through 345 (of 417 total)