Forum Replies Created

Viewing 15 posts - 11,146 through 11,160 (of 26,486 total)

  • RE: using sys.dm_exec_sessions , where to find database name/id

    How about this:

    select

    es.session_id,

    er.session_id,

    er.dbid,

    db_name(er.dbid)

    from

    sys.dm_exec_sessions es

    inner join sys.dm_exec_requests...

  • RE: Max value in the table

    ssc_san (6/21/2012)


    Thank you all for the replies.

    Here is the sample code, I am trying to get the Max three letter field and date associated to it, the query mentioned in...

  • RE: Combining Code

    Yes, you need to look at the articles in my signature block regarding cross tabs. There are two and I recommend reading both. The second, if I remember...

  • RE: INTEAD OF UPDATE - Updating primary key of a table

    This is why I like SIDs, you can have a unique key that never changes that can be used for just such cases.

    Does the table have any other candidate keys...

  • RE: Combining Code

    Give this a try. It is untested as you didn't provide DDL, sample data, or expected results.

    SELECT

    p.PARTNUMBER,

    p.DESCRIPTION,

    STUFF((SELECT...

  • RE: Keeping at table lean and highly available

    Evil Kraig F (6/21/2012)


    yb751 (6/21/2012)


    Sorry one more question if I may.

    What would be the best stategy for creating a new partition on the main table in such a way that...

  • RE: Max value in the table

    I also think there is more to it than what is in OPs initial post.

  • RE: need a query

    nithiraja.r (6/21/2012)


    NOMark1Mark2descriplatest

    11112322aaa1

    11112422aaa1

    22222522bbb0

    22222521bbb0

    33332520ccc1

    Here the NO column is not a identity column. I need to write a query to populate unique NO from the table which has highest mark1.if the mark1 value...

  • RE: Keeping at table lean and highly available

    Been a while since I even created a partitioned table, but bassed on the information provided so far, I have absolutely no idea, not even a shot in the dark.

    It...

  • RE: Msg 916, Level 14, State 1, Line 1

    Your heading is the entire error message? Doesn't tell me a thing, sorry.

  • RE: Max value in the table

    Not without greater detail. Please read and follow the instructions in the first article I reference below in my signature block. It will walk you through the things...

  • RE: Add invoice in stored procedure

    I have to agree with Craig. There isn't enough information to even give you a shot in the dark. Please read the article that he suggested, it will...

  • RE: Max value in the table

    ssc_san (6/21/2012)


    Hello all,

    I was expecting the maximum value for the code mentioned below to be "005", but it is different,

    Could someone explain, If hyphen "-" is preceded in the...

  • RE: Determining Continuous Eligibility between dates

    Not sure what your problem/question is here, care to elaborate?

  • RE: Choosing control flow and data flow items?

    herladygeekedness (6/21/2012)


    Charmer, are you saying that your toolbox is completely empty, or just missing 3rd party tools?

    If the former, I'm not sure how to help unless you can right-click the...

Viewing 15 posts - 11,146 through 11,160 (of 26,486 total)