Search notes:

SQL Server: datatype datetime2

datetime2 is a data type that is able to store a date-time value with a maximum accuracy of 100 nano seconds. Thus, it extends the data type datetime which is less accurate.
The range of possible values extends from 0001-01-01 00:00:00.0000000 to 9999-31-12 23:59:59.9999999.
sysdatetime() returns the current date and time as as datetime2(7).

See also

datetime and date and/or time related data types

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758206326, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/SQL-Server/T-SQL/data-types/datetime2/index(42): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78