Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

Getting ;00000000; out of an error description

$
0
0

Hi,

I work with an error log table that includes an column called error_description and it will give a description that are around 600 chars. I want my select statement only to shot parts of the error description. The unique part of the error description is always this: ;20160203;(8 numbers with semicolon on each side).  it's surrounded by two ID's like this: ;1234;20160203;12345;, and these two ID's is what i want my statement to show. So i guess i need to locate 8 numbers within two semicolons, and then somehow take out all the numbers from the left semicolon and to the next left semicolon, and the same for the right side ID. I don't know if you understand what i mean or if it's even possible. But this would have saved me a lot of work :)



Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>