Forum Replies Created

Viewing 15 posts - 3,556 through 3,570 (of 5,678 total)

  • RE: T-SQL problem. Is it possible to get the result that I am looking for?

    hmbtx (3/27/2011)


    Ron:

    Yes, Craig's code satisfied my requirements?

    If it is okay, I would like to add one additional question based on Craig's solution and that is how can I change the...


    - 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?

    Lynn Pettis (3/26/2011)


    Okay, poll time. How many of you are getting tired of Celko and his high horse?

    I may be wrong, but I think I could count on one...


    - 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: Unable to open Management Studio after upgrade from Workgroup to Enterprise

    Double post, please send all comments and concerns to this thread.


    - 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: Searching Functions, Procedures and Tables

    Jeff Moden (3/26/2011)


    I'm not 100% sure but it seems to me that I remember a post somewhere where it said that it does matter especially for GUI related code that...


    - 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: T-SQL problem. Is it possible to get the result that I am looking for?

    hmbtx (3/26/2011)


    Craig:

    That is it! Works perfectly.

    Thanks for your help as I would not have ever figured this out on my own.

    I am sorry that I did not provide you with...


    - 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: T-SQL problem. Is it possible to get the result that I am looking for?

    This runs against your sample.

    SELECT

    a.activity_code,

    --a.[Description],

    a.register_count,

    drv.line_count

    FROM

    A_Header AS a

    JOIN

    ( SELECTali.Activity_Code, COUNT(*) AS line_count

    FROMA_Line AS ali

    GROUP BYali.Activity_code

    ) AS drv

    ONa.activity_code = drv.activity_code

    where

    drv.line_count <> a.register_count

    order by

    a.activity_code


    - 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: T-SQL problem. Is it possible to get the result that I am looking for?

    hmbtx (3/26/2011)


    I am copying your script and pasting it into Query Analyzer and running it there.

    I made the change as you suggested (see below) but now I get the following...


    - 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: T-SQL problem. Is it possible to get the result that I am looking for?

    *FACEPALM*

    I'm blind, sorry. It's currently stating FROM table FROM (SELECT ...)

    Yeaaah... turn that into FROM table JOIN (SELECT...)


    - 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: T-SQL problem. Is it possible to get the result that I am looking for?

    hmbtx (3/26/2011)


    Server: Msg 156, Level 15, State 1, Line 8

    Incorrect syntax near the keyword 'FROM'.

    Server: Msg 156, Level 15, State 1, Line 12

    Incorrect syntax near the keyword 'AS'.

    2 Q's:

    1) Are...


    - 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: T-SQL problem. Is it possible to get the result that I am looking for?

    hmbtx (3/26/2011)


    I am running MSSQL 2000 sp4.

    That's good to know. FYI, you posted in the 2k8 forum. You wanted the 7,2000 one that's further down in the list....


    - 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: Dates must be shown as string with comma separtor

    WayneS (3/26/2011)


    Search this site for detecting gaps and islands - you're going to be interested in the islands.

    (Posting tip: when posting dates, include a "SET DATEFORMAT DMY" so that people...


    - 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: RAID 5 Parity

    happycat59 (3/25/2011)


    I believe that the data is actually stored on 3 disks...2 have the actual data and the 3rd has the exclusive OR of the other 2 disks. Using...


    - 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?

    I have to work through this weekend so I finally get around to swinging by here, and you guys are plotting the end of the community as we know it....


    - 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: Configuring Kerberos Authentication

    The timing on this re-print couldn't be better. Thanks!!!


    - 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 (3/24/2011)


    Crap... looks like the thread is going to beat me to the 25,000 number.

    Perhaps, but not 25,000 points...


    - 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 - 3,556 through 3,570 (of 5,678 total)