﻿if not exists (select name from dbo.sysobjects where name='FormatDecimalWithCommas')
begin
	exec('CREATE FUNCTION [dbo].[FormatDecimalWithCommas](@Number AS VARCHAR(100)) RETURNS NVARCHAR(250) AS BEGIN return null end')
end