Hi @GeethaThatipatri-MSFT sorry for late reply. The solution that you advised did not work. Instead I converted it to a list and later used dataframe through which I could insert it into database.
Below is the steps.
Thanks for your help and follow up. Appreciate it.