Forum Replies Created

Viewing 15 posts - 646 through 660 (of 1,554 total)

  • RE: blocking issue..

    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...

  • RE: What can I use in stead of the IN operator (to ''''AND'''' the conditions, not ''''OR'''')

    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.

  • RE: bottom 100

    '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...

  • RE: T-SQL Teaser

    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...

  • RE: blocking issue..

    If you look inside sp_who / sp_who2 you can see that they get their blocked info from master..sysprocesses.

    /Kenneth

  • RE: sql query help

    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...

  • RE: Restricting rows in WHERE or in ON?

    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...

  • RE: How to call a stored procedure in a View

    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...

  • RE: How to call a stored procedure in a View

    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...

  • RE: Count days per month and group by month

    It's Norwegian, Vladan.

    (quite similar to Swedish, a bit farther away from Danish)

    /Kenneth

     

  • RE: An If statement in the Where clause

    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...

  • RE: Indexed Views & ANSI_NULLS

    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...

  • RE: Get Curent Users PC Name / IP Address

    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

  • RE: Question on comparison

    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...

  • RE: Get Curent Users PC Name / IP Address

    That will give you the servers IP, not the current user...

    For a complete networkaddress, you need two things:

    IP + subnetmask or IP...

Viewing 15 posts - 646 through 660 (of 1,554 total)