ANSI null default - 'True' ensures SQL Server follows the SQL 92 rules to see if a column can allow NULL values : Database Option « Database « SQL Server / T-SQL






ANSI null default - 'True' ensures SQL Server follows the SQL 92 rules to see if a column can allow NULL values


1>
2> --ANSI null default - 'True' ensures SQL Server follows the SQL 92 rules to see if a column can allow NULL values.
3>
4> CREATE DATABASE myDatabase
5> EXEC sp_dboption 'myDatabase', 'ANSI null default', 'False'
6> GO
1>
2> Drop database myDatabase
3> GO
1>
           
       








Related examples in the same category

1.autoclose: 'True' ensures that the resources are cleared when the last user logs off
2.read only: 'True' ensures no modifications to the data can be made. Only data reads are allowed
3.dbo use: 'True' means that only the user ID that created the database has access and can use the database. Any other ID will be refused
4.autoshrink: 'True' indicates this database can be shrunk in size safely
5.quoted identifier - 'True' ensure only single quotes are allowed when using this database
6.single: 'True' ensures only one user has access to the database at a time. Any subsequent users will be refused