{"id":1607,"date":"2024-03-03T16:00:28","date_gmt":"2024-03-03T15:00:28","guid":{"rendered":"https:\/\/staging.sql.marcus-belz.de\/?p=1607"},"modified":"2026-05-07T01:06:37","modified_gmt":"2026-05-06T23:06:37","slug":"data-quality-converting-data-to-money-smallmoney","status":"publish","type":"post","link":"https:\/\/staging.sql.marcus-belz.de\/?p=1607&lang=en","title":{"rendered":"TRY_CONVERT \/\/ Converting data to money, smallmoney"},"content":{"rendered":"\n<p>SQL Server provides the following data types for storing currency values:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>money<\/li>\n\n\n\n<li>smallmoney<\/li>\n<\/ul>\n\n\n\n<p>The data type <em>money<\/em> is essentially identical to the data type <em>decimal(19, 4)<\/em> and the data type <em>smallmoney <\/em>to the data type <em>decimal(10, 4)<\/em>. There are internal differences in how SQL Server stores a decimal value and a money\/smallmoney value. However, these differences are not relevant here.<\/p>\n\n\n\n<p>The data types <em>money <\/em>and <em>smallmoney <\/em>have a special bevaviour in calculations. The result of a multiplication or division of money values is implicitly converted into a money value with 4 decimal places after each step of the calculation.<\/p>\n\n\n\n<pre class=\"wp-block-code has-background\" style=\"background-color:#eeeeee\"><code> 1: SELECT CAST(123.45678 AS money        )              -- 123,4568\n 2: SELECT CAST(123.45678 AS money        ) \/ 100        -- 1,2345\n 3: SELECT CAST(123.45678 AS money        ) \/ 100 * 100  -- 123,45\n 4:                                                     -- \n 5: SELECT CAST(123.45678 AS decimal(10,4) )             -- 123.4568\n 6: SELECT CAST(123.45678 AS decimal(10,4) ) \/ 100       -- 1.23456800\n 7: SELECT CAST(123.45678 AS decimal(10,4) ) \/ 100 * 100 -- 123.45680000<\/code><\/pre>\n\n\n\n<p>When using the data type <em>money<\/em>, the result loses precision in the first statement. The result in lines 1 and 3 is not nominally the same. Using the data type <em>decimal <\/em>gives the same result.<\/p>\n\n\n\n<p>The return result of converting a value to the money data type depends on the data type in which a number is passed. A distinction must be made here between passing a parameter expression as a value of type text and as a value of type no text.<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Content<\/h1>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"#AnchorText\">Text<\/a><\/li>\n\n\n\n<li><a href=\"#AnchorNoText\">No Text<\/a><\/li>\n\n\n\n<li><a href=\"#AnchorSaveTypeConversion\">Safe type conversion<\/a><\/li>\n\n\n\n<li><a href=\"#AnchorSummary\">Summary<\/a><\/li>\n\n\n\n<li><a href=\"#AnchorRelatedPosts\">Related Posts<\/a><\/li>\n<\/ul>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"AnchorText\">Text<\/h1>\n\n\n\n<p>If a value of type text is passed, the value passed must represent a number. A point is always expected as the decimal separator. In contrast to converting a number to the decimal data type, commas are ignored. Since decimal numbers supplied via a text file, for example in German notation, use a comma as a decimal separator, a comma should generally be replaced by a period. If the input value contains both a decimal separator and commas as thousands separators, this replacement results in the input value not being able to be interpreted because the input value then has more than one period. In this case, the result of the conversion is <em>NULL<\/em>.<\/p>\n\n\n\n<p>Leading and trailing spaces are truncated by the function and do not prevent conversion. An empty string is translated as 0 in contrast to the target data type <em>decimal<\/em>. If the input value contains more than 4 decimal places, the <strong><a href=\"https:\/\/learn.microsoft.com\/de-de\/sql\/t-sql\/functions\/try-convert-transact-sql?view=sql-server-ver16\">TRY_CONVERT<\/a> <\/strong>function rounds to the fourth decimal place.<\/p>\n\n\n\n<p>The following code example shows the results of the <strong>TRY_CONVERT <\/strong>function for various valid, invalid and sometimes nonsensical decimal numbers that are passed as text of type <em>nvarchar <\/em>and converted to a number of type <em>money<\/em>:<\/p>\n\n\n\n<pre class=\"wp-block-code has-background\" style=\"background-color:#eeeeee\"><code> 1: SELECT TRY_CONVERT(money, NULL          ) -- &gt; NULL\n 2: SELECT TRY_CONVERT(money, N'12345678'   ) -- &gt; 12345678.00\n 3: SELECT TRY_CONVERT(money, N'123,45678'  ) -- &gt; 12345678.00\n 4: SELECT TRY_CONVERT(money, N'123.45678'  ) -- &gt; 123.4568\n 5: SELECT TRY_CONVERT(money, N''           ) -- &gt; 0.00\n 6: SELECT TRY_CONVERT(money, N' '          ) -- &gt; 0.00\n 7: SELECT TRY_CONVERT(money, N'  123.45678') -- &gt; 123.4568\n 8: SELECT TRY_CONVERT(money, N'123.45678  ') -- &gt; 123.4568\n 9: SELECT TRY_CONVERT(money, N'12345678E-3') -- &gt; NULL\n10: SELECT TRY_CONVERT(money, N'1,234.5678' ) -- &gt; 1234.5678\n11: SELECT TRY_CONVERT(money, N'1.234.5678' ) -- &gt; NULL\n12: SELECT TRY_CONVERT(money, N'1,2,3,4'    ) -- &gt; 1234.00\n13: SELECT TRY_CONVERT(money, N'1,2,3.4'    ) -- &gt; 123.40\n14: SELECT TRY_CONVERT(money, N'1,2.3.4'    ) -- &gt; NULL\n15: SELECT TRY_CONVERT(money, N'1,2.3,4'    ) -- &gt; 12.34<\/code><\/pre>\n\n\n\n<p>If a value of type text is passed to the <strong>TRY_CONVERT <\/strong>function, the value passed must represent a number. A point is always expected as the decimal separator. Thousand separators are not permitted. If the parameter contains a comma, the value cannot be converted and the <strong>TRY_CONVERT <\/strong>function returns <em>NULL<\/em>. Leading and trailing spaces are truncated by the function <strong>TRY_CONVERT <\/strong>and do not prevent conversion. An empty string is translated as <em>NULL<\/em>.<\/p>\n\n\n\n<p>The following code example shows the results of the <strong>TRY_CONVERT <\/strong>function for various valid and invalid decimal numbers passed as text of type <em>nvarchar <\/em>and converted to a number of type <em>money<\/em>:<\/p>\n\n\n\n<pre class=\"wp-block-code has-background\" style=\"background-color:#eeeeee\"><code>1: SELECT TRY_CONVERT(money, NULL          ) -- &gt; NULL\n 2: SELECT TRY_CONVERT(money, N'12345678'   ) -- &gt; 12345678.00\n 3: SELECT TRY_CONVERT(money, N'123,45678'  ) -- &gt; 12345678.00\n 4: SELECT TRY_CONVERT(money, N'123.45678'  ) -- &gt; 123.4568\n 5: SELECT TRY_CONVERT(money, N''           ) -- &gt; 0.00\n 6: SELECT TRY_CONVERT(money, N' '          ) -- &gt; 0.00\n 7: SELECT TRY_CONVERT(money, N'  123.45678') -- &gt; 123.4568\n 8: SELECT TRY_CONVERT(money, N'123.45678  ') -- &gt; 123.4568\n 9: SELECT TRY_CONVERT(money, N'12345678E-3') -- &gt; NULL\n10: SELECT TRY_CONVERT(money, N'1,234.5678' ) -- &gt; 1234.5678\n11: SELECT TRY_CONVERT(money, N'1.234.5678' ) -- &gt; NULL\n12: SELECT TRY_CONVERT(money, N'1,2,3,4'    ) -- &gt; 1234.00\n13: SELECT TRY_CONVERT(money, N'1,2,3.4'    ) -- &gt; 123.40\n14: SELECT TRY_CONVERT(money, N'1,2.3.4'    ) -- &gt; NULL\n15: SELECT TRY_CONVERT(money, N'1,2.3,4'    ) -- &gt; 12.34 <\/code><\/pre>\n\n\n\n<p>Lines 10 to 15 require special attention. Here, sometimes nonsensical combinations of decimal separators and thousands separators are used to explain the behavior of the <strong>TRY_CONVERT <\/strong>function.<\/p>\n\n\n\n<p>In lines 5 and 6, the input values are an empty string and text with only spaces, respectively. The <strong>TRY_CONVERT <\/strong>function converts this to the value 0. This behavior can be viewed as an error in the <strong>TRY_CONVERT <\/strong>function and must be taken into account during the conversion in that an empty character string or a text with only spaces must be replaced by a <em>NULL <\/em>before the conversion .<\/p>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"AnchorNoText\">No Text<\/h1>\n\n\n\n<p>If a number is passed as a typed number rather than text, the function can convert any number into a value of type money. Values are rounded to the fourth decimal place. Converting a number value into the target data type <em>money <\/em>can therefore change the nominal initial value.<\/p>\n\n\n\n<p>The following code example shows the results of the <strong>TRY_CONVERT <\/strong>function for various valid and invalid numbers passed as typed values, each converted to a number of type <strong>money<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code has-background\" style=\"background-color:#eeeeee\"><code> 1: SELECT TRY_CONVERT(money, NULL       ) -- &gt; NULL\n 2: SELECT TRY_CONVERT(money, 12345678   ) -- &gt; 12345678.00\n 3: SELECT TRY_CONVERT(money, 123,45678  ) -- &gt; 123.00\n 4: SELECT TRY_CONVERT(money, 123.45678  ) -- &gt; 123.4568\n 5: SELECT TRY_CONVERT(money, 12345678E-5) -- &gt; 123.4568<\/code><\/pre>\n\n\n\n<p>It should be noted here that the number in line 3 is not a decimal number. The value after the comma is interpreted as a style parameter, which, however, has no effect on the type conversion. In this line, the value in expression is of type <em>int<\/em>. In line 4, a decimal number with decimal places is passed in expression as a value of type <em>float<\/em>.<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Safe type conversion<\/h1>\n\n\n\n<p>Taking into account the above statements, in particular the incorrect behavior of the <strong>TRY_CONVERT <\/strong>function when converting an empty character string or a text with only spaces, the conversion of an input value to the money data type is carried out using the following statement:<\/p>\n\n\n\n<pre class=\"wp-block-code has-background\" style=\"background-color:#eeeeee\"><code>1: TRY_CONVERT( &#91;money&#91;(n)]|smallmoney]\n 2:             ,TRY_CONVERT( float\n 3:                          ,REPLACE( CASE WHEN TRIM(&#91;Input]) = ''\n 4:                                       THEN NULL \n 5:                                       ELSE &#91;Input] \n 6:                                    END\n 7:                                   , ','\n 8                                    , '.'\n 9:                                  )\n10:                         )\n11:            ) AS &#91;Output] <\/code><\/pre>\n\n\n\n<p>And here is an example \u2026<\/p>\n\n\n\n<pre class=\"wp-block-code has-background\" style=\"background-color:#eeeeee\"><code>1: DECLARE @input as nvarchar(30);\n 2: SET @input = '  123.45678';\n 3: SELECT TRY_CONVERT(\n 4:            money\n 5:           ,TRY_CONVERT( float\n 6:                        ,REPLACE( CASE WHEN TRIM(@input) = ''\n 7:                                     THEN NULL \n 8                                      ELSE @input\n 9:                                  END\n10:                                 , ','\n11:                                 , '.'\n12:                                )\n13:                       )\n14:            ) AS &#91;Output] <\/code><\/pre>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"AnchorSummary\">Summary<\/h1>\n\n\n\n<p>When converting a value to the data type <em>money<\/em>, several special cases must be taken into account: Empty character strings are converted to the number 0, numbers in scientific notation cannot be converted, thousands of separators are not permitted and only the decimal point is permitted as a decimal separator. The statement shown here takes these special cases into account when converting a value to the data type <em>money<\/em>.<\/p>\n\n\n\n<p>Although the rounding problem described above plays a minor role when converting a value in an ETL process, it must be taken into account in calculations that are carried out in an ETL process with money values and, if necessary, the data type <em>decimal<\/em> should be preferred over the data type money.<\/p>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"AnchorRelatedPosts\">Related Posts<\/h1>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/staging.sql.marcus-belz.de\/?p=1594\">Data quality in an ETL process<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/staging.sql.marcus-belz.de\/?p=1181\">Datenqualit\u00e4t \/\/ Grundlagen der Typ-Konvertierung mit T-SQL<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/staging.sql.marcus-belz.de\/?p=1576\">TRY_CONVERT \/\/ Converting data to&nbsp;bigint, int, smallint, tinyint<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/staging.sql.marcus-belz.de\/?p=1564\">TRY_CONVERT \/\/ Converting data to decimal or numeric<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/staging.sql.marcus-belz.de\/?p=1607\">TRY_CONVERT \/\/ Converting data to money, smallmoney<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/staging.sql.marcus-belz.de\/?p=1651\">TRY_CONVERT \/\/ Converting data to float, real<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/staging.sql.marcus-belz.de\/?p=1673\">TRY_CONVERT \/\/ Converting data to bit<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/staging.sql.marcus-belz.de\/?p=1733\">TRY_CONVERT \/\/ Converting data to date, datetime, datetime2, time<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>SQL Server provides the following data types for storing currency values: The data type money is essentially identical to the data type decimal(19, 4) and the data type smallmoney to the data type decimal(10, 4). There are internal differences in how SQL Server stores a decimal value and a money\/smallmoney value. However, these differences are &#8230; <a title=\"TRY_CONVERT \/\/ Converting data to money, smallmoney\" class=\"read-more\" href=\"https:\/\/staging.sql.marcus-belz.de\/?p=1607&#038;lang=en\" aria-label=\"Mehr Informationen \u00fcber TRY_CONVERT \/\/ Converting data to money, smallmoney\">Weiterlesen<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[106,108],"tags":[110,112,114,116],"class_list":["post-1607","post","type-post","status-publish","format-standard","hentry","category-all-languages-en","category-english-en","tag-data-quality-en","tag-data-type-en","tag-design-pattern-en","tag-try_convert-en"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>TRY_CONVERT \/\/ Converting data to money, smallmoney - Just another SQL blog<\/title>\n<meta name=\"description\" content=\"This article describes the safe ype conversion in SQL Server of texts into the data types money and smallmoney analogous to the TRY_CONVERT function.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/staging.sql.marcus-belz.de\/?p=1607&lang=en\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"TRY_CONVERT \/\/ Converting data to money, smallmoney - Just another SQL blog\" \/>\n<meta property=\"og:description\" content=\"This article describes the safe ype conversion in SQL Server of texts into the data types money and smallmoney analogous to the TRY_CONVERT function.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/staging.sql.marcus-belz.de\/?p=1607&amp;lang=en\" \/>\n<meta property=\"og:site_name\" content=\"Just another SQL blog\" \/>\n<meta property=\"article:published_time\" content=\"2024-03-03T15:00:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-05-06T23:06:37+00:00\" \/>\n<meta name=\"author\" content=\"marcus\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Geschrieben von\" \/>\n\t<meta name=\"twitter:data1\" content=\"marcus\" \/>\n\t<meta name=\"twitter:label2\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data2\" content=\"5\u00a0Minuten\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/staging.sql.marcus-belz.de\\\/?p=1607&lang=en#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/staging.sql.marcus-belz.de\\\/?p=1607&lang=en\"},\"author\":{\"name\":\"marcus\",\"@id\":\"https:\\\/\\\/staging.sql.marcus-belz.de\\\/#\\\/schema\\\/person\\\/98ab042e47d7286f64530ee18f20f675\"},\"headline\":\"TRY_CONVERT \\\/\\\/ Converting data to money, smallmoney\",\"datePublished\":\"2024-03-03T15:00:28+00:00\",\"dateModified\":\"2026-05-06T23:06:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/staging.sql.marcus-belz.de\\\/?p=1607&lang=en\"},\"wordCount\":978,\"keywords\":[\"Data Quality\",\"Data type\",\"Design Pattern\",\"TRY_CONVERT\"],\"articleSection\":[\"All Languages\",\"English\"],\"inLanguage\":\"de\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/staging.sql.marcus-belz.de\\\/?p=1607&lang=en\",\"url\":\"https:\\\/\\\/staging.sql.marcus-belz.de\\\/?p=1607&lang=en\",\"name\":\"TRY_CONVERT \\\/\\\/ Converting data to money, smallmoney - Just another SQL blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/staging.sql.marcus-belz.de\\\/#website\"},\"datePublished\":\"2024-03-03T15:00:28+00:00\",\"dateModified\":\"2026-05-06T23:06:37+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/staging.sql.marcus-belz.de\\\/#\\\/schema\\\/person\\\/98ab042e47d7286f64530ee18f20f675\"},\"description\":\"This article describes the safe ype conversion in SQL Server of texts into the data types money and smallmoney analogous to the TRY_CONVERT function.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/staging.sql.marcus-belz.de\\\/?p=1607&lang=en#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/staging.sql.marcus-belz.de\\\/?p=1607&lang=en\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/staging.sql.marcus-belz.de\\\/?p=1607&lang=en#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/staging.sql.marcus-belz.de\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"TRY_CONVERT \\\/\\\/ Converting data to money, smallmoney\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/staging.sql.marcus-belz.de\\\/#website\",\"url\":\"https:\\\/\\\/staging.sql.marcus-belz.de\\\/\",\"name\":\"Just another SQL blog\",\"description\":\"Marcus Belz \u00b7 SQL Server \u00b7 ETL \u00b7 Datenqualit\u00e4t\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/staging.sql.marcus-belz.de\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"de\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/staging.sql.marcus-belz.de\\\/#\\\/schema\\\/person\\\/98ab042e47d7286f64530ee18f20f675\",\"name\":\"marcus\",\"url\":\"https:\\\/\\\/staging.sql.marcus-belz.de\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"TRY_CONVERT \/\/ Converting data to money, smallmoney - Just another SQL blog","description":"This article describes the safe ype conversion in SQL Server of texts into the data types money and smallmoney analogous to the TRY_CONVERT function.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/staging.sql.marcus-belz.de\/?p=1607&lang=en","og_locale":"de_DE","og_type":"article","og_title":"TRY_CONVERT \/\/ Converting data to money, smallmoney - Just another SQL blog","og_description":"This article describes the safe ype conversion in SQL Server of texts into the data types money and smallmoney analogous to the TRY_CONVERT function.","og_url":"https:\/\/staging.sql.marcus-belz.de\/?p=1607&lang=en","og_site_name":"Just another SQL blog","article_published_time":"2024-03-03T15:00:28+00:00","article_modified_time":"2026-05-06T23:06:37+00:00","author":"marcus","twitter_card":"summary_large_image","twitter_misc":{"Geschrieben von":"marcus","Gesch\u00e4tzte Lesezeit":"5\u00a0Minuten"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/staging.sql.marcus-belz.de\/?p=1607&lang=en#article","isPartOf":{"@id":"https:\/\/staging.sql.marcus-belz.de\/?p=1607&lang=en"},"author":{"name":"marcus","@id":"https:\/\/staging.sql.marcus-belz.de\/#\/schema\/person\/98ab042e47d7286f64530ee18f20f675"},"headline":"TRY_CONVERT \/\/ Converting data to money, smallmoney","datePublished":"2024-03-03T15:00:28+00:00","dateModified":"2026-05-06T23:06:37+00:00","mainEntityOfPage":{"@id":"https:\/\/staging.sql.marcus-belz.de\/?p=1607&lang=en"},"wordCount":978,"keywords":["Data Quality","Data type","Design Pattern","TRY_CONVERT"],"articleSection":["All Languages","English"],"inLanguage":"de"},{"@type":"WebPage","@id":"https:\/\/staging.sql.marcus-belz.de\/?p=1607&lang=en","url":"https:\/\/staging.sql.marcus-belz.de\/?p=1607&lang=en","name":"TRY_CONVERT \/\/ Converting data to money, smallmoney - Just another SQL blog","isPartOf":{"@id":"https:\/\/staging.sql.marcus-belz.de\/#website"},"datePublished":"2024-03-03T15:00:28+00:00","dateModified":"2026-05-06T23:06:37+00:00","author":{"@id":"https:\/\/staging.sql.marcus-belz.de\/#\/schema\/person\/98ab042e47d7286f64530ee18f20f675"},"description":"This article describes the safe ype conversion in SQL Server of texts into the data types money and smallmoney analogous to the TRY_CONVERT function.","breadcrumb":{"@id":"https:\/\/staging.sql.marcus-belz.de\/?p=1607&lang=en#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/staging.sql.marcus-belz.de\/?p=1607&lang=en"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/staging.sql.marcus-belz.de\/?p=1607&lang=en#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/staging.sql.marcus-belz.de\/"},{"@type":"ListItem","position":2,"name":"TRY_CONVERT \/\/ Converting data to money, smallmoney"}]},{"@type":"WebSite","@id":"https:\/\/staging.sql.marcus-belz.de\/#website","url":"https:\/\/staging.sql.marcus-belz.de\/","name":"Just another SQL blog","description":"Marcus Belz \u00b7 SQL Server \u00b7 ETL \u00b7 Datenqualit\u00e4t","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/staging.sql.marcus-belz.de\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"de"},{"@type":"Person","@id":"https:\/\/staging.sql.marcus-belz.de\/#\/schema\/person\/98ab042e47d7286f64530ee18f20f675","name":"marcus","url":"https:\/\/staging.sql.marcus-belz.de\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/staging.sql.marcus-belz.de\/index.php?rest_route=\/wp\/v2\/posts\/1607","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/staging.sql.marcus-belz.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/staging.sql.marcus-belz.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/staging.sql.marcus-belz.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/staging.sql.marcus-belz.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1607"}],"version-history":[{"count":10,"href":"https:\/\/staging.sql.marcus-belz.de\/index.php?rest_route=\/wp\/v2\/posts\/1607\/revisions"}],"predecessor-version":[{"id":1778,"href":"https:\/\/staging.sql.marcus-belz.de\/index.php?rest_route=\/wp\/v2\/posts\/1607\/revisions\/1778"}],"wp:attachment":[{"href":"https:\/\/staging.sql.marcus-belz.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1607"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/staging.sql.marcus-belz.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1607"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/staging.sql.marcus-belz.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1607"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}