Comments
1 comment
-
My guess would be that you'd want to source control the CLR function first so it's available in target databases.
You could then commit your table change but override it with a migration script to execute your CLR function to update the data before changing the column type.
If you're not using migrations, then you'd probably be better off manually running the function to update the data, then getting the column change from source control afterwards?
Add comment
Please sign in to leave a comment.
I am looking at changing a column from a string to a type xml type. Some parsing of the string is required to re-encode the data. I have developed a CLR function to do this. My questions is how should I go about doing this I a migration scripted. As I only need the CLR function for the migration do I add and remove it or just leave it.
Any advice would be appreciated
Steven