Forum Replies Created

Viewing 15 posts - 5,506 through 5,520 (of 5,678 total)

  • RE: How to dump a table from a Prod database to a dev database

    Besides the easy way?

    SSIS package and manually ran job.

    Stored procedure with drop/create on the target table and then a linked server to bring the data down.

    Restore the production DB locally...


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

    Steve Jones - Editor (9/20/2010)


    Not surprising. Defaults can be a touch confusing and I could see why this might be an issue.

    Heh, guess it's just me then. 🙂 ...


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

    Is it just me, or are some of the misconceptions in this post regarding default values a little unnerving?

    http://www.sqlservercentral.com/Forums/Topic989167-391-1.aspx

    Log shipping, lock and latch use, proper syntax for setting a variable...


    - 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: Where are you?

    Phoenix, AZ, born and raised NY, and lived all over the country at one point or another.

    And... mmmm... pizza and steaks. Dammit, it's not lunch yet, thanks guys.


    - 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: GetDate() not working

    sivaj2k (9/20/2010)


    Hi

    if Database wants to insert the current date, you have to create trigger on that table.

    The trigger is one way to handle it, but not the best choice. ...


    - 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: Microsoft OLE DB Provider for ODBC Drivers error '80040e14'

    IC, the answer to your question... is your question.

    [Microsoft][ODBC SQL Server Driver][SQL Server]The log file for database 'Webdata2' is full. Back up the transaction log for the database to free...


    - 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: Error in Aggregates

    Don't count, sum. Count bases on existance.


    - 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: Help with PIVOT!

    NP, Coffee, I rarely get a chance to play with pivot so I figured I'd leverage a little MS Excel training. 🙂

    Coffee, the result set I get from that is...


    - 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: Help with PIVOT!

    WRACK (9/20/2010)


    I have modified it a little. TOTAL needed to be excluding today as it mentions in the column header of the example data in the first post so AVG...


    - 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: Help with PIVOT!

    This isn't pretty, but it works:

    SELECT MatrixName, [MON] AS 'MON', [TUE] AS 'TUE', [WED] AS 'WED', [THU] AS 'THU', [FRI] AS 'FRI', [TODAY] AS 'TODAY'

    , [mon]+[tue]+[wed]+[thu]+[fri]+[today] AS SumCnt, ([mon]+[tue]+[wed]+[thu]+[fri]+[today])/6 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: Help with PIVOT!

    I felt nice... and yes, that's what I was looking for. 🙂

    CREATE TABLE #Rolling5Summary

    (MatrixOrderINT,

    MatrixNameVARCHAR(50),

    OriginalDateDATETIME,

    [DayOfWeek]VARCHAR(50),

    TotalCountINT

    )

    GO

    INSERT INTO #Rolling5Summary

    SELECT 1,'Mail In',CAST( '08/16/2010' AS DATETIME ), 'MON', 540 UNION ALL

    SELECT 1,'Mail In',CAST( '08/17/2010' 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: SQl Query performace

    Since you didn't post the execution plan, I'll ask the next question. 🙂

    Is there a difference in the execution plans between the two queries when you run them? Devil...


    - 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: Help with PIVOT!

    Any chance you can post the original 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: Is this a 2005 bug?

    phil.layzell (9/19/2010)


    We have recently upgraded from 2000 to 2005 and the following issue has occurred with one of our SP's.

    This worked fine in 2000;

    "(@ReferenceNumber is NULL OR ( ISNUMERIC(P.ReferenceNumber) >...


    - 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: SQL Server DB Tools

    swethak13 (9/19/2010)


    Is there any standard approach in the ways to administer the SQL Server databases. As I am new and have no experience in these I don't know where to...


    - 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 - 5,506 through 5,520 (of 5,678 total)