Viewing 15 posts - 31,471 through 31,485 (of 49,552 total)
No. check the exec plans. They're identical.
Personal preference - if distinct rows are wanted, use distinct. If aggregates are needed grouped by one or m ore columns, use GROUP BY
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
August 3, 2010 at 6:23 am
I don't believe you can move files from one filegroup to another.
With all the files in one filegroup, that table is spread across all of them. Tables may only...
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
August 3, 2010 at 4:29 am
So ask the DBA to run it.
Difference could be related to data volumes, stats that haven't been updated, difference in schema, etc.
Have you run the procedure from management studio 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
August 3, 2010 at 4:25 am
An index scan is the best that query can do. You're asking for the entire table aggregated. Hence it has to scan something. Better a nonclustered index than the cluster.
You...
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
August 3, 2010 at 4:05 am
vatha.meba (8/3/2010)
Earlier it use to take 1...
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
August 3, 2010 at 4:03 am
SQL uses a proportional fill algorithm where the amount of data written to the files in the filegroup is proportional to the amount of free space in the files.
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
August 2, 2010 at 11:28 pm
Please note: 2 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
August 2, 2010 at 11:18 pm
Steve Jones - Editor (8/2/2010)
Jonathan Kehayias (8/2/2010)
I don't definitively know why Microsoft made the engine work that way...g.Bug, crappy programming and testing.
In this case, design decision, intended behaviour.
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
August 2, 2010 at 11:14 pm
Leo.Miller (8/2/2010)
An odd bit of behaviour I've noted with dropping databases is that, if the database is OffLine when you drop it, the physical files are not deleted.
It's not odd...
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
August 2, 2010 at 11:13 pm
Stefan Krzywicki (8/2/2010)
GilaMonster (8/2/2010)
Stefan Krzywicki (8/2/2010)
Roy Ernest (8/2/2010)
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
August 2, 2010 at 4:24 pm
CirquedeSQLeil (8/2/2010)
GilaMonster (8/2/2010)
Stefan Krzywicki (8/2/2010)
Roy Ernest (8/2/2010)
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
August 2, 2010 at 4:12 pm
Stefan Krzywicki (8/2/2010)
Roy Ernest (8/2/2010)
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
August 2, 2010 at 3:53 pm
raamaakrishna (8/2/2010)
Hi Gail, Can you please find out what api is called?
Looks like it's the DeleteFile function in Kernel32, so nothing special.
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
August 2, 2010 at 3:49 pm
bteraberry (8/2/2010)
... so even if they need 15 hrs/week they would rather pay $150+ in consulting than to hire someone at a reasonable rate.
Suits me. 😀
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
August 2, 2010 at 3:06 pm
raamaakrishna (8/2/2010)
If we know exactly what command is being run to delete those files may be we can recover the database even though we do not have backups...
You'd need to...
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
August 2, 2010 at 2:21 pm
Viewing 15 posts - 31,471 through 31,485 (of 49,552 total)