Forum Replies Created

Viewing 15 posts - 17,806 through 17,820 (of 49,552 total)

  • RE: ANSI JOIN VS Microsoft join

    chaithu559 (7/4/2012)


    Hi Gail,

    Thank you very much for your reply. One more thing i wanted to know...

    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: t sql with a bit who can be null

    christophe.bernard 47659 (7/5/2012)


    the reason that they don't like the test IF in a stored procedure is due to the performance

    Edit: Yes, they can in some cases (well, not the IF,...

    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: more cpu usage..

    Probably nothing.

    That view (which is deprecated) just shows the total CPU used by running processes.

    Is there a problem?

    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: Declaring data type in a function AS...

    Why don't you test it and find out? Likely you'll remember it far better than if someone just gives you the answer.

    CREATE FUNCTION TestingDataTypes (@Blah INT)

    RETURNS INT

    AS

    BEGIN

    RETURN @Blah

    END

    GO

    SELECT dbo.TestingDataTypes(1.1)

    GO

    SELECT...

    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: Where to declare a data type when a function's parameters are declared

    What exactly do you mean?

    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: Parameterized views

    SQL doesn't have parameterised views. Closest would be an inline table-valued function.

    If it did exist, it would be a view to which you can pass parameters:

    CREATE VIEW ParameterisedView

    AS

    SELECT * FROM...

    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: Clustered vs. non-clustered indexes

    Maybe take a read through these.

    http://www.sqlservercentral.com/articles/Indexing/68439/

    http://www.sqlservercentral.com/articles/Indexing/68563/

    http://www.sqlservercentral.com/articles/Indexing/68636/

    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: What is the use of incremental backup

    And if you do need to take ad-hoc full backups, take them WITH COPY_ONLY, that way they don't mess with the differential backups

    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: Restart Log Backups

    codebyo (7/4/2012)


    Shouldn't this be:

    "Take either a full AND differential backup and then a log backup"?

    No. You;ve switched the DB to simple recovery and back to full. Unless there has never...

    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 server 2005 query timeout on production only

    Look up UPDATE STATISTICS in Books Online.

    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 server 2005 query timeout on production only

    http://sqlinthewild.co.za/index.php/2011/03/22/statistics-row-estimations-and-the-ascending-date-column/

    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: What is the use of incremental backup

    SQL doesn't have incremental backups, it has differential (yes, they are different)

    Main use would be to speed up restores when you can't take full backups every day (due to available...

    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: running DMV's for Performance issue

    Any form of monitoring adds load. Unless you pull huge numbers of events or very large actions, extended events are very light weight. Trace is also a fairly low overhead...

    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: t sql with a bit who can be null

    christophe.bernard 47659 (7/4/2012)


    Hi,

    Ok tanks for your reply but my colleague don't like the test if on stored procedure they prefere AND / OR 🙂

    I've done this :

    declare @tbl table...

    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: DBCC error message

    Won't help. It's a logical error (page with garbage on it), so the garbage will be included in the backup and restored on the other server.

    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 - 17,806 through 17,820 (of 49,552 total)