Viewing 15 posts - 91 through 105 (of 131 total)
It depends on how much you want to restrict things by. DENY VIEW is only needed if you don't even want the users to know that the databases are...
February 10, 2010 at 3:32 am
That makes a lot more sense :-).
Astonishingly, I haven't seen the DATEDIFF with a zero parameter before. That's really useful.
February 9, 2010 at 5:46 am
Could be I'm just being thick (it wouldn't be the first time), but I don't follow how the DATEDIFF(hh,0,EventTime) can work.
select datediff(hh,0,'09 feb 2010 12:34:56') returns 965196
and select datediff(hh,0,'09 feb...
February 9, 2010 at 4:45 am
If you check DENY in BOL, it says
Denies a permission to a principal. Prevents that principal from inheriting the permission through its group or role memberships
which is why changing the...
February 9, 2010 at 4:21 am
Surely we don't really need the dynamic SQL in there, we can just use:
declare @newName sysname
...
set @newName = @childname + '_' + @parentname + '_' + CAST(@soid as varchar(20)) +...
January 26, 2010 at 2:52 am
sp_spaceused returns 2 datasets with different shapes. If I'm reading BOL correctly (I haven't tested it), then in this case, INSERT INTO tries to insert both datasets into the...
January 8, 2010 at 3:22 am
I don't think that the problem is that we can't know which is correct as Adi says, but that to know which is correct, you have to have Northwind installed,...
January 6, 2010 at 2:26 am
I have to admit that even now I understand the full question, I would still have got it wrong :crying:. As Vinay says, this is very surprising behaviour.
December 30, 2009 at 2:38 am
Ed W. (11/13/2009)
VB.Net supports optional parameters which C# does not.
You'll like C# 2010 then:- optional parameters!
November 13, 2009 at 6:23 am
I moved from a VB shop to a C# shop a few years ago and after the initial pain of having to learn the syntax, I'd say that there's little...
November 13, 2009 at 2:50 am
At the risk of sounding like a moaning Jock, that one's only for England and Wales. The Scottish one's http://www.scotblood.co.uk/
October 30, 2009 at 3:50 am
honza.mf (10/26/2009)
First time I consulted BOL before answering. Who remembers all those datetime styles?
I'm glad you admitted this too. I always feel a bit guilty :blush: when I sneak...
October 26, 2009 at 4:49 am
VM-723206 (9/25/2009)
Very easy!
To us maybe - but I'm tempted to send a link to the answer to some of our developers, who seem to be incapable of using this syntax.
September 25, 2009 at 8:45 am
I chose 1 as well.
When faced with a problem like this, my brain automatically went into "performance problem" mode, and since these generally occur with big datasets, I selected the...
September 7, 2009 at 9:20 am
I'm with David on this one. The question as written is totally ambiguous, and nvarchar or memo are equally valid answers, depending on how you parse the question.
June 25, 2009 at 7:25 am
Viewing 15 posts - 91 through 105 (of 131 total)