Viewing 15 posts - 48,511 through 48,525 (of 49,552 total)
The clustering key refers to the columns that make up the clustered index. Nothing fancier than that.
So, if your clustered index is on the field ClientID, your sample queries would...
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 29, 2007 at 2:38 am
{} are curly brackets
EXEC (@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
August 27, 2007 at 1:42 am
The concept of row number is a meaningless one. In a table with a clustered index, the clustering key is the only 'identifier' of row location
Try a nonclustered index 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
August 27, 2007 at 12:03 am
This sounds familiar...
How much memory is on the server? What service pack of SQL 2005 are you using?
There were some memory-related bugs in SQL 2005 RTM and SP1. If 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 26, 2007 at 11:36 pm
Forgive me for answering the retorical question...
I would guess by having the end result different from what was required, or not been able to work out how to do the...
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 26, 2007 at 11:30 pm
On the server exam, all the sim questions had a 'reset' option, which set the sim back to how it started. So what I did was to fiddle with each...
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 24, 2007 at 5:31 am
I wouldn't bet on 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
August 24, 2007 at 5:11 am
I wrote 431 before the sims were added, so this isn't directly related. I did sims in a Server 2003 exam.
I had 2 or 3 sims on active directory, 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
August 24, 2007 at 4:59 am
given a choice between those two, go for properly parameterised dynamic SQL using sp_executesql
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 24, 2007 at 4:41 am
You can use profiler to create the script file. Open profiler, set all the options you want, including end time, then go to the file menu and select the option...
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 23, 2007 at 6:33 am
Do you have indexes on t1.ClientID and on the join columns? If so, are they been used?
The order that the joins and where clause are done in depends on, amoung...
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 21, 2007 at 3:05 am
sp_executesql does not recompile on every execution. The execution plans for adhoc SQL are also cached along with procs. The difference is that the seperate pieces of sql executed 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 21, 2007 at 12:23 am
I wrote the following a while back when I needed to drop and recreate primary keys. I've just included the foreign key parts.
Warning, this is rough code and needs 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 20, 2007 at 7:44 am
Can't see any reason, unless there are no rows that satisfy the conditions "FINISHTIME = '---'" and 'RMJOB.RMJOBID = PREPLOG.RMJOBID'
If you do a select for those conditions, what do 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 20, 2007 at 7:31 am
It does, but the governor is enabled either a server level or per connection. All the governor will do is prevent very expensive queries from been run, depending on the...
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
July 29, 2007 at 2:32 am
Viewing 15 posts - 48,511 through 48,525 (of 49,552 total)