Forum Replies Created

Viewing 15 posts - 4,561 through 4,575 (of 49,552 total)

  • RE: Added Memory, Worse Performance

    souLTower (10/9/2015)


    Ah, so I should enter a real number. EX 2GB for OS, remainder for SQL?

    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: Added Memory, Worse Performance

    souLTower (10/9/2015)


    In SSMS under server properties we're using the default.

    That's a problem. The default is 2000 TB. It's fine if the server has over 2000 TB of memory, but 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: A Little Help

    jonathanm 4432 (10/9/2015)


    -U sa -P netfinity

    Please say that's not the real password...

    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: No predicate join work around

    Other than possibly a nonclustered index on B.NANUM, not really much you can do.

    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: Added Memory, Worse Performance

    What do you mean, you've set SQL's memory to max?

    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: Sorting working differently after moving from SQL Server 2008 to 2012

    One other thing Melanie, unless there's more to the code than you've shown, the temp table isn't needed at all. This should be more efficient

    SELECT '-1' AS EmpLogin, 'Please 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: Sorting working differently after moving from SQL Server 2008 to 2012

    Kristen-173977 (10/9/2015)


    Your saying that made me wonder if it would be better just to add a unique number using ROW_NUMBER() OVER rather than IDENTITY - maybe it would be less...

    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 Templates.

    Not a template, but...

    Open Object explorer, navigate to a table/view, Drag the 'columns' folder to your query window.

    SQLPrompt does all the column generation for inserts and selects. It's not free,...

    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: Sorting working differently after moving from SQL Server 2008 to 2012

    Kristen-173977 (10/9/2015)


    I'm sure you know this, but in case not: you can add an IDENTITY to a SELECT ... INTO #TempTable :

    SELECT

    [highlight="#ffff11"]MyID = IDENTITY(int, 1, 1),[/highlight]

    EmpLogin,

    AttorneyName = LastName + ',...

    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 are my best SQL Server options for a small application like this ?

    pietlinden (10/8/2015)


    I would suggest downloading Ola Hallengren's scripts to manage backups so that your databases get backed up in case of disaster/data loss.

    Ola's scripts create jobs, and Express does not...

    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: Sorting working differently after moving from SQL Server 2008 to 2012

    Even in 2008, you could and would at some point get different ordering, since there was no order by on the outer 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: New to SQL Server 2014

    http://www.red-gate.com/community/books/accidental-dba

    It was written for 2008, so a little out of date, but still very good.

    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: Sorting working differently after moving from SQL Server 2008 to 2012

    That said, I suspect you left something out, as the original query, on SQL 2008 R2, returns

    Msg 1033, Level 15, State 1, Line 15

    The ORDER BY clause is invalid 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: Sorting working differently after moving from SQL Server 2008 to 2012

    You have no order by on that original query, so SQL is under no obligation to return the data to you in any particular order. I suspect the QO is...

    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: Are the posted questions getting worse?

    Jack Corbett (10/8/2015)


    WayneS (10/7/2015)


    GilaMonster (10/6/2015)


    #gloat Company's paying for the trip to the US. If I was speaking at Pass Summit, they'd be paying for hotel too. They paid...

    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 - 4,561 through 4,575 (of 49,552 total)