Forum Replies Created

Viewing 15 posts - 2,821 through 2,835 (of 5,841 total)

  • RE: Log Shipping Restore Log on Secondary DB not restoring

    Jeff Langdon (9/13/2012)


    Adam Haines (9/13/2012)


    Even though the job reports success, I would still look at the agent history and in the second step from the top. There should be...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Tempdb : ONE Data File per cpu

    Scammers and Charlatans the lot of you!! 😛

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Tempdb : ONE Data File per cpu

    lianvh (9/11/2012)


    I am frustrated, because , a consultancy firm used this tool and now to keep the peace we have to implement this setting.

    May I recommend that you find a...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Update Statistics

    My understanding is that stats are not "swapped out" until they are complete - at which point stuff is marked as recompile. So your existing plan will keep getting...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Is Database Engine Tuning Advisor's Recommedations are safe to apply on DB

    GilaMonster (9/3/2012)


    If you mean running tuning adviser and just accepting all suggestions without consideration, then no, it's not safe to do.

    You need to make sure your profile trace included all...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Left Anti Semi Join - performance issue

    GilaMonster (8/28/2012)


    TheSQLGuru (8/28/2012)


    Personally I think that is a better query in any case, the IN's just offend my delicate sensibilities. 🙂

    Why?

    Because I have delicate sensibilities, of course!! 😀

    I also...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Left Anti Semi Join - performance issue

    Rem70Rem (8/27/2012)


    Thanks GSquared....

    interestingly, this works great:

    select * from TableA a

    where not exists (select CustID from remoteserver.PRDA.dbo.Cust b where b.Custid=a.Custid)

    Personally I think that is a better query in...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Check room availability in hotel system

    Get/find articles/books by Itzik Ben-Gan that discuss the Gaps and Islands problems. He (and others) provide a range of solutions to this scheduling problem.

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Log Shipping & DataBase Mirroring

    I am going to take what Gail said up a notch: it is utterly ridiculous for this client to ask you to set up their HA/DR stuff given that...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: REPLACE Multiple Spaces with One

    Jeff, why do you include LTRIM(RTRIM(OriginalString)) in your code? Isn't that (potentially completely unnecessary) work for nothing because your remaining code would handle any leading/trailing spaces anyway? Did/can you...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Insert Into Using OpenQuery Causes Massive Fragmentation

    guerillaunit (8/16/2012)


    Hi Kevin,

    Is there a reason why you would need to drop the nonclustered indexes after truncating a table and before inserting new data to prevent fragmentation? I am...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Index Range_scans

    Oops! Too quick read/reply.

    I would use sys.dm_db_index_usage_stats, which does report user_seeks for your situation (at least with the test setup I did).

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Index Range_scans

    SQLSACT (8/8/2012)


    Hi All

    I'm struggling to understand why my Index is reporting Range_scans

    DDL:

    Table:

    CREATE TABLE [dbo].[Indexing2](

    [Col1] [int] IDENTITY(1,1) NOT NULL,

    [Col2] [int] NULL,

    [Col3] [int] NULL,

    [Col4] [int] NULL

    )

    Indexes:

    CREATE CLUSTERED INDEX [CX] ON [dbo].[Indexing2] ([Col1])...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Reporting on a production database - good or bad and why?

    Mark Eckeard (8/15/2012)


    The load on the server shouldn't be high but we have almost 50 total locations, our network isn't exactly lightening fast and we have financial data that simple...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Insert Into Using OpenQuery Causes Massive Fragmentation

    Since you are truncating the table first and then inserting rows, it is SIGNIFICANTLY better to drop the nonclustered indexes, insert the data, and then recreate the nonclustered indexes. ...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

Viewing 15 posts - 2,821 through 2,835 (of 5,841 total)