Viewing 15 posts - 541 through 555 (of 14,953 total)
Is there never any activity in any of the tables (other than Selects), or is the "window of no activity" short? Like a table loaded by a nightly ETL...
November 8, 2012 at 11:45 am
Here are some articles I wrote a while back on data auditing:
http://www.sqlservercentral.com/articles/Auditing/63247/
http://www.sqlservercentral.com/articles/Auditing/63248/
There are a number of trigger-based options and samples in the second one.
With regard to a trigger to record...
November 8, 2012 at 11:15 am
I'm accustomed to using the package variable, not a script-local one. But that's habit, not something based on actually comparing efficiency/performance/anything.
November 8, 2012 at 7:23 am
Artoo22 (11/8/2012)
OK, just discovered an interesting fact.Our esteemed "senior" (sic) DBA setup the new server.
TempDb has 1 file, on C:, starting at 8Mb and growth of 10%.
#$%#$^$&^#%^&@@$$%
Even I know...
November 8, 2012 at 7:19 am
Is the query just insanely complex? Like the plan would be some simply titanic amount of RAM?
I don't think it's even possible to have a plan that large, but...
November 7, 2012 at 1:25 pm
Standard, normal, boring Read Committed usually works just fine for that kind of situation.
If you find that the few in-day updates are causing more blocks than you like, switch to...
November 7, 2012 at 1:21 pm
Yeah, that's a good case for breaking it up.
November 7, 2012 at 1:10 pm
sqldba_newbie (11/7/2012)
GSquared (11/7/2012)
Read Committed Snapshot Isolation will help prevent blocking, but allows "old data" to be seen by concurrent transactions. Doesn't have...
November 7, 2012 at 12:47 pm
For Windows (Active Directory) security, you do that on your domain server, not in SQL Server. Usually, your network admin (IT Department) would create an AD group, add members...
November 7, 2012 at 12:25 pm
Does it just Select stuff, or does it do any Update/Insert/Delete actions? If it does more than just Select, then it will still generate locks and can still block...
November 7, 2012 at 12:22 pm
It depends on what end result you want.
Read Committed Snapshot Isolation will help prevent blocking, but allows "old data" to be seen by concurrent transactions. Doesn't have the "read...
November 7, 2012 at 12:21 pm
mmartin1 (11/7/2012)
if (@Due = 'All') set @sql = 'Select * From ##temp'
It is realising that @due has not been declared. The '@due' in the string...
November 7, 2012 at 12:12 pm
There is no guaranteed sequence to the actions. The whole idea of using Merge is that it makes it into a single, atomic action as far as your code...
November 7, 2012 at 12:10 pm
The first one will do what you're looking for. Isolation levels are set for the connection, not for the object.
HOWEVER, I have to warn you that setting isolation to...
November 7, 2012 at 12:05 pm
How much work does the query for the report do? Can you post the table definition(s) and the query?
November 7, 2012 at 8:15 am
Viewing 15 posts - 541 through 555 (of 14,953 total)