Viewing 15 posts - 46,171 through 46,185 (of 49,552 total)
When you set up the trace, do you set it to write the trace to disk?
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
June 19, 2008 at 2:43 am
Could you explain a bit more what you want please?
Last modified in terms of data? Last modified in terms of schema? Something else?
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
June 19, 2008 at 1:10 am
You can do it via a SQL query.
ALTER DATABASE tempdb
MODIFY FILE (NAME = tempdev, FILENAME = < New directory>\tempdb.mdf');
GO
ALTER DATABASE tempdb
MODIFY FILE (NAME = templog, FILENAME =...
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
June 19, 2008 at 12:46 am
Ignoring memory for now...
Run performance monitor for an hour or so while the problems are occuring. Add the following counters:
Physical Disk:Avg sec/read
Physical Disk:Avg sec/write
SQL Server Buffer manager:Buffer cache hit ratio
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
June 19, 2008 at 12:39 am
Bear in mind that using or posting brain dumps is against the rules of the exam (and a violation of the agreeemant that you accept upon writing the exam) and...
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
June 19, 2008 at 12:10 am
No. I didn't.
Will give it a shot when I get home, If I have a chance.
SQL shouldn't be doing the data type test before the actual insert. 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
June 18, 2008 at 8:09 am
It's not the number of rows. The query processor thinks there's a couple of cross joins happening.
Suggestion: Go carefull through the joined tables and make sure that all tables are...
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
June 18, 2008 at 8:06 am
The execution plan is warning of missing join predicates in a couple places. It thinks you have cartesian products forming
From the way the actual row count is increasing at points...
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
June 18, 2008 at 7:29 am
The reads have gone down, which is good. Has the CPU time also increased, or just the duration?
Did you run the query a couple times before taking measurements? If it...
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
June 18, 2008 at 7:15 am
Yes, it is. Write it properly and there won't be much of an impact.
Since the instead of fires before the data is inserted, you can't fire it only when...
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
June 18, 2008 at 7:11 am
Your first option uses correlated subqueries. It's a hidden row by row operation. It's gonna be slow, especially on larger result sets. The subqueries will run once for each row...
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
June 18, 2008 at 7:05 am
dankwart menor (6/18/2008)
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
June 18, 2008 at 6:58 am
No, because it's not a warning. It's the same as trying to insert 'abc' into an integer column. It's a data conversion error.
I would suggest that you load into a...
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
June 18, 2008 at 6:46 am
Bad code and poor indexing cause deadlocks. Someone in the past probably switched the allow page locks off as a 'quick fix'. My guess is that your poor performance 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
June 18, 2008 at 4:21 am
I've never met a resume I could trust. From the person with 2 years IT experience who rated himself 5/5 on 3 versions of windows, 2 of SQL server and...
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
June 18, 2008 at 12:49 am
Viewing 15 posts - 46,171 through 46,185 (of 49,552 total)