Forum Replies Created

Viewing 15 posts - 271 through 285 (of 582 total)

  • RE: Temp Tables Vs Nested Inner Query - Comparison

    POST THE CODE

    Tim Wilkinson

    "If it doesn't work in practice, you're using the wrong theory"
    - Immanuel Kant

  • RE: LIKE ''''%'''' vs IS NOT NULL (more bad code?)

    might be worth trying

    >=

    ''

    then.

    Tim Wilkinson

    "If it doesn't work in practice, you're using the wrong theory"
    - Immanuel Kant

  • RE: Timesheet Grid View Query

    Yes it would.

    Tim Wilkinson

    "If it doesn't work in practice, you're using the wrong theory"
    - Immanuel Kant

  • RE: Float as primary key

    Agree float is absolutely inappropriate for a surrogate key.

    The efficency of a key column depends mainly on two things: how big it is, and how straightforwardly it is compared.

    Using character data...

    Tim Wilkinson

    "If it doesn't work in practice, you're using the wrong theory"
    - Immanuel Kant

  • RE: ODBC support JOINS?

    POST THE CODE !!!!

    Tim Wilkinson

    "If it doesn't work in practice, you're using the wrong theory"
    - Immanuel Kant

  • RE: Trigger in SQL2k causing ASP.NET web page to timeout, help

    There's no way you should have a trigger that takes 20s. Optimise the code or get it out of the trigger and do it some other way. Doing it in a...

    Tim Wilkinson

    "If it doesn't work in practice, you're using the wrong theory"
    - Immanuel Kant

  • RE: Data types and sizing for commonly used fields.

    There is no advantage from the POV of storage or efficiency in reducing the maximum size of varchar fields. The only reason to do so is to avoid overrunning the...

    Tim Wilkinson

    "If it doesn't work in practice, you're using the wrong theory"
    - Immanuel Kant

  • RE: Anyone have ideas how to solve deadlock problems

    Because all inserts have to occur at the 'same' point i.e. at the end.

    Of course there are about 587 other considerations which also feed into the decision process...

    Tim Wilkinson

    "If it doesn't work in practice, you're using the wrong theory"
    - Immanuel Kant

  • RE: Deleting duplicate records

    >(pretty cool... even though he didn't test it {had 2 "AS" in it}, he almost got it right)...

    Even cooler when no-one realises you haven't tested it!

    BTW, MAX() might be...

    Tim Wilkinson

    "If it doesn't work in practice, you're using the wrong theory"
    - Immanuel Kant

  • RE: Anyone have ideas how to solve deadlock problems

    It's only a problem if access to this table is done in a multiple-statement transaction, or if for some bizarre reason you used a massive query to read and write from...

    Tim Wilkinson

    "If it doesn't work in practice, you're using the wrong theory"
    - Immanuel Kant

  • RE: Anyone have ideas how to solve deadlock problems

    Jeff M: >If someone was foolish enough to build an Oracle-like "sequence table" (for next ID's and the like), first, find them and shoot them out of a cannon...

    Tim Wilkinson

    "If it doesn't work in practice, you're using the wrong theory"
    - Immanuel Kant

  • RE: Need to Tune Query

    Both tables being scanned, one repeatedly (the lazy spool.) Put a compound index on all join columns on both tables, in the same order on both tables. Add any remaining columns...

    Tim Wilkinson

    "If it doesn't work in practice, you're using the wrong theory"
    - Immanuel Kant

  • RE: What is the best way of restoring databases?

    EM = Enterprise Manager

    SSMS = SQL Server Management Studio

     

    Tim Wilkinson

    "If it doesn't work in practice, you're using the wrong theory"
    - Immanuel Kant

  • RE: How Many Processes at the same time?

    For point-in-time, look at sysprocesses. If a series of snapshots rather than a complete audit is ok, you could just poll it every few seconds. I don't think that would...

    Tim Wilkinson

    "If it doesn't work in practice, you're using the wrong theory"
    - Immanuel Kant

  • RE: Casting error

    It's not necessarily a mistake to store the values as varchar. Often ID 'numbers' are not really numbers, even though they may be restricted to a very limited subset of...

    Tim Wilkinson

    "If it doesn't work in practice, you're using the wrong theory"
    - Immanuel Kant

Viewing 15 posts - 271 through 285 (of 582 total)