Viewing 15 posts - 5,611 through 5,625 (of 5,684 total)
Not sure of your baseline for the data, I'm not sure if just under a minute is good, or bad, for this. However, to case statements:
In the select clause,...
September 14, 2010 at 3:43 pm
EDIT: (LOL, beaten to it twice. 😉 Ah well, have your choice of formatting then. 🙂 ) /EDIT
Best to do the aggregation as a subquery and your calculations...
September 14, 2010 at 2:20 pm
A couple of questions:
Have you done any attempts to determine the throttle point, if it's reads from the Daily Transaction DBs, if it's network throughput, if it's the writes local,...
September 14, 2010 at 2:11 pm
Any chance you can post the table/index definitions and a query your reports use? Helps us to try to figure out if you've optimized to indexes and the like...
September 14, 2010 at 11:07 am
I would doubt it. I'd look more for a funky piece of data. If you can, find out what the numeric settings they have are, then go to...
September 13, 2010 at 2:53 pm
npeters 86796 (9/13/2010)
SET ANSI_NULLS ONGO
SET QUOTED_IDENTIFIER OFF
GO
ALTER TRIGGER [dbo].[zDT_RM00301U] ON [dbo].[RM00301] AFTER UPDATE
AS
set nocount on
BEGIN
UPDATE dbo.RM00301
SET DEX_ROW_TS = GETUTCDATE()...
September 13, 2010 at 12:30 pm
Considering many of my scripts run 2k characters or more, I'd have thought I'd have ran into it if it did. I just took a breeze through tools-options and...
September 10, 2010 at 12:42 pm
subash: Can you please do a quick double check if you have triggers on the table? Something hiding underneath could be part of the problem.
If you change that table...
September 10, 2010 at 10:38 am
2 things.
If you could set that table data up (the source) as a temp table insert that'd be great.
Your results look the exact same visually as the source, not sure...
September 10, 2010 at 10:29 am
The 1 is a literal value of 1. It's an optimization technique to not actually pull anything from the recordset to anywhere, since all you're doing is checking for...
September 9, 2010 at 5:07 pm
For an easy answer, wrap the entire item with:
IF EXISTS (SELECT 1 from inserted where idcontrato='2' and eicanalid = '91')
BEGIN
--The rest of your trigger code goes here
END
A few significant issues...
September 9, 2010 at 4:19 pm
THolley, what Steve posted above is your best solution if you're proc based, but if this is straight dynamic SQL from a front end code bed you're basically SOL without...
September 9, 2010 at 3:44 pm
Well, the sql command you'd want to use would be sp_executesql @sql, with @sql being whatever was typed into text1, and the send command to the...
September 9, 2010 at 3:14 pm
Using right joins your last table is the one that has to have records, then the second to last to expand it, and so on.
If you're looking for results, no...
September 9, 2010 at 2:19 pm
You're looking for the REVERSE() function, paired with a CHARINDEX() to find the location of the space.
This can be processor intensive, hopefully this isn't a regularly running proc and is...
September 9, 2010 at 2:15 pm
Viewing 15 posts - 5,611 through 5,625 (of 5,684 total)