home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 December
/
PCWorld_1998-12_cd.iso
/
software
/
sybase
/
ASA
/
asa60.exe
/
data1.cab
/
scripts_files
/
saopts.sql
< prev
next >
Wrap
Text File
|
1998-07-27
|
15KB
|
442 lines
-- populate SYSOPTIONS
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Blocking' ) ) then
set option PUBLIC.Blocking = 'On';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Checkpoint_time' ) ) then
set option PUBLIC.Checkpoint_time = '60';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Conversion_error' ) ) then
set option PUBLIC.Conversion_error = 'On';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Date_format' ) ) then
set option PUBLIC.Date_format = 'YYYY-MM-DD';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Date_order' ) ) then
set option PUBLIC.Date_order = 'YMD';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Isolation_level' ) ) then
set option PUBLIC.Isolation_level = '0';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Lock_rejected_rows' ) ) then
set option PUBLIC.Lock_rejected_rows = 'Off';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Login_procedure' ) ) then
set option PUBLIC.Login_procedure = 'sp_login_environment';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Precision' ) ) then
set option PUBLIC.Precision = '30';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Recovery_time' ) ) then
set option PUBLIC.Recovery_time = '2';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Replicate_all' ) ) then
set option PUBLIC.Replicate_all = 'Off';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Row_counts' ) ) then
set option PUBLIC.Row_counts = 'Off';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Scale' ) ) then
set option PUBLIC.Scale = '6';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Thread_count' ) ) then
set option PUBLIC.Thread_count = '0';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Thread_stack' ) ) then
set option PUBLIC.Thread_stack = '4096';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Thread_swaps' ) ) then
set option PUBLIC.Thread_swaps = '18';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Timestamp_format' ) ) then
set option PUBLIC.Timestamp_format = 'YYYY-MM-DD HH:NN:SS.SSS';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Time_format' ) ) then
set option PUBLIC.Time_format = 'HH:NN:SS.SSS';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Wait_for_commit' ) ) then
set option PUBLIC.Wait_for_commit = 'Off';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Quoted_identifier' ) ) then
set option PUBLIC.Quoted_identifier = 'On';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Allow_nulls_by_default' ) ) then
set option PUBLIC.Allow_nulls_by_default = 'On';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Automatic_timestamp' ) ) then
set option PUBLIC.Automatic_timestamp = 'Off';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Query_plan_on_open' ) ) then
set option PUBLIC.Query_plan_on_open = 'Off';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Cooperative_commits' ) ) then
set option PUBLIC.Cooperative_commits = 'On';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Cooperative_commit_timeout' ) ) then
set option PUBLIC.Cooperative_commit_timeout = '250';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Delayed_commits' ) ) then
set option PUBLIC.Delayed_commits = 'Off';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Delayed_commit_timeout' ) ) then
set option PUBLIC.Delayed_commit_timeout = '500';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Non_keywords' ) ) then
set option PUBLIC.Non_keywords = '';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'SQL_flagger_error_level' ) ) then
set option PUBLIC.SQL_flagger_error_level = 'W';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'SQL_flagger_warning_level' ) ) then
set option PUBLIC.SQL_flagger_warning_level = 'W';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Ansi_blanks' ) ) then
set option PUBLIC.Ansi_blanks = 'Off';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Ansi_integer_overflow' ) ) then
set option PUBLIC.Ansi_integer_overflow = 'Off';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'String_rtruncation' ) ) then
set option PUBLIC.String_rtruncation = 'Off';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Divide_by_zero_error' ) ) then
set option PUBLIC.Divide_by_zero_error = 'On';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Ansinull' ) ) then
set option PUBLIC.Ansinull = 'On';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Ansi_permissions' ) ) then
set option PUBLIC.Ansi_permissions = 'On';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Close_on_endtrans' ) ) then
set option PUBLIC.Close_on_endtrans = 'On';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Tsql_variables' ) ) then
set option PUBLIC.Tsql_variables = 'Off';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'RI_Trigger_time' ) ) then
set option PUBLIC.RI_Trigger_time = 'After';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Tsql_hex_constant' ) ) then
set option PUBLIC.Tsql_hex_constant = 'On';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Chained' ) ) then
set option PUBLIC.Chained = 'On';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Nearest_century' ) ) then
set option PUBLIC.Nearest_century = '50';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Fire_triggers' ) ) then
set option PUBLIC.Fire_triggers = 'On';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Background_priority' ) ) then
set option PUBLIC.Background_priority = 'Off';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Login_mode' ) ) then
set option PUBLIC.Login_mode = 'Standard';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Float_as_double' ) ) then
set option PUBLIC.Float_as_double = 'Off';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Default_timestamp_increment' ) ) then
set option PUBLIC.Default_timestamp_increment = '1';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Escape_character' ) ) then
set option PUBLIC.Escape_character = 'On';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Prefetch' ) ) then
set option PUBLIC.Prefetch = 'On';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Java_heap_size' ) ) then
set option PUBLIC.Java_heap_size = '1000000';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Continue_after_raiserror' ) ) then
set option PUBLIC.Continue_after_raiserror = 'On';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Cis_option' ) ) then
set option PUBLIC.Cis_option = '0';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Java_namespace_size' ) ) then
set option PUBLIC.Java_namespace_size = '4000000';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Java_page_buffer_size' ) ) then
set option PUBLIC.Java_page_buffer_size = '50';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Ansi_close_cursors_on_rollback' ) ) then
set option PUBLIC.Ansi_close_cursors_on_rollback = 'Off';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Max_statement_count' ) ) then
set option PUBLIC.Max_statement_count = '50';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Max_cursor_count' ) ) then
set option PUBLIC.Max_cursor_count = '50';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Auto_commit' ) ) then
set option PUBLIC.Auto_commit = 'Off';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Auto_refetch' ) ) then
set option PUBLIC.Auto_refetch = 'On';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Bell' ) ) then
set option PUBLIC.Bell = 'On';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Char_OEM_Translation' ) ) then
set option PUBLIC.Char_OEM_Translation = 'Detect';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Command_delimiter' ) ) then
set option PUBLIC.Command_delimiter = ';';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Commit_on_exit' ) ) then
set option PUBLIC.Commit_on_exit = 'On';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Echo' ) ) then
set option PUBLIC.Echo = 'On';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Headings' ) ) then
set option PUBLIC.Headings = 'On';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Input_format' ) ) then
set option PUBLIC.Input_format = 'ASCII';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'ISQL_log' ) ) then
set option PUBLIC.ISQL_log = '';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'NULLS' ) ) then
set option PUBLIC.NULLS = '(NULL)';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'On_error' ) ) then
set option PUBLIC.On_error = 'Prompt';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Output_format' ) ) then
set option PUBLIC.Output_format = 'ASCII';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Output_length' ) ) then
set option PUBLIC.Output_length = '0';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Output_nulls' ) ) then
set option PUBLIC.Output_nulls = '';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Percent_as_comment' ) ) then
set option PUBLIC.Percent_as_comment = 'On';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Quiet' ) ) then
set option PUBLIC.Quiet = 'Off';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Screen_format' ) ) then
set option PUBLIC.Screen_format = 'Text';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'SQLConnect' ) ) then
set option PUBLIC.SQLConnect = '';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'SQLStart' ) ) then
set option PUBLIC.SQLStart = '';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Statistics' ) ) then
set option PUBLIC.Statistics = '3';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Truncation_length' ) ) then
set option PUBLIC.Truncation_length = '30';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Verify_all_columns' ) ) then
set option PUBLIC.Verify_all_columns = 'Off';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Delete_old_logs' ) ) then
set option PUBLIC.Delete_old_logs = 'Off';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Qualify_owners' ) ) then
set option PUBLIC.Qualify_owners = 'On';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Quote_all_identifiers' ) ) then
set option PUBLIC.Quote_all_identifiers = 'Off';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Replication_error' ) ) then
set option PUBLIC.Replication_error = '';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Subscribe_by_remote' ) ) then
set option PUBLIC.Subscribe_by_remote = 'On';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Verify_threshold' ) ) then
set option PUBLIC.Verify_threshold = '1000';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Blob_threshold' ) ) then
set option PUBLIC.Blob_threshold = '256';
end if
go
if not exists( select * from SYS.SYSOPTION
where ucase( "option" ) = ucase( 'Compression' ) ) then
set option PUBLIC.Compression = '6';
end if
go