Viewing 15 posts - 76 through 90 (of 280 total)
how much memory on the server and what is the sql max memory configured as?
sql's max memory setting controls the buffer pool, not the memory used for the app domains...
August 10, 2012 at 7:55 am
GSquared (8/10/2012)
...Another common one is that modern SAN hardware, properly configured, with the right amount of cache on it, eliminates the bottleneck on allocation completely.
Not True. The allocation contention in...
August 10, 2012 at 7:45 am
You can use a table valued parameter.
... And ( t1.c in (select id from @p2) or not exists (select * from @p2) )
August 9, 2012 at 11:54 pm
It goes in the dimension. Sometimes prices act as a measure as well, but typically if you don't aggegrate them, they aren't measures.
August 9, 2012 at 10:54 pm
Here is another pattern for "catch-all" queries:
select *
from t1
where (@p1 is null or @p1 =t1.c2)
option (recompile)
Not sure if better or not...
August 9, 2012 at 10:44 pm
A cursor is fine. You'll end up calling sp_executesql for each row which will make the overhead of the cursor insignificant.
Though, for index maintenance, don't reinvent the wheel,...
August 9, 2012 at 10:29 pm
Set based languages are declarative. You tell sql server WHAT you want not how to do it.
"I want the set of customers who ordered more than $100...
August 9, 2012 at 10:20 pm
If you run your scripts in sqlcmd mode in ssms or using sqlcmd.exe, you can use :r to import files into the current script.
August 9, 2012 at 9:50 pm
The tail of the log is the part of the transaction log that hasn't been backed up yet. if you take a log backup of the databse you...
August 9, 2012 at 9:37 pm
Your query is using bitmap filters.
a bitmap filter is a way for sql server to eliminate rows earlier in the execution pipeline. This is a powerful performance optimization.
Bitmap filters...
August 7, 2012 at 12:36 am
Hernán Rojas (8/6/2012)
If you only have 3 disk for organize your databases phisical desing, which option would...
August 6, 2012 at 11:39 pm
Ok, a couple of things to look at
1. how expensive is [dbo].[fnRubricDomainScoresMarzano]() ?
2. you also might try adding OPTION (RECOMPILE) to the end of the query (parameter sniffing) ...
August 3, 2012 at 8:09 am
typical cursor flow is:
declare cursor ...
open cursor ...
fetch from cursor ...
while (@@FETCH_STATUS <> -1)
BEGIN
...
August 2, 2012 at 9:03 pm
Ola hollengren, DB maint script.
Don't reinvent the wheel.
Download.
Run script (it creates sql agent jobs)
Edit job step as needed (number of days to keep, target directory, etc)
Schedule...
August 1, 2012 at 8:59 pm
SQLKnowItAll (7/30/2012)
July 30, 2012 at 8:24 pm
Viewing 15 posts - 76 through 90 (of 280 total)