Forum Replies Created

Viewing 15 posts - 1 through 15 (of 147 total)

  • RE: multiple index on same column

    Hi Andrew,

    The problem with redundant indexes, like ins_ypsI2, is that there is additional overhead for data updates but no benefit for selects.

    The script below will find all redundant indexes in...

  • RE: [n00b] Buffer Manager Question

    Here are a couple of scripts that make the numbers more useful.

    The first gives you all counters, including absolute values (like page life expectancy), percentages calculated by dividing a counter...

  • RE: SQL server OS name

    Hi Jeff,

    I am aware of your slide set on the subject and I agree with what you say.

    Some comments though:

      You assume an attacker with the skills to obtain SA...

    • RE: SQL server OS name

      You can do this with PowerShell.

      And if you have xp_cmdshell enabled (not encouraged for security reasons) you can run it from an SSMS Query window.

      exec xp_cmdshell 'powershell.exe -noprofile -command "Get-WmiObject...

    • RE: Is using 0x0 faster than a 0 in a WHERE clause

      smrtstpetesmith (2/28/2014)


      For a bit field, is using

      WHERE mybit = 0x0

      faster than

      WHERE mybit = 0

      I am being told to use 0x0 but am not yet convinced.

      Thanks!

      I suspect the person who told...

    • RE: SSRS report and multiple datasets

      There is no harm in doing that, with a couple of provisos:

      Be aware of potential performance issues - each query will run one at a time; they are not submitted...

    • RE: Query XML Value

      Rewritten to get the xml from a variable, but you should be able to apply this logic to your situation:

      declare @x xml

      select @x = '

      <Artists>

      <ArtistText>Genie Zhuo</ArtistText>

      <Artist Type="Main">

      <FullName>Genie Zhuo</FullName>

      </Artist>

      <Artist Type="Secondary">

      <FullName>The Second...

    • RE: Calculate IOPs for production server?

      For IOPS you need to look at the Physical Disk Reads/sec and Writes/sec.

      Brent Ozar wrote a post over 6 years ago about how to capture these values and use Excel...

    • RE: Calculate IOPs for production server?

      So you want to measure IOPs without looking at performance counters?

      Or you want to measure max IOPs that the storage is capable of, but without using SQLIO?

      What is wrong with...

    • RE: Relational database or graph database? Why not have both?

      I like to think of NOSQL as meaning Not Only SQL rather than No SQL

      Haha - perfect.

      Thank you for writing this; one of the most interesting articles I've seen for...

    • RE: How to isolate that network is issue of bad query performance

      In my experience, the network is very rarely the cause of poor performance. When it appears to be the network it is more often one of the following:

      • An app server...

    • RE: Central Management Servers

      Actually you can add SQLSales1 to the group, but you have to use a different way of addressing it.

      So for example if you know that SQLSales1 is listening on port...

    • RE: Nested Cursors

      Rather than look at your code, I've supplied a script I use that does the the same thing (fix orphaned users across all databases).

      Mine uses UPDATE_ONE, but you could change...

    • RE: Stored Procedure Running Slow via SSIS vs Management Studio

      Have you compared the query plans? I think that has to be the first step.

      You can do this with Profiler.

      Also, are you running it just once from SSMS, but multiple...

    • RE: Query to find user who last modified user roles/access?

      I think OP is asking if there is a way of looking back at changes made to logins.

      If so, and you have the default trace running, it can be done...

    • Viewing 15 posts - 1 through 15 (of 147 total)