I am passing an xml document to a stored procedure. To pass it, I have to convert everything to String. In my database I have 2 columns that are int though. How can I convert the information to an int value in my stored procedure?
Error: Conversion failed when converting the nvarchar value 'III' to data type int.
I tried the below, but have the error: Incorrect syntax near '('. Line 33
Cast([LineId] as int) int, --[LineId] int, [Phone] nvarchar(12),