Forum Replies Created

Viewing 15 posts - 256 through 270 (of 530 total)

  • RE: "OTHER" Logic in SQL Server

    You could 'build' the hierarchy dynamically in your order by :

    SELECT TOP 1 answer FROM lookup
    
    WHERE (id1='100' or id1='other')
    AND (id2='100' or id2='other')
    AND...
  • RE: Exists versus IN

    OK. Don't know if this is an answer to my post or not? Did you try that and did it return the right data? If not, try posting some (relevant)...

  • RE: Exists versus IN

    Yep, your right, stupid me ...

    You should of course add a 'join' on the UPC_EAN code to the WHERE of the EXISTS.

    ... AND...
  • RE: Exists versus IN

    Strange...

    Maybe same problem with the WHERE clause:

    Add the IM2.Vendor to the subquery in your EXISTS clause.

  • RE: Exists versus IN

    Long, long time ago, someone posted comparable problems in a thread about using IN vs EXISTS.

    If I recall correctly, you should fully qualify the UPC_EAN in the EXISTS clause. Otherwise...

  • RE: Login failed for user

    Are you using SQL or Windows Authentication?

  • RE: Slow Distinct Query

    The difference originates from the use of the GROUP BY clause.

    In your first query, SQL Server will build the complete result set, gathering all data for each and every f.fund...

  • RE: something similar to forking a separate process

    I would try using a DTS task for this. The ASP page can then trigger the DTS task, for which you don't have to wait until completion.

    Another way is to...

  • RE: Trigger not firing

    Are you sure it's not a problem with the Update statement. If you look up the topic 'INSTEAD OF UPDATE trigger' in BOL, you can read that

    June 26, 2003 at 4:24 am

    #463199

  • RE: re: Reporting off your database

    You have a number of possibilities, based on the $$$ you want to spend.

    First off, you could buy a decent reporting package like Cognos or Business Objects. They both perform...

  • RE: Update Trigger Help...?

    You should include some sort of join to the inserted or deleted table instead of referring to the ClientBased table.

    
    
    CREATE TRIGGER UPDATESEV_ClientBased
    ON ClientBased
    FOR Update AS
    IF UPDATE(SEV)
    BEGIN
    ...
  • RE: 4 hour plus query

    If you do run into performance problems due to a lack of memory, consider breaking up the whole insert into smaller chunks.

    Should be fairly easy, based on the description you...

  • RE: Hyper-threading

    Steve,

    There have been some rumours that hyperthreading in Windows XP SP1 did have a negative impact on performance. The culprit apparently was the UnmapViewOfFile function.

    See http://support.microsoft.com/default.aspx?scid=kb;en-us;815227

  • RE: Linear Regression

    There's a bunch of MDX functions to do Lineair regression calculations. Check BOL for LinRegPoint, LinRegIntercept and so on.

  • RE: implement parent and child in build of materials “

    Yogi,

    I believe you are on the right track with the proposed table structure. Of course, it needs some additional fields, but I suppose you only mentioned the important ones.

    If I...

Viewing 15 posts - 256 through 270 (of 530 total)