Viewing 15 posts - 856 through 870 (of 5,394 total)
Now I see that my post could be seen as bragging, when all I wanted to do was nothing but say "thank you". I'm hopelessly bad at soft skills. 🙁
It...
January 2, 2015 at 3:30 pm
Happy New Year everybody!
And there's a very special thank you message for every single one of you on my blog here! 🙂
Thank you for involving me in the most addictive...
January 1, 2015 at 5:04 pm
GilaMonster (12/22/2014)
Someone, please, help! http://www.sqlservercentral.com/Forums/Topic1645843-1549-1.aspx
OMG!
Cannot be unseen......:sick:
December 22, 2014 at 9:47 am
DENY is removed with REVOKE.
Here's an example:
USE tempdb;
GO
-- Create a dummy user
CREATE USER someUser WITHOUT LOGIN;
GO
-- GRANT DELETE
GRANT DELETE TO someUser;
GO
-- REVOKE DELETE
DENY DELETE TO someUser;
GO
-- only one between...
December 19, 2014 at 4:58 am
It looks like you have to add parentheses to your RAISERROR command:
raiserror( @errno,10,1, @errmsg)
At least, in my 2012 and 2014 instances it worked.
December 18, 2014 at 2:47 am
This should do the trick:
SELECT Name,
SUM(Quantity) AS SumQuantity,
SUM(Volume) AS SumVolume
FROM (
SELECT CASE WHEN SUM(Volume) OVER() * .03...
December 18, 2014 at 2:36 am
Use 0 if the value exists and it is 0.
Use NULL if the value does not exist or is undefined.
If you used 0 when NULL was more appropriate, how would...
December 16, 2014 at 2:36 am
The ones returned by sp_WhoIsActive are the ones that are actually running or holding open transactions.
Activity monitor shows all sessions.
December 15, 2014 at 2:08 am
Open a new query editor window. (CTRL + N)
Type this:
EXEC sp_WhoIsActive
Hit F5
December 12, 2014 at 7:40 am
Don't use the context menu to execute the procedure. Just run EXEC sp_whoisactive
December 12, 2014 at 6:42 am
Weird. Quick attempt: copy everything to a new query editor window and execute from there. I had issues in the past executing scripts extracted from a zip file in a...
December 12, 2014 at 4:26 am
locate the ALTER PROC statement in the whoisactive.sql file, select everything from there on to the end of the file and hit F5.
Any errors?
December 12, 2014 at 4:07 am
Plese re-run the contents of the file who_is_active_v11_11.sql.
Does it run successfully or does it throw errors?
If the procedure has been created successfully, you should see it in the object explorer...
December 12, 2014 at 3:56 am
Nope. Unfortunately this is not possible with native tools, nor I think this feature is in Microsoft's plans.
December 12, 2014 at 3:49 am
It looks like you got errors creating the stored procedure. Which version are you on?
December 12, 2014 at 3:48 am
Viewing 15 posts - 856 through 870 (of 5,394 total)