Forum Replies Created

Viewing 15 posts - 4,966 through 4,980 (of 5,678 total)

  • RE: Database error

    sqlrocks79 (11/11/2010)


    Additional messages in the SQL Server error log and system event log may provide more detail.

    Have you checked these?

    It sounds like something's interfering with file access permissions. ...


    - 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 to increase numeric field

    It is correct, but Money is a field of four decimal places. It's working as expected.

    Wrap the result with a CONVERT( DECIMAL (19,2), <function here>) to go to two...


    - 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: How to grouping/collapse multiple rows into a single row?

    Manjeshwar,

    I've used a form of the serial update here which should cure your pain on this specific instance. If you want the 'full rules' to keep you safe from...


    - 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: Week Part

    I think I'm confusing myself.

    Here's my function checks so we all understand what the heck I'm talking about as I ramble on a bit here:

    DECLARE @testDate DATETIME

    SET @testDate = GETDATE()

    --PRINT...


    - 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: Select Weekend Dates

    After this where clause in the cte...

    WHERE

    -- First, we only get...


    - 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: Week Part

    WayneS (11/11/2010)


    Formula: DATEADD(dd,DATEDIFF(dd,-7,DateOfPurchase)/7*7,-1))

    select DATENAME(weekday, 0); -- = Monday

    select DATENAME(weekday, -1); -- = Sunday

    select DateAdd(day, -7, 0); -- = 18991225

    So, take the number of days between 18991225 (Date=-7) and the date...


    - 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: Ok i'm stumped...

    Using this article as a reference:

    http://www.sqlservercentral.com/articles/FOR+XML+PATH/70203/

    (Note, I searched here in the search box with the following: rows to delimited string)

    Please note how I adjusted your data setup. This makes...


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

    Websense hates me. Have to check that from home.

    BWAHAHAHAHAHAHAHA. Dear gods, did I just generate a meme?


    - 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: Recursive query with a twist

    Thanks Gus, you just helped me understand a little bit more of it too. 🙂


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

    GilaMonster (11/11/2010)


    Dunno if you noticed, I've been getting kudos on Twitter for your sig. 😀

    ROFL. No, I hadn't. I tend to avoid Twitter, Facebook, et al. like they...


    - 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: Select Weekend Dates

    ejbatu1 (11/11/2010)


    Hey Craig this was very slick and complex (not sure what you did in the case statement)... thanks.

    How would I add the codes in this query. ...


    - 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: Issues with SSIS PACKAGE

    kkishore1010 (11/11/2010)


    I mean both server A and B are in Cluster Node.

    Thanks,

    kumar

    Yeeps. I missed that. I blame a lack of coffee. Elliot and Steve are correct (as...


    - 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: Recursion counting problem. Not your usual issue

    CELKO (11/11/2010)


    LOL! You even used a physical count of insertions attempts in that table! No key, no way to have a key, insanely long columns to invite garbage...


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

    CirquedeSQLeil (11/11/2010)


    GSquared (11/11/2010)


    GilaMonster (11/11/2010)


    jcrawf02 (11/11/2010)


    Craig Farrell (11/10/2010)


    Must be the week...

    http://www.sqlservercentral.com/Forums/Topic1019000-392-1.aspx

    Nice sig 😉 To be perfect, should start with "Yea" instead of "'lo", and have an extra thy in "Thy...


    - 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: Issues with SSIS PACKAGE

    This error is the key component:

    "A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name...


    - 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 - 4,966 through 4,980 (of 5,678 total)