get id

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sadara
    New Member
    • Oct 2007
    • 3

    get id

    i want ti get id but field contain value like this <IncidentID=2 0>

    i want to get 20 only

    how can i get this
  • code green
    Recognized Expert Top Contributor
    • Mar 2007
    • 1726

    #2
    It depends on how consistent the structure is.
    But a combination of CHARINDEX and SUBSTRING should do it

    Comment

    • ck9663
      Recognized Expert Specialist
      • Jun 2007
      • 2878

      #3
      Are you reading a table or an XML?

      ~~ CK

      Comment

      • amitpatel66
        Recognized Expert Top Contributor
        • Mar 2007
        • 2358

        #4
        In case if thats an XML, can you post the complete xml message that would help us better and provide more efficient solution?

        Comment

        Working...