Forum Replies Created

Viewing 15 posts - 571 through 585 (of 1,183 total)

  • RE: What is the correct syntax for *= in 2005?

    Yep, it's LEFT OUTER. I found where I had to reference it before.

    Thanks guys....

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Preferred syntax for looping through a cursor

    In answer to your question, I would say that it's nothing more than a matter of preference. If either of the developers are telling you that theirs is "faster" or...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Scheduling data extraction to excel

    Ahmad Osama (3/26/2008)


    How are you getting on with this, Ahmad? It would be interesting to hear which method you finally chose and how you fared with it 😀

    Cheers

    ChrisM

    I have chosen...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: KILLED/ROLLBACK Process still showing in Activity Monitor

    Steve Jones - Editor (3/26/2008)


    Good excuse to see if the procedures work! Put on your serious face and "sell it"!

    I understand and would agree with that statement, but I'm too...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: KILLED/ROLLBACK Process still showing in Activity Monitor

    Thanks Michael, that clears it up a bit.

    And the spids have finally dropped out of activity monitor. The transaction logs are now running as normal. So for now, it's ok.

    It's...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: KILLED/ROLLBACK Process still showing in Activity Monitor

    Steve Jones - Editor (3/26/2008)


    I haven't dealt with this in a clustered environment, but there are times when SPIDs seem to get stuck. Can you failover to the other side...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Selecting non assigned items

    Jeff Moden (3/25/2008)


    Just my 2 cents on this one... I've found that the WHERE NOT IN that Barry used is usually more performant than outer joins. The speed difference...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: select multiple sums

    Depending on what your actually trying to accomplish, you might want to look into the new WINDOWED funstions like SUM() OVER (PARTITION BY ...)

    i.e...

    DECLARE @t TABLE (code INT, descr VARCHAR(10),...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Null Value Handling - Stored Procedure

    You're already doing it in some other cases, like the quest_name line ...

    but anyway ...

    set @phone=ISNULL((select phone from guest where account=@account and room=@room_code group by phone),'')

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Removing a Duplicate Record

    Are the UserNames unique? This appears to be the case in your example.

    DECLARE @t TABLE (UserName VARCHAR(25), StartTime DATETIME, UserID INT)

    INSERT @t

    SELECT 'Sally', '2008-03-24 10:09:13', 89...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Selecting non assigned items

    FYI, I only asked what you've tried to make sure this wasn't homework. It still may be, but you've shown that you've put forth effort.

    So ....

    SELECT

    *

    FROM

    ...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Referencial Integrity question

    Which does the ItemTypeID relate to? TableMain or TableDetail? You shouldn't have it in all three tables. It's redundant. If it applies to the row, then put the type id...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Selecting non assigned items

    What have you tried?

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: query for data selection

    I missed that "one row" requirement. ARGH!!!

    SELECT

    MIN(START_DT) AS START_DT

    ,MAX(END_DT) AS END_DT

    FROM (SELECT

    DENSE_RANK()...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: query for data selection

    ok, that was written with the assumption that there would be only one row per range.

    -- create some test data

    DECLARE @t TABLE (START_DT DATETIME, END_DT DATETIME)

    INSERT @t

    ...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg

Viewing 15 posts - 571 through 585 (of 1,183 total)