About 53 results
Open links in new tab
  1. sql server - Convert varchar value to int without throwing an exception ...

    Jan 2, 2017 · Is there a way to call the Sql Server functions Convert/Cast without having them throw an exception? Basically, I have a column that contains alphanumeric data and I am extracting values …

  2. sql server - T-SQL Cast versus Convert - Stack Overflow

    Apr 1, 2009 · What is the general guidance on when you should use CAST versus CONVERT? Is there any performance issues related to choosing one versus the other? Is one closer to ANSI-SQL?

  3. sql - how to convert date to a format `mm/dd/yyyy` - Stack Overflow

    Sep 2, 2013 · I'm having a sql table with date column named CREATED_TS which holds the dates in different format eg. as shown below Feb 20 2012 12:00AM 11/29/12 8:20:53 PM Feb 20 2012 …

  4. sql server - SQL Cast to show decimals - Stack Overflow

    Apr 19, 2018 · SQL Cast to show decimals Asked 7 years, 11 months ago Modified 3 years, 5 months ago Viewed 3k times

  5. sql - Qual a diferença entre Cast e Convert? - Stack Overflow em ...

    As duas funções (CAST e CONVERT) possuem a mesma finalidade, portanto fazem a mesma coisa, que é a conversão do tipo de dados de uma expressão. Não há muita diferença entre as duas …

  6. sql server - BCP Invalid character for cast specification - Stack Overflow

    Apr 29, 2019 · I am trying to import the CSV with these contents into my SQL server database. The data : tranche_d_age <18 18_24 25_34 35_44 45_60 >60 The format file : 14.0 1 1 SQLCHAR ...

  7. sql server - CAST (DATETIME AS DATE) over WHERE clause - Stack …

    Jul 9, 2014 · SELECT MyDateTimeColumn FROM MyTable WHERE CAST(MyDateTimeColumn AS DATE) = '2014-07-09' is a slower way to trim the time over DATETIME columns, I have searched but …

  8. SQL: How use case and cast in a query? - Stack Overflow

    Aug 23, 2013 · I want to cast VARCHAR to INT, but in my table i have some value like '???' then SQL Server launch this expcetion : Conversion failed when converting the varchar value '????' to data …

  9. sql server - Cast into a decimal with a specified amount of decimal ...

    EDIT: I made a mistake and wrote NUMBER instead of NUMERIC. But the question stands still: How do I cast to a NUMERIC with a specified number of decimal places?

  10. varbinary to string on SQL Server - Stack Overflow

    Jul 20, 2010 · How to convert a column value from varbinary(max) to varchar in human-readable form?