Forum Replies Created

Viewing 15 posts - 6,991 through 7,005 (of 14,953 total)

  • RE: Importing data with lots of columns

    When you're importing from text files, or Excel/CSV/etc., one of the little-known (aparently) factors is that SQL uses the top four rows to determine the data type. If it...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Parameter Search

    Would it work to have them type in a delimited list? If so, the query for that is easy.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: SQL Server 2008 Express Edition

    Is your login a local administrator?

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: What is the performance difference between CROSS APPLY and EXISTS clause.

    I'd have to see both versions of the query to really comment on this. Exists is pretty high performance when used correctly, but so is cross apply.

    If you really...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Timing is Everything

    UTC would be better, in my opinion, than local time.

    First, it makes calculating duration easier to calculate, because you can ignore "Spring ahead"/"Fall back" issues.

    Second, it's easy to make the...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Dude, Your Fly is Open

    Good analogy.

    I use all three, depending on the circumstances.

    There have been times where I judged the error just needed to be fixed and nothing really needed to be said, so...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Localhost Image in Report

    Thank you. That helps.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Any way to have MIN take NULLS into account?

    milzs (2/23/2010)


    Thanks guys. This is what I finally got to work (I'm using DATE datatypes)

    NULLIF(MIN(ISNULL(MyDateField, '1/1/1900')), '1/1/1900')

    I was getting "int" conversion errors using values other than '1/1/1900'. I...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Are the posted questions getting worse?

    Elliott W (2/23/2010)


    GilaMonster (2/23/2010)


    Are we geeks or not?

    Yes, nerds NO!

    I have a shirt that proclaims "GEEK" accross the front, just so there is no question..

    CEWII

    By derivation, a "geek" is someone...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Passing null values to Date parameter

    Add "AND @DTStart IS NULL" before the "OR" and see if that does what you need.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Any way to have MIN take NULLS into account?

    Makes sense.

    You posted while I was writing my answer, so I missed your post completely.

    As a second thought, it might be easier to select top 1 and order by the...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: BACKUP FILE

    Most likely, there's empty space available in the database files and/or log files.

    Right-click the database in Management Studio, go to Properties, and look for the Size and Space Available data.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: help with join predicates in FROM clause

    I would need table definitions, insert statements with sample data, and expected results, before I'd be able to venture a solution on this.

    For one thing, I'm not clear on your...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Solving the "Running Total" & "Ordinal Rank" Problems (Rewritten)

    tony rogerson (2/18/2010)


    Yes - I do mean a cursor; a static one and not a "update where current".

    I don't honestly know what your problem is here Paul - even Jeff...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Any way to have MIN take NULLS into account?

    Nest NullIf and IsNull.

    If your datetime column is called MyDate and it's in table MyTable:

    select IsNull(MyDate, 0)

    from dbo.MyTable;

    That will replace the nulls with 0s (datetime 0 = 1 Jan 1900).

    Then:

    select...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

Viewing 15 posts - 6,991 through 7,005 (of 14,953 total)