HANA DB table holds time zones

Dear Experts,
I want to know if there any table to host time zones in HANA. we know TTZZ holds all time zones in ABAP.
I find HANA built-in functions utctolocal and localtoutc can verifies the time zone codes specified, that means there must exist one or more table to hold time zones data in HANA, right?
Regards,
Guoliang Zhou

Aaaaand there we go... another SAP colleague who just doesn't seem to be able to search the SAP internal communities before posting questions... :-(
Your answer would have been available in https://community.wdf.sap.corp/message/475074#475074 but hey, why not reposting, he?
Even better: the answer was already available also here on SCN!
Just read my blog post You got the time? ...
really: please do apply the "search first" rule!
- Lars

Similar Messages

  • Oracle Time Zone - SAP Note 1019133

    Has anyone applied this patch or skipped the patch?
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    In 2007 the USA’s daylight savings starts earlier and ends later, so Oracle’s table of time zone rules should be changed for America.
    The SAP note 1019133 said we probably do not need a patch.
    The Oracle Note 396671.1 said, apply it just in case.
    SAP Note: 1019133
    " In the standard SAP application the JVM and the mentioned datatypes (TSLTZ / TSTZ) are not used. Therefore it's not necessary to apply this patches."
    Oracle Doc: 396671.1
    "If there is no other use of time zone data than stored TSTZ data, and the utltzuv2.sql script shows that none of these use the affected time zones, then you could choose to not apply the new time zone files (even though in such a situation the application would also be very easy, so the advise would still be to do it "just in case")."

    since the oracle notes had said it is the same patch for the DB and client, i just thought :  in an SAP environment, how does a client connect.....
    well, our SAP users use the SAP Login GUI thingy....  which gets them to the SAP instance of their choice, ..... and it's the SAP instance that is then actually the "client" for the oracle DB.....
    so.... well, the SIDadm account must be indicative of how this client process works for SAP because SIDadm can start and stop the Oracle DB....
    so i logged in as SIDadm and looked for the client that way.... i.e.... go to the $ORACLE_HOME/oracore/zoneinfo directory that SIDadm sees and what's there....
    in my case it put me in same dir as the DB files....  so must be getting it from same spot.
    cuz this was something i just made up as i went along and i was very tired at the time, i also ran a find command from the root directory..... i am on Sun.... my find command was :
    find . -name timezone.dat -print
    granted there were a lot of directories i did not have perms to see, but it returned only 2 timezone files for me....
    the one in the $ORACLE_HOME/oracore/zoneinfo directory
    and one in /local..... (which is what we have for some secondary things, not SAP related)....
    so try a big system level find command if on Sun, or something similar on your O/S..... if  you have your SAP and your DB on the same server.... it's got to be on that server somewhere....
    hope that helps.

  • Partitioning on a table on the field TIMESTAMP WITH TIME ZONE

    Hi I have a very large size table which has grown to a size that we are not able to query it efficiently. We have decided to partition the table. But the issue is the table has a TIMESTAMP WITH TIME ZONE field and not DATE. I have found some links on the web which state this might cause an error. I am planning to create a temp table with the partition rules and at the same time copy data from the original one.
    using CREATE TABLE XYZ PARTITION BY RANGE (ABC) ( ---- Partition rules ------) NOLOGGING AS SELECT * FROM XYZ_ACTUAL where 1 = 2;
    Then if it works fine, I would rename the table with partitions to the actual name.
    Should all this be fine?
    The database is very critical. Hence the dilemma.

    Have you tried converting the timestamp with time zone to a character string as a partition key, possibly using an edit mask to control the timestamp components used?
    Your plan sounds OK to me - if you can get the partitioned table created - but I would test in a development first o see where the lLw of Unintended Consequences might decide to manifest itself.
    Edited by: riedelme on Dec 8, 2009 9:13 AM

  • Create table interval partition on a column timestamp with local time zone

    Hi
    Does anyone have an example for 11g on how to create a table with interval partitioning on a column defined as timestamp with local time zone. I know it's possible. the following does not work.
    CREATE TABLE KOMODO_EXPIRED_RESULTS
    TEST_EVENT_KEY NUMBER NOT NULL,
    HPS_DEVICE_KEY NUMBER NOT NULL,
    RCS_DEVICE_KEY NUMBER,
    EVENT_START_TIMESTAMP TIMESTAMP(6) with local time zone NOT NULL,
    BOOTROMVERSION NUMBER,
    CHANNELNUMBER NUMBER,
    CLIENTVERSION VARCHAR2(4000 BYTE),
    ETHERNET_CRC_ERROR_COUNT NUMBER,
    ETHERNET_DROPPED_PACKETS NUMBER,
    ETHERNET_THROUGHPUT NUMBER,
    ETHERNET_TRAFFIC_IN NUMBER,
    ETHERNET_TRAFFIC_OUT NUMBER,
    IPADDRESS VARCHAR2(4000 BYTE),
    KOMODO_ID VARCHAR2(4000 BYTE),
    LASTREBOOTTIME VARCHAR2(4000 BYTE),
    OSVERSION VARCHAR2(4000 BYTE),
    RECEIVER_AUDIOACCESSCONTROLER NUMBER,
    RECEIVER_AUDIOBUFFEROVERFLOWS NUMBER,
    RECEIVER_AUDIOBUFFERUNDERRUNS NUMBER,
    RECEIVER_AUDIOCODEC VARCHAR2(4000 BYTE),
    RECEIVER_AUDIODATADROPPED NUMBER,
    RECEIVER_AUDIODATATHROUGHPUT NUMBER,
    RECEIVER_AUDIODECODERERRORS NUMBER,
    RECEIVER_AUDIODESCBUFFERUNDER NUMBER,
    RECEIVER_AUDIODESCCRYPTOERROR NUMBER,
    RECEIVER_AUDIODESCDATADROPPED NUMBER,
    RECEIVER_AUDIODESCDATATHROUGH NUMBER,
    RECEIVER_AUDIODESCDECODERERRO NUMBER,
    RECEIVER_AUDIODESCDRMERRORS NUMBER,
    RECEIVER_AUDIODESCPTSDELTA NUMBER,
    RECEIVER_AUDIODESCPTSDELTAHAL NUMBER,
    RECEIVER_AUDIODESCSAMPLESDROP NUMBER,
    RECEIVER_AUDIODSPCRASHES VARCHAR2(4000 BYTE),
    RECEIVER_AUDIOPTSDELTAHAL NUMBER,
    RECEIVER_AUDIOSAMPLESDECODED NUMBER,
    RECEIVER_AUDIOSAMPLESDROPPED NUMBER,
    RECEIVER_AUDIOUNDERRUN NUMBER,
    RECEIVER_BITRATE NUMBER,
    RECEIVER_BUFFEROVERRUN NUMBER,
    RECEIVER_BYTESCCRECEIVED NUMBER,
    RECEIVER_BYTESRECEIVED NUMBER,
    RECEIVER_CHANNEL NUMBER,
    RECEIVER_DECODERSTALL NUMBER,
    RECEIVER_DISCONTINUITIES NUMBER,
    RECEIVER_DISCONTINUITIESPACKE NUMBER,
    RECEIVER_DRIFT NUMBER,
    RECEIVER_DROPPEDPACKETSUNTILR NUMBER,
    RECEIVER_ECMLOOKUPERROR NUMBER,
    RECEIVER_ECMPARSEERRORS NUMBER,
    RECEIVER_PMTCHANGED NUMBER,
    RECEIVER_REBUFFER NUMBER,
    RECEIVER_SELECTCOMPONENTAUDIO NUMBER,
    RECEIVER_TIMELINEDISCONTINUIT NUMBER,
    RECEIVER_VIDEOACCESSCONTROLER NUMBER,
    RECEIVER_VIDEOACCESSCONTROLUN NUMBER,
    RECEIVER_VIDEOBUFFEROVERFLOWS NUMBER,
    RECEIVER_VIDEOBUFFERUNDERRUNS NUMBER,
    RECEIVER_VIDEOCODEC VARCHAR2(4000 BYTE),
    RECEIVER_VIDEOCRYPTOERROR NUMBER,
    RECEIVER_VIDEODATADROPPED NUMBER,
    RECEIVER_VIDEODATATHROUGHPUT NUMBER,
    RECEIVER_VIDEODECODERERRORS NUMBER,
    RECEIVER_VIDEODRMERRORS NUMBER,
    RECEIVER_VIDEODSPCRASHES VARCHAR2(4000 BYTE),
    RECEIVER_VIDEOFIFORD NUMBER,
    RECEIVER_VIDEOFIFOSIZE NUMBER,
    RECEIVER_VIDEOFRAMESDECODED NUMBER,
    RECEIVER_VIDEOFRAMESDROPPED NUMBER,
    RECEIVER_VIDEOPTSDELTA NUMBER,
    RECEIVER_VIDEOPTSDELTAHAL NUMBER,
    RECEIVER_VIDEOUNDERRUN NUMBER,
    SUBNETMASK VARCHAR2(4000 BYTE),
    TUNER_BITRATE NUMBER,
    TUNER_BUFFERFAILURE NUMBER,
    TUNER_CCPACKETSRECEIVED NUMBER,
    TUNER_CHANNEL NUMBER,
    TUNER_DATATIMEOUTS NUMBER,
    TUNER_DELIVERYMODE VARCHAR2(4000 BYTE),
    TUNER_DROPPAST NUMBER,
    TUNER_FILL NUMBER,
    TUNER_HOLE NUMBER,
    TUNER_HOLEDURINGBURST NUMBER,
    TUNER_HOLEDURINGBURSTPACKETS NUMBER,
    TUNER_HOLETOOLARGEPACKETS NUMBER,
    TUNER_MAXIMUMHOLESIZE NUMBER,
    TUNER_MULTICASTADDRESS VARCHAR2(4000 BYTE),
    TUNER_MULTICASTJOINDELAY NUMBER,
    TUNER_OUTOFORDER NUMBER,
    TUNER_OVERFLOWRESET NUMBER,
    TUNER_OVERFLOWRESETTIMES NUMBER,
    TUNER_PACKETSEXPIRED NUMBER,
    TUNER_PACKETSPROCESSED NUMBER,
    TUNER_PACKETSRECEIVED NUMBER,
    TUNER_PACKETSWITHOUTSESSION NUMBER,
    TUNER_PARSEERRORS NUMBER,
    TUNER_SRCUNAVAILABLERECEIVED NUMBER,
    TUNER_TOTALHOLEPACKETS NUMBER,
    TUNER_TOTALPACKETSEXPIRED NUMBER,
    TUNER_TOTALPACKETSRECEIVED NUMBER,
    TUNER_UNICASTADDRESS VARCHAR2(4000 BYTE),
    RECEIVER_TUNEDFOR NUMBER,
    MACADDRESS VARCHAR2(4000 BYTE),
    RECEIVER_TOTALAVUNDERRUNS NUMBER,
    RECEIVER_TOTALDISCONTINUITIES NUMBER,
    SERVICEID VARCHAR2(4000 BYTE),
    DRIVEPRESENT VARCHAR2(4000 BYTE),
    STB_STATE VARCHAR2(32 BYTE),
    PREV_EXPIRED NUMBER,
    PREV_HOLES NUMBER,
    PREV_RECEIVED NUMBER,
    PREV_TIMESTAMP TIMESTAMP(6),
    PREV_REBOOT VARCHAR2(4000 BYTE),
    TOTALPACKETSEXPIRED_RATE NUMBER,
    TOTALHOLEPACKETS_RATE NUMBER,
    TOTALPACKETSRECEIVED_RATE NUMBER,
    CONSTRAINT KOMODO_EXPIRED_RESULTS_PK
    PRIMARY KEY
    (HPS_DEVICE_KEY, EVENT_START_TIMESTAMP)
    USING INDEX
    TABLESPACE HPS_SUMMARY_INDEX
    TABLESPACE HPS_SUMMARY_DATA
    PARTITION BY RANGE (EVENT_START_TIMESTAMP)
    INTERVAL( NUMTODSINTERVAL(1,'DAY'))
    PARTITION DEFAULT_TIME_PART_01 VALUES LESS THAN (TIMESTAMP' 2010-08-01 00:00:00.000000000 +00:00')
    LOGGING
    COMPRESS FOR ALL OPERATIONS
    TABLESPACE HPS_SUMMARY_DATA
    NOCACHE
    PARALLEL ( DEGREE DEFAULT INSTANCES DEFAULT )
    MONITORING
    /

    I am not sure it can be done.
    SQL> create table sales
      2  (
      3  sales_id number,
      4  sales_dt TIMESTAMP(6) with local time zone NOT NULL
      5  )
      6  partition by range (sales_dt)
      7  interval (numtoyminterval(1,'MONTH'))
      8  ( partition p0901 values less than (to_date('2009-02-01','yyyy-mm-dd')) );
    create table sales
    ERROR at line 1:
    ORA-14751: Invalid data type for partitioning column of an interval partitioned
    table
    SQL> ed
    Wrote file afiedt.buf
      1  create table sales
      2  (
      3  sales_id number,
      4  sales_dt TIMESTAMP(6)
      5  )
      6  partition by range (sales_dt)
      7  interval (numtoyminterval(1,'MONTH'))
      8* ( partition p0901 values less than (to_date('2009-02-01','yyyy-mm-dd')) )
    SQL> /
    Table created.

  • I have started migration système to transfert from hold Macbook pro to New MacBook air application starter successfully for several hours. But since more than 3 hours I got the message transferring Time zone paramètres with time left less than 1 minute.

    Hi
    I have started migration système to transfert from hold Macbook pro to New MacBook air
    Application starter successfully for several hours.
    But since more than 3 hours I got the message "transferring Time zone paramètres " with time left less than 1 minute.
    Any recommendation or suggestion to solve it ?
    Many tanks

    If it has run for 3 hours it's probably done and you can quit Migration Assistant and reboot the new computer. In the future rather than using Migration Assistant I would recommend using Startup Assistant which tends to be a bit more reliable and does not create a new user account as MA does. If  you're interested here is an article explaining Setup Assistant tips.
    Roger

  • Can't open and lock time zone table error on every open

    Acrobat 8 standard, windows XP Pro
    080416 14:22:43 [Warning] Can't open and lock time zone table: Table 'mysql.time_zone_leap_second' doesn't exist trying to live without them
    I get that error message in the log every time I open 8. What gives with this program?

    This error is usually caused by a corrupt ppt file or an incompatible font.
    A quick work around is to recreate the presentation in Keynote from scratch using the images copied from the original.

  • Table that holds time of transactions

    Hi,
    Is there a table in Oracle that holds the times of transactions? I know some tables old times and dates in the same field but was wondering if there is a table that just holds times?
    Thanks

    user10590173 wrote:
    Hi,
    Is there a table in Oracle that holds the times of transactions? I know some tables old times and dates in the same field but was wondering if there is a table that just holds times?
    Thanksno

  • Setting times for appointments don't hold to time zone

    When I set up my appointments in pacific time and leave for Houston for the appointments the times don't hold for Houston tx time?  Help

    I think you are saying you set, for example, a 2PM Pacitic Time appointment, and when you get to Houston, you would like it to show up at 4PM Central Time.
    Do that by:
    Settings > Mail, Contacts, Calendars > Time Zone Support = "Off"

  • Time zone compatability problem with timed event created on iOS and pushed to Windows7 Outlook calendar for sharing

    Hi, I am in Jerusalem time zone. My Windows7 LAPTOP time zone is set to it (UTC+02:00 Jerusalem). My iPhone5 and iPad are both "Set Automatically" (ON)  to Jerusalem. When I create any new event in my outlook on my Laptop it's generated with the Jerusalem time zone and pushed properly via iCloud to my iPhone and iPad. However when I create a new timed event on either my iPhone or iPad. or even in iCloud calendar (in a browser) the event is pushed to outlook on my Laptop in a "Beirut" time zone. Now that both Jerusalem and Beirut are on the same time zone (UTC + 02:00) it doesn't create any problem (though I prefer to see that the pushed events are indeed in Jerusalem time zone and not Beirut...). However, at and around day time saving change days there are problems of events created on iOS devices or even in iCloud (using browser) and pushed to outlook at the wrong times (1 hour earlier or later, depends on the change direction in Jerusalem time...) with a Beirut time stamp.
    How can I resolve this problem and make sure all timed events, created on iOS devices at a Jerusalem time zone, appear as such after pushed via iCloud to my windows7 Outlook calendatr?  Thanks!

    I also have this issue (iPhone 5).  Outlook needs to be configured properly in that timezone option needs to be selected.  Which is challenging enough.
    However the bigger issue for me is that when I open the ICN file:
    1.  I have no way to accept decline etc.
    2.  When the event is populating the calendar in the wrong time I can neither cut and paste nor select and move.  It is totally static.
    So for every meeting request I have to ensure it populates the right time as per my time zone. and if it doesnt i have to manually enter a second meeting 'X' hours earlier/later depending on which time zone the meeting was generated in.
    I spoke to Apple.  Their solution is make sure Outlook is properly configured.  Fine...but good luck.  I need a work around that is Apple based.  Because this *****.
    They said they would send to the development team.  I am not holding my breath.

  • How to display system time zone if user time zone is not set?

    Hi,
    My application implicitely chooses ALA as time zone if the user time zone is not set.
    How do I check this?

    Hi,
    Try using these FM's
    TZON_GET_USER_TIMEZONE
    GET_SYSTEM_TIMEZONE
    Z_LOCATION_TIMEZONE
    You can set the timezone in sy-zonlo by using the 1st FM and setting sy-zonlo in your application.
    I think system takes ALA default because its the 1st timezone in the table.(check FM BWDT_LIST_TIMEZONES)
    Regards,
    Amit
    Edited by: Amit Iyer on Aug 25, 2009 3:38 PM

  • TIMESTAMP WITH TIME ZONE

    Hi Team, will Import into a table I am getting the below error message
    Error Message
    Record 1: Rejected - Error on table MTN_BUNDLES_EXPIRY_MIG, column EXPIRY_DATE_T.
    ORA-01840: input value not long enough for date format
    The data client provide in .XLs file
    2013-08-31 17:14:56
    My Table Structure is
    CREATE TABLE tmp_mtnuga_3g_expiry_mig
        MSISDN_V            VARCHAR2 (50),
        expiry_Date_t         TIMESTAMP(6) WITH TIME ZONE
        status_date_t          TIMESTAMP(6) WITH TIME ZONE
        GOT_STARTER_PACK_V  NUMBER(10)
    I am using 2 option to import into a table
    First option using Toad ---> Import Table -- option here i am getting error like
    The format is not matched.
    Second option using SQL Loader-->
    LOAD DATA
    INFILE 'D:\ss\TT-Projects\Customer Apps\Client Dump\3GBundle.csv'
    BADFILE 'D:\dd\TT-Projects\Customer Apps\Client Dump\3GBundle.bad'
    DISCARDFILE 'D:\dd\TT-Projects\Customer Apps\Client Dump\3GBundle.dsc'
    INTO TABLE  tmp_mtnuga_3g_expiry_mig
    INSERT
    (MSISDN_V,
    EXPIRY_DATE_T,
    STATUS_DATE_T,
    GOT_STARTER_PACK_V
    Please guide me how solve the TimeStamp

    Check Part II SQL*Loader I can't remember when I last used it (being server side I use External Tables), but it should turn out something like
    LOAD DATA 
    INFILE 'D:\ss\TT-Projects\Customer Apps\Client Dump\3GBundle.csv'  
    BADFILE 'D:\dd\TT-Projects\Customer Apps\Client Dump\3GBundle.bad' 
    DISCARDFILE 'D:\dd\TT-Projects\Customer Apps\Client Dump\3GBundle.dsc' 
    INSERT INTO TABLE  tmp_mtnuga_3g_expiry_mig 
    fields terminated by ',' optionally enclosed by '"'
    (MSISDN_V, 
    EXPIRY_DATE_T char "to_timestamp_tz(:EXPIRY_DATE_T,'yyyy-mm-dd hh24:mi:sstzh:tzm')", 
    STATUS_DATE_T char "to_timestamp_tz(:STATUS_DATE_T,'yyyy-mm-dd hh24:mi:sstzh:tzm')", 
    GOT_STARTER_PACK_V 
    you must adjust the mask to match your data
    Regards
    Etbin

  • [Forum FAQ] How to convert data of date time's type stored in database to display Time Zone based on different territories?

    Introduction:
    There is a date’s type field in the database. When using the field in the report, clients want to convert the field’s values based on own Time Zone to show the date field.
    Workaround:
    Currently, Reporting Services doesn’t provide the function that can get the Time Zone of a client machine. To work around the issue, you need to add a custom code in the report to convert Time Zone and create a parameter through which the client users can
    select his/her Time Zone, and then pass the parameter value to the custom function. Please see the details as follows:
    1. Click the Report, select Report Properties and add the custom code as the screenshot shown:
    Custom code:
    Shared Function FromUTC (ByVal d As Date, ByVal tz As String) As Date
    Return (TimeZoneInfo.ConvertTimeBySystemTimeZoneId(d, TimeZoneInfo.Utc.Id, tz))
    End Function
    2. Create a parameter named TimeZone (you can name the parameter according to your requirement), select Available value and click Specify values.
    Label                                                               
    Value
    China Standard Time                                        
    China Standard Time
    Central European Time Zone                              Central European Time Zone
    India Time Zone                                               
    India Time Zone
    United States of America Time zones                   United States of America Time zones
    3. Call the custom code and type the expression to convert the Time Zone as follows:
    =Code.FromUTC(Fields!UTCDateFromDatabase.Value,Parameters!TimeZone.Value)
    Note: If you use the expression “=Code.FromUTC(Fields!UTCDateFromDatabase.Value,TimeZone.CurrentTimeZone.StandardName)”, it cannot achieve the goal because TimeZone.CurrentTimeZone.StandardName gets the TimeZone of Report Server side rather than Client side.
    More information:
    TimeZone Class
    http://msdn.microsoft.com/en-us/library/system.timezone(v=vs.110).aspx
    Applies to
    Microsoft SQL Server 2005
    Microsoft SQL Server 2008
    Microsoft SQL Server 2008 R2
    Microsoft SQL Server 2012

    Hello,
    Please read the answer provided by Kalman on the following thread:
    http://social.technet.microsoft.com/Forums/es-ES/446df85a-7ad8-4891-8748-478a26350c5c/how-to-compare-tables-in-two-different-servers-while-one-of-the-server-name-has-a-?forum=transactsql
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Need to change time zone in PI 7.3 system

    Hi Experts,
    I want to change the time zone in PI system to CET to IST.
    Kindly help.
    Thanks,
    Hemanth

    Hi Monica,
    I have changed time but when I clicked save, it prompted for customizing rquest, what should I type into following options?
    1. Table Content: TTZCU
    2. Request: ___________?
    Regards,
    Hemanth.

  • Access 2010 InfoPath Data Collection Export Fails Due to Date Format That Includes Time Zone

    I created an Access 2010 database that has multiple data collection (InfoPath) forms that were generated from Access and have been in use for about 1.5 years.  Starting in 2013 (for about a week now), the submitted data fails to Export due
    to a "data type conversion error" with the date fields.  Prior to 2013, the date string returned in the InfoPath form looked like this: "2013-01-07T00:00:00", but now it looks like this: "2013-01-07T00:00:00-05:00".  The time zone is appended
    to the string and it kills the Outlook Export feature.
    To test this, I created a new database with one table and one date time field.  I generated an InfoPath template and emailed it to myself.  I entered the date into the template and submitted it (tried manually entering the date as well as
    using the date time picker control - made no difference).  The InfoPath template now contains "2013-01-07T00:00:00-05:00" and will not Export from Outlook to Access.  I tried manually pasting the string into the Access table and it would take it,
    but would show "1/7/2013 5:00:00 AM" in the date time field (which isn't correct either but at least it took).  Note: This problem has appeared at my office (Win 7 with Office 2010), but my testing was done on my personal laptop using Win 8 with Office
    2010.
    It looks like Microsoft has created a bug and now all of my data collection forms are unusable.  Any help will be appreciated.

    Microsoft confirmed that the issue was introduced with MS12-066 as follows:
    ***Start Quote
    We have been able to identify that this issue was introduced with the change made for the hotfix detailed in KB 2687395. This update was included in the security update MS12-066 when you installed KB 2687417.
    2687395          Description of the InfoPath 2010 hotfix package (ipeditor-x-none.msp): August 28, 2012
    http://support.microsoft.com/kb/2687395/EN-US
    2687417           MS12-066: Description of the security update for InfoPath 2010 Service Pack 1: October 9, 2012
    http://support.microsoft.com/kb/2687417/EN-US
    Investigating workarounds I've only come up with using HTML forms or changing the datatype of the control to text.
    ***End Quote
    My own testing also indicates that if you are using InfoPath with SQL Server, you may be able to change the Date/Time picker control in InfoPath to a Date only picker control (if the SQL Server data
    type will support that).

  • Time Zone Conversion with out using function and with out alter

    Hi All,
    I am able to see 1Hr difference in my date fields of SQL output because in UI (User Interface)  date field was stored in BST format but DB time zone is in GMT format so can any one help me to find a solution for 1 hr difference, here i don't have Privileges to alter DB time zone and i couldn't use function as i have so many SQL's and  can't apply that function manually. SO is there any other option to change the DB time zone with out alter it and with out using function.
    Thank you Very Much.

    Hi,
    you need to set time zone in your session, let's do an example :
    alter session set nls_date_format='DD/MM/YYYY HH24:MI:SS';
    CREATE TABLE USERA.T
      SDATE       DATE                              DEFAULT sysdate,
      WITHOUT_TZ  TIMESTAMP(6)                      DEFAULT sysdate,
      WITH_TZ     TIMESTAMP(6) WITH TIME ZONE       DEFAULT sysdate,
      WITH_LZ     TIMESTAMP(6) WITH LOCAL TIME ZONE DEFAULT sysdate
    insert into USERA.T(sdate) values(sysdate);
      commit;
      select * from USERA.T;
    SQL> select * from system.t;
    SDATE
    WITHOUT_TZ
    WITH_TZ
    WITH_LZ
    26/09/2013 11:04:23
    2013-09-26-11.04.23.000000
    26/09/13 11:04:23,000000 +00:00
    2013-09-26-11.04.23.000000
    SQL> alter session set TIME_ZONE ='-7:0';
    Session altered.
    SQL> select * from system.t;
    SDATE
    WITHOUT_TZ
    WITH_TZ
    WITH_LZ
    26/09/2013 11:04:23
    2013-09-26-11.04.23.000000
    26/09/13 11:04:23,000000 +00:00
    2013-09-26-04.04.23.000000

Maybe you are looking for