There is a particular email address that look like this in my csv file
"WZM","WZMDSDF","Kevin.O'Neil@gmail.com","True","mb"
I'm inserting it like this to my sql database using like this
$queryII = "insert into Hold_Inv (Hold,GID,Source,Type,CreatedDate) VALUES ('$($item.Hold)','$($item.GID)','$($item.Source)','$($item.Type)','$CurDate')"
I'm getting this error so just wondering how can I fix this unclosed quotation mark
Invoke-Sqlcmd : Incorrect syntax near 'Neil@gmail'.
Unclosed quotation mark after the character string ')
I have other emails in the same csv file like this jonathan.sparkle@gmail.com but I have no issue. Any help or suggestion on how to fix above error will be really appreciated