Forum Replies Created

Viewing 15 posts - 1,846 through 1,860 (of 5,678 total)

  • RE: Help With Select Statement

    jamie_collins (1/31/2012)


    I am going to play around with it... I may need to add the AUDITDATETIME field in at some point and then reverse the query so I can...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: Need Help with Query

    sartis (1/31/2012)


    I'm trying to generate a query that will return all 6 projects and then select the projects that a person is flagged with in the contactrecord_project table

    I apologize I...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: Need Query Help Urgent

    If you take a look at the first link in my signature, it'll show you how we prefer your sample stuff to be setup so we can use it instead...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: why sp_refreshview

    There isn't an alternate. Because dependency association is less than perfect, sp_refreshview is the only way to change the metadata if the underlying schema changes. You could just...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: Need Help with Query

    steve 22165 (1/31/2012)


    Hi, Thanks for looking....I'm new here and did not know about the Forum Etiquette...sorry

    In the where clause the 5142 is an id of the person.....so that is why...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: Are the posted questions getting worse?

    Jeff Moden (1/31/2012)


    Brandie Tarvin (1/31/2012)


    Of all the skills a DBA should have, I'm beginning to think a healthy dose of paranoia should be on the required list. Agree? Disagree?

    It's a...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: Need Help with Query

    steve 22165 (1/31/2012)


    Ok...I have 2 tables....Projects and contactrecord_project

    Projects table has these columns and there is example data below

    ---------------------------------------------------------------------------

    Project_name_id Project name

    1...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: query delivers inconsistent results

    DavidL (1/31/2012)


    Craig (and others reading):

    Here is the stored procedure text. It is very slightly different what I first posted, but not in essence. There are no SET... statements...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: Are the posted questions getting worse?

    Brandie Tarvin (1/31/2012)


    Of all the skills a DBA should have, I'm beginning to think a healthy dose of paranoia should be on the required list. Agree? Disagree?

    It's only paranoia if...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: Trigger: auto copy of data to other Column

    Jack Corbett (1/31/2012)


    I mentioned the computed column because I wasn't sure if it needed to be writable.

    I'll have to play around a bit with the sample...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: ? on cursor

    zwheeler (1/31/2012)


    Hi

    Question:

    FETCH NEXT FROM Cur1 INTO @pid_A, @date_start_A, @date_end_A

    FETCH NEXT FROM Cur1 INTO @pid_B, @date_start_B, @date_end_B

    When the sql is executed for Cur1

    does this contain the same rows or does...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: query delivers inconsistent results

    Thanks for the additional information above David. So, some clarifications if you'll be so kind, and hopefully some ideas on what we can look for in regards to troubleshooting.

    DavidL...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: Taking Notes – Paper or Keyboard?

    Personally I usually end up having to write up trees, or get a little zany with bullets, or sketch a quick mental diagram, or...

    ... I get tired trying to pull...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: Selecting Max and Min Rows in one SQL Statement

    Dbloc (1/31/2012)


    I must mention that there are some other columns in the table that are specific to each row. I should have mentioned this right away but forgot. sorry 🙁

    So...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: Selecting Max and Min Rows in one SQL Statement

    Without schema, I can't hand you actual code, but what's the concern doing something like the following:

    SELECT

    BldgID,

    UserID,

    Max(SomeDate) AS MaxDate,

    Min(SomeDAte) AS MinDate

    FROM

    -- Joins go here

    GROUP BY

    BldgID,

    UserID


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

Viewing 15 posts - 1,846 through 1,860 (of 5,678 total)