Skip to content
Advertisement

Parse String and Insert Results Into 3 Fields

I have a field in a SQL table that looks like this.

It’s literally a file name. I’d need to create 3 new fields and split the string shown above into this.

How can I do that?

I have this basic SQL that does the select and parsing, but I’m not sure how to do the insert into.

I am in SQL Server 2019.

Advertisement

Answer

Assuming these are the names of the new columns, I would just go for:

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement