Viewing 15 posts - 18,256 through 18,270 (of 49,552 total)
And checkDB completes successfully on the copy once the block has been marked bad?
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 5, 2012 at 7:34 am
See my post directly above.
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 5, 2012 at 7:23 am
johntaylor (6/5/2012)
I have no backups going (data or log).
There's the reason.
Until there is a full backup to start the log chain, the database behaves as though it were in simple...
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 5, 2012 at 7:04 am
You can't use dynamic SQL in a function.
Going to have to go procedure with this.
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 5, 2012 at 6:54 am
pdanes (6/5/2012)
GilaMonster (6/5/2012)
It has nothing whatsoever to do with performance. The meaning of the two queries is different. That's why you're getting different execution plans.
But Gail, they both produce EXACTLY...
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 5, 2012 at 5:18 am
SSMS is badly written. Seriously, it's written in a way that causes Async network IO waits as SQL waits to send the results and that's regardless of whether it's on...
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 5, 2012 at 5:02 am
High memory usage is typically what you want, it means SQL is using the resources on the 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
June 5, 2012 at 5:00 am
It has nothing whatsoever to do with performance. The meaning of the two queries is different. That's why you're getting different execution plans.
Simplified example:
CREATE TABLE #t1 (
ColourID INT IDENTITY...
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 5, 2012 at 4:26 am
ramsai1973 (6/5/2012)
select * from (select * from UserProductivityMapping) wk.WeekStartDatepivot(sum(PercentageProductivity) for wk.WeekStartDate
in ([2013-01-05],[2013-01-12],[2013-01-19],[2013-01-26])) as pivottable
There's your problem. Table Aliases can't have dots in them. Alias the subquery wk and assuming there'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
June 5, 2012 at 3:12 am
Please note: 4 year old thread
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 5, 2012 at 3:09 am
What you're asking for is an in-line table-valued 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
June 4, 2012 at 2:49 pm
Perry Whittle (6/4/2012)
GilaMonster (6/4/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
June 4, 2012 at 2:20 pm
First thing, get rid of those functions. Data-accessing scalar UDFs are performance nightmares. Use an inline table-valued UDF or a subquery to get the lists.
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 4, 2012 at 2:18 pm
Execution plan 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
June 4, 2012 at 2:04 pm
pdanes (6/4/2012)
When you say join ON something, you have to say what in each table is to be the link.
No you don't.
This is perfectly legal and valid.
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
June 4, 2012 at 2:01 pm
Viewing 15 posts - 18,256 through 18,270 (of 49,552 total)