Forum Replies Created

Viewing 15 posts - 38,686 through 38,700 (of 49,552 total)

  • RE: Easy question. I lost some of my sql and my stored proc is not working.

    mathieu_cupryk (6/3/2009)


    You can you show me what you mean.

    Move the COMMIT TRANSACTION so that it's just before the END TRY. I just noticed there's already a rollback in the catch,...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Create Pop-up Trigger ??? Howto ??

    Maybe the Sage programming guide will help you. This is the first I've ever heard of the language.

    http://www.google.com/search?q=sage+programming+guide

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Easy question. I lost some of my sql and my stored proc is not working.

    As the error says, you're asking SQL to commit a transaction that's not commitable (because the catch block was invoked). Move the commit tran into the TRY block and add...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Disk Queue Length Problems

    Robert klimes (6/3/2009)


    ... the query is doing a clustered index scan or worse a table scan ...

    A clustered index scan is essentially a table scan, since the clustered index has...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Disk Queue Length Problems

    dsbolanos (6/3/2009)


    Can anyone tell me what could be wrong? or any clue?

    If you're going to query a 45 million row table with no useful index, you should expect it to...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Disk Queue Length Problems

    Disk queue's almost impossible to interpret meaningfully when there's a SAN. Too many variables involved.

    Check Avg sec/read, Avg sec/write and % disk idle time instead.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Avg. Disk sec/Read

    The values returned from perform are seconds/read. So to get to milliseconds/read, multiply the value by 1000.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: SQL 2005, RAISERROR with log will not write to event log

    What rights your account has on the local machine/domain is irrelevance. What the SQL Server Service account is may have some effect on this. Check what rights the SQL service...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Easy question. I lost some of my sql and my stored proc is not working.

    mathieu_cupryk (6/3/2009)


    {"Conversion failed when converting the nvarchar value 'ticketID 0' to data type int."}

    In the following statement

    SET @resultMessage = 'ticketID ' + CAST(@ticketID AS NVARCHAR(200))

    + ERROR_NUMBER() + '. ' +...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: I need to Rebuild Indexes when Reboot, modify structure, or Rebuild (for real)

    Try updating statistics on that table when the problem happens

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Create Pop-up Trigger ??? Howto ??

    Jack Corbett (6/3/2009)


    I'm going to have to agree with GSquared on this one. This definitely does not belong in a trigger

    In fact, it belongs in the client-side validation before the...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Should every table have a clustered index.

    GSquared (6/3/2009)


    An example of a bad clustered index is one on a GUID column that uses newid() instead of newsequentialid(), or one on a varchar column with people's names in...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Create Pop-up Trigger ??? Howto ??

    SQL runs on a server. If the trigger were to pop up a message box, where do you think it would pop up?

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Should every table have a clustered index.

    Jules Bonnot (6/3/2009)


    GSquared - Are hotspots still an issue in SQl 2000? I plan to put the index on the identity column so if hotspots are a problem this could...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Should every table have a clustered index.

    Jules Bonnot (6/3/2009)


    Hi would you mind expanding your post a little.

    What are the disadvantages of having heaps.

    Forwarding pointers and the resulting increase in IO. Only an issue when there...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 15 posts - 38,686 through 38,700 (of 49,552 total)