Forum Replies Created

Viewing 15 posts - 43,546 through 43,560 (of 49,571 total)

  • RE: T-SQL Code Optimizers

    rchantler (10/27/2008)


    The optimized view uses specific join algorithms, e.g. loop joins, hash join and merge joins instead of the more generic inner and outer joins used in the original view...

  • RE: how to remove unwanted columns - easy task - quick points for you

    Chris Morton (10/22/2008)


    How Do I put the result of

    EXECUTE

    ( 'SELECT count(' + @columnname...

  • RE: Best practice for creating a mask?

    Duplicate post. Please direct replies to http://www.sqlservercentral.com/Forums/Topic592120-373-1.aspx

  • RE: Deadlock exception while using SqlBulkCopy.WriteToServer(DataReader) method

    Jonathan Kehayias (10/27/2008)


    I'll have to go back and look at why I would have been using that flag, and I will definately update the references that I provide...

  • RE: Query Needs to be tuned

    bhuvnesh.dogra (10/27/2008)


    Actually creating/droping is for spped up the insertion

    Does it speed up the insert? Have you tested with and without the index recreation and proven that it's faster...

  • RE: Query Needs to be tuned

    Now things become a little clearer. Is the query you posted taking 21 seconds or is the entire stored procedure (with the inserts and all the index creations) taking 21...

  • RE: CACHESTORE MESSAGE IN MY ERROR LOG

    It could be due to a database/log restore. (Is this a logshipping destination?). It could be from certain configuration changes (sp_configure). It could be from someone running DBCC FREEPROCCACHE. It...

  • RE: Deadlock exception while using SqlBulkCopy.WriteToServer(DataReader) method

    Jonathan Kehayias (10/27/2008)


    Trace Flag 3605 with -1 will write the output of the other flags being enabled to the SQL Server Error Log for every SPID on the server. ...

  • RE: Performance Issue

    The first thing you should do is make sure that all tables have primary keys and are properly normalised.

    Run profiler for a while during your busy times. Record the rpc:completed...

  • RE: Integrity Check Failed Every Week

    Leo (10/27/2008)


    Hi Gila,

    Okay, I have untick the box for auto repair option. So do you think one of the Master,MSDB,TempDB got a error? It was failed becasue of that?

    Maybe

    Shall I...

  • RE: Query Needs to be tuned

    bhuvnesh.dogra (10/27/2008)


    yes u are right

    this is the IO results

    --------------------------------------------------------------

    SQL Server Execution Times:

    CPU time = 0 ms, elapsed time = 7 ms.

    --------------------------------------------------------------

    The entire result please....

  • RE: Integrity Check Failed Every Week

    You should never run repair on a regular basis. It should only be run when there is corruption, and there's no other way to fix it. It's a last resort,...

  • RE: Query Needs to be tuned

    bhuvnesh.dogra (10/27/2008)


    but rest os the tables are not actually tables they are table views;tables which are from other databases to main database ...

    What are the view definitions? What indexes are...

  • RE: Query Needs to be tuned

    Great. Please can you post table definition and index definitions.

    How many rows are in the tables? How many does the query return? How long does the query run?

    The plan looks...

  • RE: Query Needs to be tuned

    Run the query with the execution plan option on.

    Right click the generated plan and select save. Save it as a .SQLPlan file (You are using SQL 2005? I assume so...

Viewing 15 posts - 43,546 through 43,560 (of 49,571 total)