Forum Replies Created

Viewing 15 posts - 4,366 through 4,380 (of 7,429 total)

  • RE: How to report missing rows too

    This would work too, looks a little odd thou

    SELECT

    CASE WHEN Base.AGE IS NULL THEN AgeCtrl.Age ELSE Base.Age END Age,

    CASE WHEN Base.AGE IS NULL THEN 0 ELSE Base.Number END Number

    FROM

    (

    SELECT AGE,...

  • RE: How to report missing rows too

    Maybe make a permanent control table with all the age values 1 - 120 (I doubt anyone over 120), especially if this query will run more than once.

    My query is...

  • RE: Growing Transaction Log

    To look at what is in the Transaction Log you can use a tool like LogExplorer which is very easy to understand, just a bit pricey. Or as posted in...

  • RE: killdatabase... Is it safe?

    quote:


    I don't believe it!!! Microsoft lied!

    The killdatabase method does NOT drop a database regardless of connections, activity or state as it...

  • RE: SQL 2000 IP address storage

    I looked around and found no mention of this. Have you tested the 54 limit on another box? If you get the same problem I would ask MS still, I...

  • RE: Growing Transaction Log

    Depends on several things, one of course is traffic. Another is the database recovery model if you have SQL 2000, if you do bulk inserts and have the database set...

  • RE: tempdb recommended size?

    quote:


    Given that TempDB is recreated every time SQL Server is restarted do you think there is any merit in moving it off...

  • RE: Simple queries intermittantly timing out.

    Let us know if anything changes.

  • RE: Bulk Insert with a twist

    I'll look at tomorrow when I am at a machine with a server.

  • RE: Comparing 2 dates in a where clause

    Try using the RIGHT JOIN and ON syntax, it occurrs before the WHERE clause is done, like this (notes in query)

    SELECT A.case_number, A.case_log_opnd_date, B.updated_timestamp

    FROM Table_A A

    RIGHT JOIN Table_B B

    ON

    B.case_number...

  • RE: Installation

    quote:


    Hardware failure that lost the C: drive. Are those oprhaned data & log files on E: still usable? If so, how?

    Reinstall SQL...

  • RE: Simple queries intermittantly timing out.

    Yeah, you obviously have an unstable table or db going on there. I would make sure you have a copy of the data and be prepared to have to drop...

  • RE: Simple queries intermittantly timing out.

    Maybe the databse and not the tabl;e, try DBCC CHECKDB as well.

  • RE: What's With GetDate() ?

    Actally it is a bit easier to use CONVERT(char,GETDATE(),101) as will output as mm/dd/yyyy. See BOL for more detail on CONVERT and other options available.

  • RE: Comparing 2 dates in a where clause

    SELECT * FROM [case] WHERE

    CASE

    WHEN closed_date > ra_date THEN closed_date

    ELSE ra_date

    END > @input

Viewing 15 posts - 4,366 through 4,380 (of 7,429 total)