Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

How can we change the default length of DateTime field in SQL Server

$
0
0

Hi,

I have created a datetime field in a table in SQL Server as

created_date DATETIME

By default SQLServer sets the maximum length of this field to 23 i.e. precision of this column is 23 when I executed sp_columns procedure. Is there any way to change the maximum length of this field to some other value lets say 14.

Thanks in Advance.


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>