Viewing 15 posts - 48,151 through 48,165 (of 49,552 total)
Please don't double post. It splits answers and wastes time
Continue thread here please
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
November 26, 2007 at 8:20 am
Sure. I was pointing out that the optimiser doesn't (and can't) always ignore the column specified. Your reply seemed to say that count(*) and count(column) are equivalent, which they aren't'...
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
November 26, 2007 at 8:18 am
Not quite.
Count(*) or count(1) or similar will give you the number of rows in the table. Count(ColumnName) will give you the number of rows where that column is not null.
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
November 26, 2007 at 7:29 am
I would think that the strength of the forum is all the volunteers who frequent the board, rather than the people running 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
November 26, 2007 at 4:02 am
If you want to avoid unnecessary rebuilds, you can check the fragmentation of the table and decide based on that whether or not to rebuild.
SELECT * from sys.dm_exec_physical_stats([db_id], [schema_id], [table_id],[index_id],[mode])
It'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
November 26, 2007 at 3:58 am
This is in the SQL 2005 forum and I stated that the solution was for SQL 2005.
Of course it won't work on SQL 2000 or SQL 7. The post was...
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
November 26, 2007 at 3:52 am
There are 2 exams for the ITP dev. Which are you writing? Or are you doing them both the same day?
70-441: Designing database solutions
70-442: Designing and optimising data access.
(70-431 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
November 25, 2007 at 12:18 pm
But that means that the order of statements in the where clause now becomes important. That will absolutely cripple the optimiser as it will not be allowed to look for...
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
November 25, 2007 at 12:15 pm
Explanations don't help much when debugging code. That's why I kept asking for the code of the trigger and view.
I had an idea what might be wrong, but without seeing...
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
November 25, 2007 at 12:13 pm
Why do you want 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
November 25, 2007 at 12:11 pm
You can filter on the Database ID column and exclude the ids of databases that you don't want to see.
Better to filter on ID than name, as not all...
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
November 25, 2007 at 12:11 pm
Probably not. What errors are you getting when trying to select from the tables?
If it were a corrupt DB, there might be a chance or reading the pages raw 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
November 25, 2007 at 11:59 am
Go into the job step and set it to log output to a text file (I don't remember where this is in SQL 2000)
With that, you'll see the full output...
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
November 24, 2007 at 5:50 am
Is that on SQL 2000 or SQL 2005?
What's the state of the database? (suspect, recovering, offline, ...?)
There may be a way, but just so that you can copy the data...
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
November 24, 2007 at 5:38 am
How do you know the server's slowed down?
More CPU usage?
Queries in general slower?
Some queries slower?
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
November 24, 2007 at 5:31 am
Viewing 15 posts - 48,151 through 48,165 (of 49,552 total)