Depuis la 12.5.4 ou la 15.0.2, il est possible d'utiliser sp_show_options.
Exemple:
# sp_show_options;
number name
----------- ----------------------------
7 arithabort
8 numeric_truncation
13 control
40 prefetch
41 triggers
42 replication
43 replication force_ddl
48 transactional_rpc
49 cis_rpc_handling
58 remote_indexes
62 statement_cache
64 proc_return_status
65 proc_output_params
84 literal_autoparam
Dans le cas plus précis de l'option ansinull:
select case when NULL=NULL then 'off' else 'on' end
Partager