Forum Replies Created

Viewing 15 posts - 5,746 through 5,760 (of 5,841 total)

  • RE: Physical Memory increasing on repeateadly inserts, reindex

    I will add one thing (in addition to the very important set max memory already covered).  There is almost NEVER a good reason to shrink a database.  Make it as...

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

  • RE: Configuring Database mail in a CLUSTERED environment

    The only issue I had that didn't seem to be well documented in the setup steps was adding the login account used for sql services to the DatabaseMailUserRole in msdb.

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

  • RE: Interesting 2000 vs 2005 difference

    To my knowledge neither version of sql server will allow updates to an identity column in a table unless that table has the set identity_insert property ON.

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

  • RE: Msg 7391 Unable to begin a distributed transaction

    You say you have ruled out MSDTC Security Settings, but I still think that is the problem.  I turned on the top 6 checkboxes (Network DTC Access, Both Client Admin and...

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

  • RE: Regarding a deadlock scenario

    Excessive temporary object creation can cause blocking in tempdb system tables.  I have seen this bring production systems to a halt.  The only solution is to rework your code to...

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

  • RE: Difference Between CASE and IF

    >>As for why the 10 fold increase in performance, see http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=65&messageid=366109 Yes it was a whole mess of IO that didn't have any reason for occurring.

    I knew it!! 

    >>I'm having...

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

  • RE: Difference Between CASE and IF

    Even if you had 1000 of these IFs/CASEs in your sproc, I would not expect more than a millisecond or two difference between the two versions.  You are talking registers...

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

  • RE: Difference Between CASE and IF

    I can pretty much GUARANTEE that futzing around with differences between IFs and CASEs you presented will be meaningless for improving performance.  Those are CPU issues and thus have a...

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

  • RE: DBREINDEX does not change anything

    Excellent suggestion Gabor!  This is especially important for OLTP environments that include dated inserts (such as ERP systems) because the stats will not reflect the newer rows until a relatively...

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

  • RE: Performance tuning

    Indeed it is 2005.  The = (i.e. inner join) still works.  However, per 2005 BOL reference ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/tsqlref9/html/36b19e68-94f6-4539-aeb1-79f5312e4263.htm

     

    The FROM clause supports the SQL-92-SQL syntax for joined tables and derived tables....

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

  • RE: DBREINDEX does not change anything

    I will add a few "guesses/hints" here too:

    1) As already mentioned, fragmentation.  This includes data/indexes inside sql server as well as OS FILE fragmentation.  If this database was created with...

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

  • RE: Stored Procedure - unexpected execution plan

    I am still struggling to envision a reason for this behavior (as I am sure you are)!

    1) was the use of parallelism the ONLY difference in the estimated (or better...

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

  • RE: Stored Procedure - unexpected execution plan

    I just recognized that you have a select * in the query.  Do you REALLY bring back 4.5MILLION records to the front end??  And EVERY COLUMN for those 4.5M records? ...

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

  • RE: Stored Procedure - unexpected execution plan

    1) When you dropped/recreated the sproc (without the variable kludge), did you execute it immediately with an appropriate batchid BEFORE executing the SELECT statement in isolation? 

    2) If possible (be...

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

  • RE: Stored Procedure - unexpected execution plan

    >>Dropping and recreating the proc helps to remove any previous query plans from the proc. Generally its a good practice to drop/recreate as

    >>Is this technic any better than...

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

Viewing 15 posts - 5,746 through 5,760 (of 5,841 total)