![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
After installing a new database on my ASA 9.0 server, i had to change some of it's options to allow the insertion of date's in ths 'MM-DD-YYYY' format. I did this with this code: SET OPTION Date_Format='MM-DD-YYYY' GO SET OPTION Date_Order='MDY' GO SET OPTION TIMESTAMP_FORMAT='MM/DD/YYYY HH:NN:ss.SSSSSS' GO SET PERMANENT GO This solved the problem at the moment. But after the connection was closed and the database stopped, the options reset to their default values. Now, everytime i have to insert anything with dates, i have to execute the code above. Is there any way to make these settings "connection independent" ? Thanks in advance, Orlando Ribeiro |
#3
| |||
| |||
|
|
AFAIK those statements should permanently set the options for the user id being used; do you drop and recreate the user id, or use different user ids? Try SET OPTION PUBLIC.option_name = 'value' to set the options for everyone. FWIW the SET PERMANENT statement only applies to ISQL options and doesn't have the effect you're looking for with these options. Breck On 15 Dec 2003 07:58:36 -0800, Orlando Ribeiro wrote: After installing a new database on my ASA 9.0 server, i had >to change some of it's options to allow the insertion of >date's in ths 'MM-DD-YYYY' format. I did this with this >code: SET OPTION Date_Format='MM-DD-YYYY' GO SET OPTION Date_Order='MDY' GO SET OPTION TIMESTAMP_FORMAT='MM/DD/YYYY HH:NN:ss.SSSSSS' GO SET PERMANENT GO This solved the problem at the moment. But after the connection was closed and the database stopped, the options >reset to their default values. Now, everytime i have to insert anything with dates, i have >to execute the code above. Is there any way to make these settings "connection independent" ? Thanks in advance, Orlando Ribeiro -- bcarter (AT) risingroad (DOT) com Mobile and Distributed Enterprise Database Applications www.risingroad.com |
#4
| |||
| |||
|
|
AFAIK those statements should permanently set the options for the user id being used; do you drop and recreate the user id, or use different user ids? Try SET OPTION PUBLIC.option_name = 'value' to set the options for everyone. FWIW the SET PERMANENT statement only applies to ISQL options and doesn't have the effect you're looking for with these options. Breck On 15 Dec 2003 07:58:36 -0800, Orlando Ribeiro wrote: After installing a new database on my ASA 9.0 server, i had >to change some of it's options to allow the insertion of >date's in ths 'MM-DD-YYYY' format. I did this with this >code: SET OPTION Date_Format='MM-DD-YYYY' GO SET OPTION Date_Order='MDY' GO SET OPTION TIMESTAMP_FORMAT='MM/DD/YYYY HH:NN:ss.SSSSSS' GO SET PERMANENT GO This solved the problem at the moment. But after the connection was closed and the database stopped, the options >reset to their default values. Now, everytime i have to insert anything with dates, i have >to execute the code above. Is there any way to make these settings "connection independent" ? Thanks in advance, Orlando Ribeiro -- bcarter (AT) risingroad (DOT) com Mobile and Distributed Enterprise Database Applications www.risingroad.com |
#5
| |||
| |||
|
|
Tried doing the same thing with the 'DBA' original user, with success. So, i the problem may be related to the user... The user name is 'orlando': - it has DBA and resource permissions - it has membership in 'dbo' group and in 'dba' which i converted to a group to try to fix the problem. Are there any more properties i need to activate in the 'orlando' user? AFAIK those statements should permanently set the options for the user id being used; do you drop and recreate the user id, or use different user ids? Try SET OPTION PUBLIC.option_name = 'value' to set the options for everyone. FWIW the SET PERMANENT statement only applies to ISQL options and doesn't have the effect you're looking for with these options. Breck On 15 Dec 2003 07:58:36 -0800, Orlando Ribeiro wrote: After installing a new database on my ASA 9.0 server, i had >to change some of it's options to allow the insertion of >date's in ths 'MM-DD-YYYY' format. I did this with this >code: SET OPTION Date_Format='MM-DD-YYYY' GO SET OPTION Date_Order='MDY' GO SET OPTION TIMESTAMP_FORMAT='MM/DD/YYYY HH:NN:ss.SSSSSS' GO SET PERMANENT GO This solved the problem at the moment. But after the connection was closed and the database stopped, the options >reset to their default values. Now, everytime i have to insert anything with dates, i have >to execute the code above. Is there any way to make these settings "connection independent" ? Thanks in advance, Orlando Ribeiro -- bcarter (AT) risingroad (DOT) com Mobile and Distributed Enterprise Database Applications www.risingroad.com |
![]() |
| Thread Tools | |
| Display Modes | |
| |