Viewing 15 posts - 3,811 through 3,825 (of 5,393 total)
Ok, so you basically need to prevent the processing job from running while the transfer job is active. Right?
You could use this stored procedure and add a "semaphore" step at...
-- Gianluca Sartori
October 13, 2010 at 8:55 am
Use partition by:
SELECT 'HANSEN8',
'2010-07-01 00:00:00.000',
A.ADDRKEY,
'...
-- Gianluca Sartori
October 13, 2010 at 8:43 am
Could be something like this:
JOB x ON SERVER1:
STEP 1: Process data
STEP 2: Start job y on SERVER2
JOB y ON SERVER2:
STEP 1: Process data
STEP 2: Start job z on SERVER1
JOB z...
-- Gianluca Sartori
October 13, 2010 at 8:35 am
I don't know if this is exactly what you're after, but should do the trick:
DECLARE @pivotSource TABLE (
SourceID char(3),
VisitID int,
Query varchar(10),
Response nvarchar(255)
)
INSERT INTO @pivotSource
...
-- Gianluca Sartori
October 13, 2010 at 8:29 am
Behind the scenes, the table gets dropped and re-created.
If it holds lots of data, timeout expires from SSMS.
Do it manually or, even better, add a new column with identity attribute,...
-- Gianluca Sartori
October 13, 2010 at 7:05 am
I'm facing the exact same problem in my DB (SQL2005 sp3).
In my scenario, often it's due to bad parallelism. The serial query runs 10 times faster, but the optimizer seems...
-- Gianluca Sartori
October 13, 2010 at 6:59 am
If the parameter is dynamic (no need to restart server), it's listed here:
select *
from sys.configurations
where is_dynamic = 1
-- Gianluca Sartori
October 13, 2010 at 6:51 am
This should do:
SELECT DBName = DB_NAME(),
Owner = USER_NAME(so.UID),
TableName = so.Name,
...
-- Gianluca Sartori
October 13, 2010 at 6:21 am
Paul White NZ (10/12/2010)
jcrawf02 (10/12/2010)
I'm not sure that anybody jumping in (cough* Paul *cough) cleared any fog there...
I started off with good intentions, but it kinda got away from me...
-- Gianluca Sartori
October 12, 2010 at 10:16 am
WayneS (10/12/2010)
I think instead of clearing the fog, we've managed to make it denser. :w00t:
Agreed.
-- Gianluca Sartori
October 12, 2010 at 10:13 am
Ok, I give up.
Everything I used to know (or thought that I knew) falls apart.
-- Gianluca Sartori
October 12, 2010 at 9:53 am
hallidayd (10/12/2010)
The OP is gonna hate us when (s)he checks back in to get a nice, straightforward answer to their nice, straightforward question 😛
:hehe::hehe::-D:-D:hehe::hehe:
Oh, come on! (S)He's got a wonderful...
-- Gianluca Sartori
October 12, 2010 at 9:24 am
OK, it might be wrong, but the myth has spread a lot:
http://www.dotnet4all.com/snippets/2008/04/performance-tip-1-avoid-non-sargable.html
http://www.ianywhere.com/developer/product_manuals/sqlanywhere/0902/en/html/dbugen9/00000463.htm
http://www.devarticles.com/c/a/SQL-Server/How-to-Perform-a-SQL-Server-Performance-Audit/8/
http://www.truthsolutions.com/midlandspass/presentations/20070301_MidlandsPASS_Bkelley.pdf
... and many others.
I find hard to believe that this myth can survive in many technologies (SQL Server, Sybase,...
-- Gianluca Sartori
October 12, 2010 at 9:21 am
Paul White NZ (10/12/2010)
Gianluca Sartori (10/12/2010)
-- Gianluca Sartori
October 12, 2010 at 9:01 am
Thanks for chiming in, Brandie.
What I find surprising, is the predicate "IS NOT NULL" using an index seek.
WTF???!??!
-- Gianluca Sartori
October 12, 2010 at 8:45 am
Viewing 15 posts - 3,811 through 3,825 (of 5,393 total)