Forum Replies Created

Viewing 6 posts - 49,546 through 49,552 (of 49,552 total)

  • RE: Question of the Day for 15 Jun 2004

    There are actually two things wrong, the one the correct answer refers to and the additional problem that on an insert, no records will be inserted due to the inner...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Assigning Multiple Variables

    Select @var1=col1, @var2=col2 from table where....

    HTH

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Converting DATETIME to NUMERIC

    The integer portion of a datetime is the date and the fractional is the time. I don't know the details of how it's stored though.

    What are you trying to do...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: pls answer toi my date problem

    For some reason I couldn't reply to your other post...

    I've found that inserting a date into SQL in the format yyyy/mm/dd is often best. It's unambiguous.

    Maybe you can switch the...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Clustered Index need Primary keys?

    By default, a primary key is supported by a unique clustered index, so by dropping the key and creating the index you won't be gaining anything.

    You will gain if...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Return date only from getdate()

    Alternatively if you want to avoid the conversion to char

    select count(*) from WHERE

    cast(floor(cast([datetime] as float)) as datetime) = cast(floor(cast(getdate() as float)) as datetime)

    The above is faster than a...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 6 posts - 49,546 through 49,552 (of 49,552 total)