About 51 results
Open links in new tab
  1. sql server - check to see if cast is possible - Stack Overflow

    Feb 6, 2013 · Well, in SQL Server 2012 you could use the new TRY_CAST (), but with SQL Server 2008, you should be able to use ISNUMERIC (), and then include handling for values that do not …

  2. sql - try_cast and cast differing results. The conversion of a date ...

    Jan 13, 2021 · "The conversion of a date data type to a datetime data type resulted in an out-of-range value." If I change the insert statement to SELECT TRY_CAST(si.InceptionDate AS datetime) this …

  3. sql server - Converting a VARCHAR to an INT; is TRY_CAST or …

    Apr 17, 2024 · 2 I'm looking at some T-SQL code (in a SQL Server 2019 environment) where a parameter in a stored procedure is an "overloaded" VARCHAR (15) parameter, and later is meant to …

  4. How do you check if a field contains all numeric values using Teradata …

    Oct 19, 2016 · I'm looking for a function similar to ISNUMERIC() from T-SQL with Teradata SQL. I'd like a simple method to return a Boolean (or numeric 1/0) if the data contained in a character-type field is …

  5. t sql - Why does TRY_CAST () / TRY_CONVERT () take so ... - Stack …

    Aug 4, 2024 · Why does TRY_CAST () / TRY_CONVERT () take so overly long for a view outer joined on itself but each side filtered on another String?

  6. apache spark - PySpark SQL TRY_CAST? - Stack Overflow

    Dec 7, 2018 · What your code does, is: if the number in Value column doesn't fit into float, it will be casted to float, and then to string (try with >6 decimal places). As far as I know TRY_CAST converts …

  7. c# - How to "TryCast" data in sql - Stack Overflow

    Dec 10, 2011 · 3 Related posts: MS SQL server casting without exception How do I TryParse in SQL 2000? You may end up needing to write a user-defined function to that combines a few different …

  8. sql - Stored Procedure - TRY_CAST () - Stack Overflow

    Jun 18, 2017 · I made a query that uses TRY_CAST(@VAR as decimal(18,2)) it is working but when I tried on '0.00', it returns null DECLARE @FROMHEADERPH TABLE (id int identity, headername …

  9. sql server - TRY_CAST is not a recognized built-in function name ...

    SELECT TRY_CAST('ax' AS decimal) SELECT TRY_CAST('4.0' as decimal) However the built-in editor gives me a message saying this function is not recognized. Edited to Add: Sql Server Management …

  10. casting - Convert char to int TeraData Sql - Stack Overflow

    Sep 8, 2016 · I'm trying to convert a column from char (8) to integer in order to make a referential integrity with an integer. IT didn't work and I test a select in order to check the cast. Utente_cd is a …