Forum Replies Created

Viewing 15 posts - 4,336 through 4,350 (of 5,841 total)

  • RE: Updating a variable number of tables with a single update

    MatthewA.Herold (11/28/2009)


    Yeah.

    Already made the cursor a while ago, I was just looking for a way to avoid using it.

    Guess not 🙁

    I hate cursors.

    This is a perfect scenario where a cursor...

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

  • RE: Using Server Side Traces for Dynamic Performance Evaluation

    Well done.

    I have been doing this type of analysis for a decade now, but have never done the execution histogram like you have done with the case statements....

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

  • RE: how to find Last restored log backup in Log shipping

    msdb.dbo.restorehistory table as well.

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

  • RE: calculate Avg.Disk Queue length

    Mani-584606 (11/29/2009)


    ok.. these are the values I got from perfmon for

    0.022792896

    0.018652975

    So do I need to divide these numbers with any value?

    If I get a value 2.0 or >2.0,...

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

  • RE: how to delete the duplicate records from a table?

    sherifffruitfly (11/27/2009)


    I'm no sql genius or anything, but is anyone concerned that the poster apparently has 2+ versions of the truth running around in his or her database?

    Besides the technical...

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

  • RE: MS DTC and Linked servers

    Barkingdog (11/27/2009)


    Our developer's claim they need to run a "ransaction" that updates two databases on two servers. So I think that linked servers are were not enough. We need...

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

  • RE: MS DTC and Linked servers

    1) I believe the OP inquired is DTC required for distributed transactions. remember that dist trans can be done completely from client-side code.

    2) even with linked servers I believe...

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

  • RE: Table Update Help Needed

    Looking at your stats now I can see that you definitely aren't new around here Seth! :w00t:

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

  • RE: Table Update Help Needed

    Just asking is all, since there are quite a few of them and you are (to me) a new entity here. 🙂 I do seem to recall most of...

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

  • RE: Table Update Help Needed

    Seth, did your update meet all of the requirements of the quirky update?

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

  • RE: need better way than row_number()

    1) you have no where clause - do you REALLY need to return all 10+M rows?

    2) can you please provide expected output? I can't for the life of me...

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

  • RE: Alternative to cursors

    the classic scenario is a while loop:

    declare @i tinyint

    set @i = 1

    while @i < 10

    begin

    do something here

    set @i...

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

  • RE: Hugh Performance Gap Between SELECT And INSERT

    are you really inserting your output into the temp table shown? If so, try these things:

    a) insert a few rows using explicit VALUES just to see...

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

  • RE: how to delete the duplicate records from a table?

    using ROW_NUMBER is the classic way of finding/deleting dupes. Most do it with a CTE as the driver, which can be a bit easier for some to grok.

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

  • RE: Index on Table with 2 Columns Millions of Rows

    Nice dead-pan delivery there Jeff! hehehe

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

Viewing 15 posts - 4,336 through 4,350 (of 5,841 total)