Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

Format Function Not Working

$
0
0

Hi friends,

Using SSMS 2014 (SQL Server 12.0.2000)

Upon running the following sample query, as recommended by Microsoft itself, the error following the same is being faced. Any reason and manner to resolve the same?

Query:

DECLARE @d DATETIME = GETDATE();
SELECT FORMAT( @d, 'dd/MM/yyyy', 'en-US' ) AS 'DateTime Result'
       ,FORMAT(123456789,'###-##-####') AS 'Custom Number Result';

Error:

Msg 6517, Level 16, State 1, Line 2
Failed to create AppDomain "master.sys[runtime].7". 
Could not load file or assembly 'System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. Not enough storage is available to process this command. (Exception from HRESULT: 0x80070008)

Best Regards, Faraz A Qureshi


Viewing all articles
Browse latest Browse all 8428

Trending Articles