Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in SQL Server only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
SQL Server
get id
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
sadara
New Member
Join Date:
Oct 2007
Posts:
3
#1
get id
Jul 23 '10, 06:42 AM
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
Join Date:
Mar 2007
Posts:
1726
#2
Jul 23 '10, 08:08 AM
It depends on how consistent the structure is.
But a combination of CHARINDEX and SUBSTRING should do it
Comment
Post
Cancel
ck9663
Recognized Expert
Specialist
Join Date:
Jun 2007
Posts:
2878
#3
Jul 23 '10, 05:02 PM
Are you reading a table or an XML?
~~ CK
Comment
Post
Cancel
amitpatel66
Recognized Expert
Top Contributor
Join Date:
Mar 2007
Posts:
2358
#4
Jul 26 '10, 03:43 PM
In case if thats an XML, can you post the complete xml message that would help us better and provide more efficient solution?
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment