Viewing 15 posts - 19,621 through 19,635 (of 49,552 total)
TheSQLGuru (3/23/2012)
Snargables (3/22/2012)
If parametized dynamic sql will result in more cache hits then why would anyone write non parameterized dynamic sql?
There are MANY times where you don't WANT the engine...
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
March 23, 2012 at 7:56 am
Koen Verbeeck (3/23/2012)
Brandie Tarvin (3/23/2012)
anthony.green (3/23/2012)
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
March 23, 2012 at 7:14 am
For 10GB of memory on a dedicated SQL Server, I'd probably set max memory to 7 or 8 GB.
See chapter 4 http://www.simple-talk.com/books/sql-books/troubleshooting-sql-server-a-guide-for-the-accidental-dba/
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
March 23, 2012 at 6:38 am
Never has been. Indexes enforce the logical order, not the physical. An index build or rebuild will try to put the pages down in physical order matching logical, but that's...
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
March 23, 2012 at 6:30 am
derekr 43208 (3/23/2012)
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
March 23, 2012 at 5:25 am
No, the nonclustered indexes always contain the clustered index key.
So your nonclustered index on Col2 will actually be Col2, Col1 or Col2 inlcude Col1, depending whether the nonclustered index...
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
March 23, 2012 at 4:56 am
anthony.green (3/23/2012)
each action has a cost against it, its the SPID with the lowest cost which is the deadlock victim
It's not the cost of the action, it's the cost of...
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
March 23, 2012 at 4:17 am
mc2601 (3/23/2012)
THnakswhat about if they also has the same "log Used"?
Then, assuming they deadlock priorities are the same and they are both user processes, one will be picked at random.
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
March 23, 2012 at 4:15 am
Lynn Pettis (3/22/2012)
For an urgent error sure not getting any response from the OP and it has been almost 2 hours.
Urgent = 'My problem's more important than any other here'
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
March 22, 2012 at 5:23 pm
Reorganise instead of rebuilding and run small iterations.
Rebuild just what needs rebuilding and not everything and spread it out over several days
Set the mirroring to high performance for the rebuild...
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
March 22, 2012 at 4:06 pm
That actually looks like a custom exception (so one intentionally raised by the code) in a CLR function
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
March 22, 2012 at 4:03 pm
Restore a backup from 3 days ago as a new database and look at the table in 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
March 22, 2012 at 10:02 am
One important point... Do not assume the inserted table contains a single row. It may not. It will contain all the rows affected by the update.
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
March 22, 2012 at 9:12 am
Windows accounts get the SID from AD, so it'll be the same on both servers hence the users can't be orphaned because the SIDs match on the two servers.
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
March 22, 2012 at 9:04 am
If it's a log shipping secondary, add the user to the primary DB and make sure that the SIDs of the logins are the same on both servers.
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
March 22, 2012 at 9:02 am
Viewing 15 posts - 19,621 through 19,635 (of 49,552 total)