I want to split a string into two tables.
I have a table named event01_eventsummary. In this table a sample entry is: "Mr. Smith | Meeting with Mrs.Smith".
Now I want the string before the delimiter (|) in the table event01_eventorganizer.
I know in MySQL I could use the MySQL SUBSTRING_INDEX() function. I can't make a xml or create a function to replicate the MySQL SUBSTRING_INDEX() function in MSSQL, because I have no direct access to the SQL Server.
Anyone know how I could get this done?
EDIT: It is not a duplicate. I tried the T-SQL Scalar function and other openly available solutions. But I can't seem to find a method that doesnt require to create a function.