Viewing 15 posts - 646 through 660 (of 1,554 total)
Ah, but it does...
sysprocesses.spid contains the actual spid
sysprocesses.blocked if > 0 means two things - spid is being blocked, and the value here is the blocking spid.
Have a look in...
January 24, 2006 at 6:24 am
Not sure this is the most elegant solution, but it does seem to fulfill the requirement to return only the house that complies to all elements in the IN clause.
January 24, 2006 at 6:10 am
'Top 100' by itself doesn't return the 'first', it returns the 'first found by the query'.
If 'first' is implied by some kind of order, you must use ORDER BY on...
January 24, 2006 at 3:10 am
What I guess Ray means, is that SQL is not very well suited for formatting purposes - it's a data retrieving / manipulating setbased language, quite different from your 'normal' structured...
January 24, 2006 at 2:23 am
If you look inside sp_who / sp_who2 you can see that they get their blocked info from master..sysprocesses.
/Kenneth
January 24, 2006 at 2:16 am
The usual answer is 'do it on the client, SQL is no good at this sort of thing'
However, if you really need to anyway, there are a few different ways...
January 23, 2006 at 8:52 am
When we move from inner joins to outer joins, the rules changes accordingly.
(assuming the example with just two tables)
For an inner join, both tables are 'equal', thus if a filter...
January 23, 2006 at 8:44 am
Well, if you think that the solution to your (unknown?) problem is to use dynamic SQL, I strongly recommend reading The curse and blessings of dynamic SQL first.
It's crucial that...
January 23, 2006 at 8:09 am
It's a bit more than difficult, it's impossible. Can't be done.
Views are built on <select statement> - you cannot 'select procedure', so it won't work.
Please have a look in BOL...
January 20, 2006 at 8:40 am
It's Norwegian, Vladan.
(quite similar to Swedish, a bit farther away from Danish)
/Kenneth
January 19, 2006 at 9:06 am
My guess is that it's not in an index, since it seems to be a bit datatype. (referred to as to be set to 'true' and the variable is also...
January 18, 2006 at 8:03 am
I don't believe there's any other way than to drop and recreate.
You can check current settings by select objectproperty(object_id('dbo.myTable'), 'IsAnsiNullsOn')
In the notes on the 'IsAnsiNullsOn' property, BOL says:
IsAnsiNullsOn Scalar...
January 18, 2006 at 3:50 am
Well, then I guess you're stuck.
(though getting the client to provide it *will* solve your problem)
You can't audit information not provided with the connection
January 13, 2006 at 8:30 am
Whew - lotsa text..
I'd guess that - No, it's not the same as the case (though this is a guess)
But the case seems...
January 13, 2006 at 8:11 am
That will give you the servers IP, not the current user...
For a complete networkaddress, you need two things:
IP + subnetmask or IP...
January 13, 2006 at 7:55 am
Viewing 15 posts - 646 through 660 (of 1,554 total)