Forum Replies Created

Viewing 15 posts - 2,926 through 2,940 (of 5,678 total)

  • RE: Which one is better select * into # temp from tableA Vs create #temp table insert into...

    opc.three (6/21/2011)


    Which method performs better in the end will depend on the data volume, recovery model, data set shape, probably too many variables to definitively say one method will perform...


    - 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: Execute Sql Task in SSIS

    Try datatype DATE instead of DBTimestamp


    - 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: Which one is better select * into # temp from tableA Vs create #temp table insert into...

    opc.three (6/21/2011)


    Whether supplying an explicit column list or a * SELECT...INTO generates a table with no clustered index, i.e. a HEAP. If you're managing large quantities of data in temp...


    - 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: Analytical Interview Questions

    Jeff Moden (6/21/2011)


    toddasd (6/21/2011)


    What do yall think about giving the interviewee a "broken" database to analyze? Script out one of your databases except remove some indexes, rewrite a basic update...


    - 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: which approach is better in terms of performance?

    Single Connection manager for ease of use, don't turn on the RetainSameConnection property (ie: Leave it False) and they'll each open an independent SPID.

    This is your best method unless you...


    - 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: Does anyone have a good reason to run xp_CmdShell?

    opc.three (6/21/2011)


    I won't let the cat out of the bag as to how I think you're planning to create the misdirection necessary to accomplish a secure xp_cmdshell environments without any...


    - 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: Best suggestions?

    Steve Jones - SSC Editor (6/21/2011)


    Depending on how your storage works, anything could work. 30GB isn't a huge amount and SSIS has been shown to load 1TB in about 30...


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

    I would target this normalization very differently. Instead of going all the way to having an ID for a length amount, I'd expect some standardization (cm for example) of...


    - 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: get minutes from datetime with leading zero

    00 and 09 are character entries to sql, not digits.

    Easiest way to display it is along the lines of:

    SELECT RIGHT( '00' + DATEPART( mi, @timevariable), 2)


    - 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: Does anyone have a good reason to run xp_CmdShell?

    Craig Farrell (6/20/2011)


    I may need to, however, learn more about this before I go any further in this debate:

    opc.three (6/20/2011)


    xp_cmdshell can be used by everyone on the instance but 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: Does anyone have a good reason to run xp_CmdShell?

    Above is now reported as a marketing post.


    - 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: Best suggestions?

    asm1212 (6/21/2011)


    Solution:

    What can I do? What is the best way to get those databases set up on the reporting server with that data synced up every 24 to 48 hours???...


    - 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 Required Pleased: I don't even know how to pharase the question to search for an answer myself :-(...

    I went jamming down the wrong road, sorry. Had another methodology in my head, but it's really overkill.

    Here's the typical way to do it:

    ;WITH LeftMethod AS

    (

    SELECT

    eid.EventID,

    CASE WHEN eSt.EventID...


    - 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 Required Pleased: I don't even know how to pharase the question to search for an answer myself :-(...

    BCLynch (6/21/2011)


    And one other question... what does one call (if anything) such a problem? 🙂

    Annoying. 😉

    Right Track: Kinda, use a single cte and join it twice. Also, EventType...


    - 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: Insert a 0 if the first character is a numeric between 1-9

    UPDATE tbl SET phoneNumber = '0'+phoneNumber WHERE LEFT( phoneNumber, 1) LIKE '[1-9]'

    ... should work.

    EDIT: Dang Ninjas... sneaking in unexpectedly EVERYWHERE!


    - 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 - 2,926 through 2,940 (of 5,678 total)