I’m transferring data from one database to another (upgrading a system) and have a quick question.
In the source database (the one currently in use), I have a column that stores urls using absolute paths. In my new database, I am using relative paths. How can I trim out the absolute portion of the paths on the transfer (I’m using INSERT INTO), leaving only the file name?
Thanks!
Jack
You could try something like
Alternatively you could create a CLR scalar function in C# that should make this a bit easier for you.
Have a look at How to: Create and Run a CLR SQL Server User-Defined Function