Forum Replies Created

Viewing 15 posts - 31 through 45 (of 529 total)

  • RE: Cursors....here we go again

    For the second case, it is rather simple.

    Just do a joining update ...

    
    
    UPDATE ComponentOrders
    SET OrderDescription = CASE WHEN Component.OrderId <= 100 THEN 'First 100 orders' ELSE...
  • RE: Accessing multiple tables using ASP

    Depending on your needs, you could use 'updateable views'. Some restrictions apply, so you should check them against your needs.

    Another solution (f you don't want to use multiple recordsets) is...

  • RE: database design - vertical partitioning question

    There is no way in which you can pass a tablename as a parameter (without using dynamic SQL). Unless you write a huge IF THEN ELSE structure for each possible...

  • RE: insert,update and delete trigger

    Why the requirement to put everything in one trigger? Makes life complicated, I think...

    You can write a trigger on all three actions.

    
    
    CREATE TRIGGER tr_InsUpdDel ON tableA
    FOR...
  • RE: COALESCE and bit values.

    From BOL:

    quote:


    All expressions must be of the same type or must be implicitly convertible to the same type.


    October 31, 2003 at 3:33 am

    #480416

  • RE: Best way to NOT to RUN a job on a list of dates

    Your original solutions seems OK. The only problem could be if your job that disables the datapopulatejob1 is stuck for some reason, the datapopulatejob1 might never run. And you won't...

  • RE: ways of improving performance ??

    I am pretty sure updating records in batches, in stead of the whole table at once will not improve performance overall.

    It does give you other advantages like locks being released,...

  • RE: Query performance

    quote:


    I tried to add an extra partition (one for each year) but then get the error "User-defined partitions are available only if...

  • RE: SQL Server 7 CAL question

    With 20 CAL's, you can only have 20 concurrent users. For a webserver, one user can be compared to a single session on IIS.

    So for every (concurrent) visitor of any...

  • RE: Tricky SQL Problem

    Alternative solution using (self)joins :

    
    
    Select P1.part,
    P1.Result - P2.Result As Result,
    P1.locationTo,
    ...
  • RE: Conditional @Parameter used in WHERE clause of SP

    This is not possible as you write it. Your solution is to use 'dynamic SQL'. Check BOL for 'EXEC'.

    Your code would look something like :

    
    
    CREATE PROCEDURE...
  • RE: Bit Flag or seperate columns

    IMHO, best practice if you want an extensible system, is to have one base table, say with all the persons filling in the questionnaire; one table with all the questions...

  • RE: Bit Flag or seperate columns

    I was not saying that using a bitmasked field is bad...

    I do believe it has some uses, on the other hand, there are some drawbacks. Just tried to list some.

    I...

  • RE: row-level trigger update

    One way could be to add a trigger to the table and check inside if it is 'the row' that has been changed.

    Another way is to only allow changes to...

  • RE: Bit Flag or seperate columns

    This is a bit of a discussion that is driven by preferences of the DBA (or the developper).

    Some reasons not to use bitmasks :

    1. An integer column can only hold...

Viewing 15 posts - 31 through 45 (of 529 total)