READ Free Dumps For Microsoft- 70-461
Question ID 15038 | You use Microsoft SQL Server 2012 to develop a database application. |
Question ID 15039 | You use Microsoft SQL Server 2012 to develop a database application. |
Option A | BEGIN TRY SELECT convert (decimal(36,9), @var) as Value, 'True' As BadCast END TRY BEGIN CATCH SELECT convert (decimal(36,9), @var) as Value, 'False' As BadCast END CATCH |
Option B | TRY( SELECT convert (decimal(36,9), @var) SELECT 'True' As BadCast ) CATCH( SELECT 'False' As BadCast ) |
Option C | SELECT CASE WHEN convert (decimal(36,9), @var) IS NULL THEN 'True' ELSE 'False' END AS BadCast |
Option D | SELECT IF(TRY_PARSE(@var AS decimal(36,9)) IS NULL, 'True', 'False' ) AS BadCast |
Correct Answer | D |