Forum Replies Created

Viewing 15 posts - 2,236 through 2,250 (of 6,036 total)

  • RE: find out excel file modified date

    DECLARE @PathFile nvarchar(256)

    CREATE TABLE #FileDetails (

    [Alrernate Name] sysname NULL,

    [Size] bigint,

    [Creation Date] char(8),

    [Creation Time] char(6),

    [Last Written Date] char(8),

    [Last Written Time] char(6),

    [Last Accessed Date] char(8),

    [Last Accessed Time] char(6),

    [Attributes] int NULL

    )

    INSERT INTO...

  • RE: My 10,000th Post!

    Lowell (8/7/2012)


    This is my 10,000th (ten thousandth) post!

    You suck!

    Single thread next to this one got almost 4 times more!!!

    😀

  • RE: SQL Jokes & Riddles!!!

    Alex Fekken (7/18/2012)


    "It is so frustrating: every table that I date turns out to be a relation."

    Good DBA keeps his relations well normalised.

  • RE: Hash Partitioning

    opc.three (8/6/2012)

    c3 and c4 become fragmented, not because of the clustering key, but because you're applying modulo 10 to your calculation meaning in the subset inserts you'll be inserting some...

  • RE: Hash Partitioning

    SQL Kiwi (5/23/2012)


    Sergiy (5/22/2012)


    If we choose to believe so. IndId = 256 indicates that it's a data page, but I cannot see any indicator that it is a leaf...

  • RE: cmd KILLED/ROLLBACK process for 7 hours

    DBA-640728 (5/22/2012)


    last night I had to kill a processes/job that normally takes 1 min to run but for some reason it was hung for about 8+ hours. Nothing was blocking...

  • RE: Hash Partitioning

    SQL Kiwi (5/22/2012)


    The link works fine now.

    Yep. Can read it now.

    The 'boosting insert' case does not use a heap, as previously mentioned.

    If we choose to believe so.

    IndId =...

  • RE: Hash Partitioning

    The "original challenge" is not accessible. May be temporarily.

    But anyway, both articles focus on splitting the load on the SINGLE index (heap in "Boosting INSERT" case).

    In "Resolving PAGELATCH Contention" it's...

  • RE: Pull back up to the first Carridge Return

    Instead of CASE you may use also ISNULL(NULLIF) construction:

    LEFT(CUST.Address, ISNULL( NULLIF(CHARINDEX(CHAR(13), CUST.Address, 1), 0) - 1), LEN(CUST.Address) ) )

  • RE: Alternative to TRY Catch

    Error is in the sequence of operations:

    PROBLEM:

    Insert into ERROR_LOG (ERROR_DATE, ERROR_USER, [ERROR_MESSAGE], ERROR_SOURCE, [ERROR_NUMBER], ERROR_HOST)

    Select getdate(), SYSTEM_USER, '',@source, @intErrorCode, HOST_NAME()

    ROLLBACK TRAN

    ROLLBACK TRAN...

  • RE: Bulk Insert and row terminators

    You may use LF for BULK INSERT and immediately after it's completed strip the last character from the last column there it is CHAR(13).

  • RE: Query Plan Execution Order

    I see you've got the petrol station analogy.

    Time to wrap it up.

    🙂

  • RE: Query Plan Execution Order

    Toreador (1/16/2012)


    An awful lot of bandwidth would have been saved if you'd just said "yes I agree, it's lingual"!

    😉

    Well, as long as we communicate here in some language, it...

  • RE: Query Plan Execution Order

    SQL Kiwi (1/16/2012)


    Sergiy (1/15/2012)


    Which means - Fuel counting executes before fuel is pumped.

    The part that resets the counter does, yes.

    Part of it. Exactly. But not the whole operation.

    Of...

  • RE: Query Plan Execution Order

    Fun part:

    Question:

    Which query plan operator executes first?

    Correct answer:

    The Stream Aggregate

    My question:

    Sorry, the Stream Aggregate executes what?

Viewing 15 posts - 2,236 through 2,250 (of 6,036 total)