Forum Replies Created

Viewing 15 posts - 751 through 765 (of 5,678 total)

  • RE: Corruption - Renaming of system data databases to ldf :(

    JayK (4/2/2013)


    ALTER DATABASE [master] MODIFY FILE ( NAME = master , FILENAME = 'J:\Log\SystemLog\mastlog.ldf' );

    ALTER DATABASE model MODIFY FILE ( NAME = modeldev , FILENAME = 'J:\Log\SystemLog\modellog.ldf' );

    i.e. I renamed...


    - 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: drop and add all FKs in the database

    Sean Lange (4/2/2013)


    sqlfriends (4/2/2013)


    If I use drop FK,truncate table, import data, then add FKs,

    Then I don't need to figure out the order of the tables.

    If you are going to go...


    - 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: data design considerations

    Getting the current record HAS to be a performance hit. What you're talking about is a logging table. I use them all the time and I prefer them...


    - 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 For External Server Insertion

    Sounds like a poor man's version of Service Broker. Not a bad idea, considering the steep slope of knowledge needed to get Broker up and running properly.


    - 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: actual number of rows in exec plan doesn't match real numbers

    sqldba_newbie (3/22/2013)


    Evil Kraig F (3/21/2013)


    Need to see the sqlplan. Offhand I'd guess there's a spool with multiple executions.

    yup, if i multiple number of executions with actual number of rows...


    - 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: Join yeilds different results if used with CTE or a real table

    Jeff Moden (3/21/2013)


    You're joining to an indeterminent value and at execution plan time, it can't determine what to join on and so it ignores the predicate. Look at 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: Join yeilds different results if used with CTE or a real table

    EDIT: Please ignore this entire post. One dog, wrong tree, right forest.


    - 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 am well aware of the bad contractors out there... I'm a contractor myself. I've actually called back to the home company and told them to pull bad contractors...


    - 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: Indexing question

    Biank (3/21/2013)


    I'm trying to create indexes on a table that will hold all of data changes in any columns of any tables so the number of rows will be pretty...


    - 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: Join yeilds different results if used with CTE or a real table

    itlk (3/21/2013)


    A/ Why the join yields different results for CTE and for the real table?

    B/ If I replace the join in the query No 1 with RIGHT OUTER JOIN, 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: Need Help with TSQL for Date Display

    dhananjay.nagarkar (3/21/2013)


    Hi Craig,

    I use SSRS 2008 visual studio where in i invoke my SP ..

    The report is then download in excel ..by user

    Thanks

    DJ

    In SSRS, go to the display box for...


    - 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: actual number of rows in exec plan doesn't match real numbers

    Need to see the sqlplan. Offhand I'd guess there's a spool with multiple executions.


    - 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 TSQL for Date Display

    dhananjay.nagarkar (3/21/2013)


    Hi Craig,

    since I do not want to lose the date in the Report hence seems the best suggestion is in DB to do this change instead of DATE TIME...


    - 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 TSQL for Date Display

    A) What is the base datatype for the field? I hope DATETIME.

    B) Why? The front end/reporting server can do this so much easier, and end users shouldn't be...


    - 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 select a column based on the value of another column

    I'm agree with Sean here. Dynamic SQL has it's place as an optimization tool, particularly when dealing with parameterization and sniffing.

    Doing dynamic SQL against a dynamic SCHEMA screams 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

Viewing 15 posts - 751 through 765 (of 5,678 total)