Last active
April 1, 2022 16:36
-
-
Save MarkPryceMaherMSFT/dba34a776879ea133128b76cdcd1cf61 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- simple function to wrap try_parse | |
create FUNCTION dbo.check_my_number (@value varchar(255)) | |
RETURNS bigint | |
as | |
BEGIN | |
declare @rt bigint; | |
set @rt = try_parse(@value as bigint) | |
return @rt; | |
END; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
inital gist