Guest User

Untitled

a guest
May 24th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. Conversion failed when converting the nvarchar value '9824
  2. ' to data type int.
  3.  
  4. SELECT CAST(table_name AS integer)
  5. FROM OLTP.table
  6.  
  7. SELECT ISNUMERIC(REPLACE(Revenue, ' ', '')), Revenue, ISNUMERIC(REPLACE(LTRIM(RTRIM(Revenue)), ' ', ' '))
  8. FROM OLTP.ExtractedData
  9.  
  10. (No column name) Revenue (No column name)
  11. 0 9824 0
  12. 0 5661 0
  13. 0 3250 0
  14. 0 2959 0
  15. 0 2511 0
  16. 0 2072 0
  17. 0 2056 0
  18. 0 1705 0
  19. 0 1704 0
Add Comment
Please, Sign In to add comment