Forum Replies Created

Viewing 15 posts - 4,291 through 4,305 (of 5,393 total)

  • RE: possiblity to shrink the data file

    I don't know if I understand correctly your question, but I'll try to give an answer. You can shrink the data file to give out the free space in it...

    -- Gianluca Sartori

  • RE: Possible parameter sniffing?

    Everything depends on what plan is being cached. Every time the procedure is recompiled, the plan is put into the cache. The parameters used for that recompile generate a plan...

    -- Gianluca Sartori

  • RE: calculate dates between rows

    ColdCoffee (5/11/2010)


    Wow, Gianluca.. cool code.. 😎

    Thanks, but we still don't know if this is what the OP is after.

    Could turn out to be cool... garbage! 😛

    -- Gianluca Sartori

  • RE: Code generation

    I don't think I understand what you mean with "better solution".

    Anyway, duplicates cannot be ignored, as Dave already pointed out.

    I don't think that "random" and "unique" can live...

    -- Gianluca Sartori

  • RE: Possible parameter sniffing?

    I wanted to see if there's some kind of "catch-all" query involved in your procedure. This is well known to cause problems with parameter sniffing and inaccurate query plans.

    You...

    -- Gianluca Sartori

  • RE: calculate dates between rows

    This should do the trick for you:

    DECLARE @Art TABLE (

    [Art] char(1),

    [Status] varchar(3),

    [Date] datetime

    )

    INSERT INTO @Art

    SELECT 'A', 'In' , '2009-10-10' UNION ALL

    SELECT 'A', 'Out', '2009-10-15' UNION ALL

    SELECT 'A', 'In' , '2009-10-16'...

    -- Gianluca Sartori

  • RE: Possible parameter sniffing?

    Could be parameter sniffing, but it's difficult to say without seeing the code.

    Can you post the code, or, at least, part of it?

    -- Gianluca Sartori

  • RE: Code generation

    This code gave out only 253 duplicates on 16 Mln records.

    I don't know if this is exactly what you're after, but you could give it a go.

    SELECT TOP 1600000 RIGHT(master.dbo.fn_varbintohexstr(hashbytes('MD5',CAST(NEWID()...

    -- Gianluca Sartori

  • RE: High {no} availability and UPDLOCK

    Personally I would disable their login until they fully understand what they're doing.

    Consider it could take forever...

    -- Gianluca Sartori

  • RE: Microsoft Humor

    I'm asking myself if they're making a cert exam for it...

    -- Gianluca Sartori

  • RE: Weekly Full Indexing Error

    The error message you posted appears to be truncated, since this looks like the notification email.

    Can you please post the actual error message, taken from the maintenance plan history?

    -- Gianluca Sartori

  • RE: Are the posted questions getting worse?

    Lynn Pettis (5/7/2010)


    Our PhD candidate at work.

    Hope I wasn't too rude.

    This guy has the ability to drive me insane (maybe it's his signature???) .

    -- Gianluca Sartori

  • RE: Query Tuning~CPU Usage

    If you can't use profiler, go with DMVs or SET STATISTICS TIME ON.

    As far as the percent improvement is concerned, it's simple maths, nothing that a "Senior Software Engineer" can't...

    -- Gianluca Sartori

  • RE: Upgrade to R2 package

    Forgot to mention: it took something like 3 hours to install, be sure you don't need your computer while you install...

    -- Gianluca Sartori

  • RE: Upgrade to R2 package

    Yes, it can be done. I did it, with no problems.

    -- Gianluca Sartori

Viewing 15 posts - 4,291 through 4,305 (of 5,393 total)