Forum Replies Created

Viewing 15 posts - 3,916 through 3,930 (of 6,486 total)

  • RE: Update or Insert from one table to another

    aaharris (3/27/2008)


    Thanks for the advice, Ian.

    I did actually think about doing it that way when I planned out the db structure, but decided against it mainly for two reasons:

    1) ...

  • RE: SQL Server 2005, no 9.0 engine???

    Mike - what does SELECT @@VERSION tell you? That will tell you what database engine you're running. I'm sorry to say - I suspect it's going to...

  • RE: Huge table update

    Also - I could swear that SET ROWCOUNT was "on its way out", i.e. being deprecated. I will have to see if I can dig that up.

  • RE: Huge table update

    The TOP syntax works for me if you put the TOP between the UPDATE and the name of the affected table.

    As in -

    UPDATE Top(@rowsperbatch)

    ...

  • RE: CASE vs IF/THEN/ELSE

    Agreed - like CRC mentioned, CASE conditionally adjusts the row output, but it doesn't filter rows (prevent them from being displayed). Add a WHERE clause, and use that to...

  • RE: The Credit Debate

    Grant Fritchey (3/28/2008)


    Honestly, neither.

    What scares me is medical data. I was working for a software start-up that provided software to doctors. Not only did it store full patient history, but...

  • RE: Coding suggestions: better ( or proper) ways for query

    If I understand it right (I did end up needing the data to figure this out) - you're looking to pull out the latest rowcounts by table, and compare them...

  • RE: DW Incremental Load

    There are quite a few articles in the Articles section dealing with just that... Among which:

    Anatomy of an incremental Load[/url]

  • RE: Long Distance Backups

    This might be heretical to some, but here goes anyway... Is there a critical reason to do every office every day? I mean - I see what you're...

  • RE: HD 100% busy

    There's a SQL Server Tuning and Performance guide for Intel LanDesk here:

    http://community.landesk.com/support/docs/DOC-2356

    you might care to spend some time in there. According to it - you have an "IO bottleneck".

    How...

  • RE: XML Workshop XVII - Writing a LOOP to process XML elements in TSQL

    Christopher Ford (3/27/2008)


    According to the link:

    SUM(OrderQty) OVER(PARTITION BY SalesOrderID)

    That works fine...

    Why can't I remember what it was about that, that would be really nice to have...Several people have...

  • RE: Need help with calculation desperately!

    Adam Haines (3/27/2008)


    Thanks for doing the legwork :). I have been learning a lot of new stuff, in the past few days 😀

    Notice I just said "it runs", and...

  • RE: Need help with calculation desperately!

    This runs:

    drop table #mytemptest

    go

    create table #mytemptest (id int identity(1,1) primary key clustered,

    ...

  • RE: Need help with calculation desperately!

    Adam Haines (3/27/2008)


    Matt, can you use over with the sum of a calculation? I have never tried, but I believe the over is used for deterministic columns. Like...

  • RE: Preferred syntax for looping through a cursor

    cjudge (3/27/2008)


    Matt,

    Yes, the @@fetch_status test was mistyped in the second example - proves that code should never be cut-and-pasted.

    I appreciate your thoughtful answer: rather than telling me not to...

Viewing 15 posts - 3,916 through 3,930 (of 6,486 total)