Forum Replies Created

Viewing 15 posts - 3,406 through 3,420 (of 5,841 total)

  • RE: Problem with Restoring a big database

    1) gotta ask why 3rd party tools are forbidden for this need - they are the RIGHT and BEST solution

    2) is the backup file on same IO as IO you...

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

  • RE: UPDATE query question

    Maybe I need another cup of coffee, but I don't see how ROW_NUMBER can help with this classic 'running totals' type of scenario. Best bet for that is actually...

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

  • RE: Paging on huge tables with row_number

    sqlnaive (5/6/2011)


    I'm not using any UDFs or table variable It's just simple insert as below:

    Insert into dbo.TableA

    PageId, col1, col2, col3, col4, col5, col6, col7, col8)

    select

    (row_number()OVER (ORDER BY col1, col2,...

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

  • RE: Deadlock FETCH API_CURSOR0000000000001AEC

    here is a great guide to deadlock troubleshooting (see additional 2 linked posts): http://blogs.msdn.com/bartd/archive/2006/09/09/Deadlock-Troubleshooting_2C00_-Part-1.aspx

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

  • RE: Deadlock when inserting and deleting data

    serializable isolation, no explicit transaction control, no error handling, GUIDs all over the place, missing SET NOCOUNT ON - wow, where to start with the issues here...

    See here and the...

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

  • RE: First query hangs with PAGEIOLATCH_SH wait but subsequent queries complete.

    Grant tagged the root cause here I think: you MUST update ALL statistics with a FULL SCAN after upgrading a database from SQL 2000 to SQL 2005+. Doing anything...

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

  • RE: Query taking long time for completion. -- URGENT!!

    You asked for a fast response, so I say the fastest way to figure out what is going on and correct it is to get a professional tuner connected to...

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

  • RE: Paging on huge tables with row_number

    Ninja's_RGR'us (5/5/2011)


    sqlnaive (5/5/2011)


    Is around 50 seconds good time to insert around 2500000 records to a physical table A from another table B with 8000000 records ? There are just 8...

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

  • RE: Same Execution Plan but Different Execution Time

    day-476284 (5/4/2011)


    Thank you very much for all your comments.

    I agree application queries need to be optimized. Soon, we are going to replace this old application with a newer version by...

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

  • RE: Open Transactions Stuck in the Log of SIMPLE RECOVERY MODE Database

    Sad but true that SOOOO many entities out there nickel and dime things - right up until they REALLY mess something up. Then they often wind up paying tremendously...

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

  • RE: Alternative to DBCC INPUTBUFFER/sys.dm_exec_sql_text? (new sp_who proc)

    Ninja's_RGR'us (5/3/2011)


    GilaMonster (5/3/2011)


    Ninja's_RGR'us (5/3/2011)


    GilaMonster (5/3/2011)


    <grrrr> 3 year old thread.

    Why does it bother you? People read this from google today so it's still usefull!

    Because I didn't notice and wrote a...

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

  • RE: Same Execution Plan but Different Execution Time

    There are so many bad things in that sproc I don't know where to start. But given what I see I imagine there are all KINDS of opportunities for...

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

  • RE: Stored proc eating bandwidth on server!

    Commong problem: the query plans for BOTH conditionals are compile the FIRST time the sproc is executed -> thereby GUARANTEEING one of them will be BAD. Solution is to...

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

  • RE: Paging on huge tables with row_number

    I have had TREMENDOUS success at clients (as in 4+ orders of magnitude improvement) using dynamic sql to handle search/paging needs. If you are careful about SQL Injection this...

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

  • RE: Index creation on lookup table

    It is doubtful that an index on a table with 10 rows will help anything. Focus your efforts on the 20M row table.

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

Viewing 15 posts - 3,406 through 3,420 (of 5,841 total)