Forum Replies Created

Viewing 15 posts - 19,666 through 19,680 (of 26,490 total)

  • RE: CASE Statement

    johan.brohn (7/22/2009)


    Doesnt work when date1 is not null and date2 is null

    Ken McKelvey (7/22/2009)


    CASE

    WHEN COALESCE(date2, 0) < COALESCE(date1, 0)

    THEN date2

    ELSE COALESCE(date1, date2)

    END

    CASE

    WHEN @d1 < COALESCE(@d2,'20991231') THEN @d1

    ELSE @d2

    END

    Actually...

  • RE: Backup-Restore Error

    You can not restore a SQL Server 2008 backup to a SQL Server 2005 system regardless of the compatibility mode of the database.

    If you need to move a database from...

  • RE: Changing the default date format of SQL server 2005

    sarvesh singh (7/22/2009)


    When i do rt click properties on SQL server it says language spanish.

    When i run a query :

    select * from shifthistory where vfrom='2009-07-23 00:00:00'. i get an error.

    ...

  • RE: Device offline

    Not sure what you mean by an external device, but one possible cause could be permissions. A second could be a network error or problem with the network configuration.

  • RE: Standby Backing up

    Just a guess based on my knowledge of backups and restores only, haven't worked in a logshipping environment yet, but no I don't think you can do that.

  • RE: SELECT column puzzle

    Can you provide us with the DDL for the table(s), some sample data (as insert statements), and expected results based on the sample data. From looking at your picture,...

  • RE: Spam from techtargetlists.com

    GilaMonster (7/21/2009)


    Lowell (7/21/2009)


    maybe one of the articles required registration on another site, so you duplicated the same email for registration for that article? check your cookies or firefoxes saved passwords...see...

  • RE: Backup at the time of data loading

    Backups are not logged in the transaction log.

  • RE: Spam from techtargetlists.com

    JohnSQLServerCentral (7/21/2009)


    My software development company has under 50 employees. In addition to SQL DBA, I 'also serve as the Domain Administrator. I've been at this for 20...

  • RE: A Not Equal to Query Statement

    The problem with @sql's version is that the AND in the WHERE clause should be an OR. Change it and check out the results.

  • RE: Spatial Concepts

    I think its fun. Something different to make one think.

  • RE: Looping Statement

    Looking closer at your code, this is in a trigger isn't it.

  • RE: Looping Statement

    Why would you want to change from a set-based solution to a cursor-based (row by row) solution?

    Your current method is more efficient.

  • RE: How to determine if SQL Server and O/S are 32-Bit or 64-Bit?

    Yes. and you are probably running on a X86 version of the OS as well.

  • RE: Standby Backing up

    What kind of standby are we talking about?

Viewing 15 posts - 19,666 through 19,680 (of 26,490 total)