Viewing 15 posts - 2,446 through 2,460 (of 2,645 total)
That's a horrendous complicated query! Personally I think it needs a complete rewrite.
But if you don't have time and want to improve the performance the first thing to check is...
July 10, 2015 at 7:46 am
27 seconds is quite a long time to delete from a table if the system is live. You could come across errors where inserts and updates are failing as the...
July 6, 2015 at 10:04 am
You could write a stored procedure to return the results, with a parameter of jobname. then just grant them permissions to execute the stored procedure.
July 6, 2015 at 4:30 am
What does it say in the history of the scheduled task?
Have you got the correct folder in the Start In option under Actions?
July 1, 2015 at 5:37 am
Thought it might be worth adding some bulk test data:
-- You'll need Jeff Moden's Tally table for this http://www.sqlservercentral.com/articles/T-SQL/62867/
TRUNCATE TABLE [dbo].[OfficeCounty]
DELETE [dbo].[County]
DELETE [dbo].[Office]
-- Generate 26*26*10 counties (10 counties in each...
June 30, 2015 at 9:47 am
Lynn Pettis (6/4/2015)
Jonathan AC Roberts (6/4/2015)
June 4, 2015 at 2:45 pm
The reason a semicolon is required before the WITH in a CTE as that WITH has two uses, it can be used for hints e.g.
SELECT * FROM MyTable WITH...
June 4, 2015 at 10:27 am
asushil (5/15/2015)
some expert gentlemen on MSDN...
May 15, 2015 at 10:21 am
rob.lobbe-964963 (4/30/2015)
To use a system function that already does what you have coded.
But it doesn't do the same thing. The function I wrote displays the value of an int in...
April 30, 2015 at 6:32 pm
rob.lobbe-964963 (4/29/2015)
try master.sys.fn_varbintohexstr( cast(int-value as varbinary(max)) )
To do what?
April 30, 2015 at 4:44 am
Mark D Powell (4/28/2015)
April 28, 2015 at 3:08 pm
Well it probably is bit of an obscure/esoteric thing to do but one of the most efficient ways of storing items that are switched is in a bit string within...
April 28, 2015 at 8:48 am
Michael Meierruth (4/28/2015)
Jonathan AC Roberts (4/28/2015)
It's used so the right-most bit, which is set to...
April 28, 2015 at 2:58 am
~ is the T-SQL's bitwise NOT operator. It inverts all the bits in an integer.
It's used so the right-most bit, which is set to 1 two's compliment signed integer...
April 28, 2015 at 1:49 am
There might be the odd special situation where this is a good idea and will work but from what I can see you need to rely on there being a...
April 20, 2015 at 6:35 am
Viewing 15 posts - 2,446 through 2,460 (of 2,645 total)