Hi @Ashwan
I ran your script.
You can use the following query to get information about the object created today.
select * from sys.objects where convert(char(10),create_date,120) = '2023-03-30';
Output:
As you can see, there is a default_constraint.
For more information about sys.objects, you can refer to this link.
The default constraint means that if a default value constraint is defined in the table, when the user inserts a new data row, if the row does not specify data, the system assigns a default value to the column, and if we do not set a default value, the system defaults to NULL.
Best regards,
Percy Tang
If the answer is the right solution, please click "Accept Answer". If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our Documentation to enable e-mail notifications if you want to receive the related email notification for this thread.