Created
April 1, 2022 18:01
-
-
Save MarkPryceMaherMSFT/57ed93a11a8b51ca17964d4d825d51ff to your computer and use it in GitHub Desktop.
test script for dates
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
create table dbo.date_test | |
( | |
date_test varchar(100) | |
) | |
insert into dbo.date_test values ('0'); | |
insert into dbo.date_test values ('1901/01/01'); | |
insert into dbo.date_test values ('error'); | |
insert into dbo.date_test values ('2060/01/01'); | |
insert into dbo.date_test values ('013/013/2060'); | |
insert into dbo.date_test values ('28/12/2060'); | |
select date_test as ori_date_test | |
, dbo.check_my_date (date_test) as my_function | |
from date_test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment