Quantcast
Channel: SQL Server Migration forum
Viewing all articles
Browse latest Browse all 1700

Extracting a number from a string

$
0
0

I'm trying to import data from access to sql. I would like to look in a string that has values like 1, 1 day, 1 week, net 5 and I would like to make it into an integer column in sql. What I would like to happen is that if the string contains week then the number in that string should be multiplied by 7 else it should just find the number within the string and pull it out. so that in the above examples it will save to sql as 1, 1, 7, 5. Is there a way to do this within the import wizard?


Debra has a question


Viewing all articles
Browse latest Browse all 1700

Trending Articles



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