To_date function related to location of server

is to_date function related to the location of the database server? In the where clause I'm using the UPDATE_TIME column with is a timezone with timestamp
When I use a simple where clause indicated in item A below, I get a result as if it was item B. Is there a way to fix this?
item A: to_date('2009-11-18 10', 'yyyy-mm-dd hh24')
item B: to_date('2009-11-18 08', 'yyyy-mm-dd hh24')

Reo wrote:
is to_date function related to the location of the database server?DATE datatype is not timezone sensitive.
item A: to_date('2009-11-18 10', 'yyyy-mm-dd hh24')
item B: to_date('2009-11-18 08', 'yyyy-mm-dd hh24')Will always return 10 and 8 a.m. respectively.
SQL> alter session set nls_date_format='MM/DD/YYYY HH24:MI:SS'
  2  /
Session altered.
SQL> select  to_date('2009-11-18 10', 'yyyy-mm-dd hh24'),
  2          to_date('2009-11-18 08', 'yyyy-mm-dd hh24')
  3    from  dual
  4  /
TO_DATE('2009-11-18 TO_DATE('2009-11-18
11/18/2009 10:00:00 11/18/2009 08:00:00
SQL> SYSDATE always returns current date and time in database server timezone. CURRENT_DATE returns current date and time in client timezone. For example, my database server is in EST. I changed my database box time zone to PST, while client timezone still is EST:
SQL> select  sysdate,
  2          current_date
  3    from  dual
  4  /
SYSDATE             CURRENT_DATE
11/18/2009 13:35:34 11/18/2009 16:35:34
SQL> SY.

Similar Messages

  • Info on TO_DATE function

    After seeing many questions on TO_DATE function,I think it will be better to post
    this useful information on to_date function.please correct me if i am wrong
    anywhere in the post.
    TO_DATE :
    SYNTAX:TO_DATE(i/pstring[,i/pstringfmt[,nlsparam]])Note:Apart from third party tools which have their own default settings,the output of to_date is in the format specified by NLS_DATE_FORMAT parameter in NLS_DATABASE_PARAMETERS view.
    Note: The format that we are specifying in to_date function is the format of the i/p string
    and not the format of the o/p date.
    Ex:
    SQL> select to_date('12-JAN-2008','DD-MON-YYYY') from dual;
    TO_DATE('
    12-JAN-08
    SQL> select to_date('12-01-2008','DD-MM-YYYY') from dual;
    TO_DATE('
    12-JAN-08
    SQL> select to_date('12/01/2008','DD/MM/YYYY') from dual;
    TO_DATE('
    01-DEC-08Q) So, for to_date we have to give the format of i/p string. But in some cases, even if i give a format other than the format of i/p string, I am getting the o/p.
    Ex1. SELECT to_date('01.JAN.2008','DD-MON-YYYY') from dual;
    Ex2. SELECT to_date('01/JAN/2008','DD-MON-YYYY') from dual;
    Ex3. SELECT to_date('01-JAN-2008','DD-MM-YYYY') from dual;
    Ex4. SELECT to_date('01-JANUARY-2008','DD-MM-YYYY') from dual;A)The answer for 1 and 2 is, Oracle will not match separators(./-) in the string and format mask.
    It only matches corresponding values. space can be a separators in the format mask.
    Ex:select to_date('2008-01-01','YYYY MM DD')  from dualIn case if the i/p string does not match with the format mask, Oracle substitutes the format mask element with its alternatives and even after this, if it cannot convert the i/p string to the given format mask, then it throws an error.
    Alternate Format masks Table:
    Format Mask Alternate Format Mask
    Element       allowed in i/p String
    MM       MON,MONTH
    MON     MONTH
    MONTH MON
    YY       YYYY
    RR        RRRR
    RR         RRIn Ex3 and Ex4, we have MM in the format mask and MON (JAN), MONTH (JANUARY) in i/p string.
    According to the above table, Oracle makes an implicit substitution of alternate format mask MON or MONTH
    and hence it does not give an error. But this statement SELECT TO_DATE (’01-01-2008’,’DD-MON-YYYY’)
    FROM DUAL will always error out because according to the above given table, if you have ‘MON’ in the format mask, then only MON (JAN) or MONTH (JANUARY) is allowed in the i/p string.
    Q) Since format mask is optional, if i do not give any format mask, then How Oracle will convert the given string to a date?
    A) If we do not specify any format mask, then Oracle assumes that the string is in default date format and tries to convert it into a date.If the i/p string is not in the default date format, then it will give an error.
    Ex: Assume that the default date format is ‘DD-MON-RR’.
    Now if you execute a statement like, SELECT to_date(’01-01-2009’) from dual, it will error out since it is not in the default format and also not convertable by implicit substitution according to the implicit substitution table.
    Q)If i have time fields in the format mask and if i did not give them in the i/p string like select to_date('10-JAN-2008','DD-MON-YYYY HH24:MI:SS') from dual ,will it error out?
    A)You can omit the time fields in the i/p string, beause if nothing is provided then Oracle will implicitly take time as 00:00:00 and hence it will not give an error.
    Q)If i give some thing like select to_date('2008-05-01','DD-MM-YYYY') from dual, it errors out but if i give select to_date('2008-05','DD-MM-YYYY') from dual, then there is no problem. what is the reason for it?
    A)On seeing the format mask DD-MM-YYYY, it takes first 2 digits (20) as DD ,the next 2 digits(08) as month, the next 2 digits for year(05).After coming this far, still there is some portion(01) of the string that is not matched and hence it throws an error and once we remove ‘01’ as given in the question, it works absolutely fine.
    Edited by: Sreekanth Munagala on Feb 25, 2009 3:45 AM

    I think what Boneist is saying, and I agree, is that the answer to the first Q is misleading.
    Sreekanth Munagala wrote:
    Q)Some people have a misconception that a statement like to_date('01-01-2008','DD-MM-YYYY') will always convert the string '01-01-2008' into a date with the given format 'DD-MM-YYYY'.
    A)It might or might not .It all depends on value of NLS_DATE_FORMAT parameter in NLS_DATABASE_PARAMETERS view.Well,if the value of the parameter is 'DD-MM-YYYY'
    then the answer is 'YES' else the answer is 'NO'.The Answer should simply be "It won't". with the reason being that "the DATE datatype does not have a display format, only an internal format which is consistent regardless of how you want to display it. The format specified in the TO_DATE function relates to the format of the input string; how the date returned from that function is _displayed_ is completely independant of, and unrelated to, the TO_DATE function."

  • Root-relative links & local testing server

    Yesterday I figured out that I'd have to use root-relative links in an included SSI file so that it would work from both templates and pages in my main directory (or other directories, for that matter), e.g., 'src=/image/picture.jpg'. However, since my site is PHP, in order to test the pages or even to use Live View, I have to make use of a "testing server". I did this without much trouble using a package called EasyPHP, which sets up a local web server as well as the PHP module, MySQL support, etc. This all works very well.
    The problem is that, in order to support several web sites, I have to use a "virtual directory" spec to direct the web server to the correct location for my site's files. In the setup for the testing server, I therefore have to specify a URL prefix such as 'http://localhost/corinthian' for this particular site. That has worked previously, but breaks when using root-relative links since the server sees the "root" as being the main "localhost" directory instead of "localhost/corinthian". So now my SSI doesn't display correctly because it's not being resolved to the correct directories.
    I don't think that this is fixable unless someone else has run into it and can think of some gimmick I could try. Anyone? Breaking out some of my code into an SSI has definitely been more of a challenge than I expected!

    I use 1&1 Internet as my hosting service. They apparently have my site set up in a virtual directory / virtual host fashion. Going to http://corinthian241.org, the root directory for root-relative links would have to be the directory pointed to by the URL. However, running phpinfo.php on the site shows the following result for $_SERVER['DOCUMENT_ROOT']: '/kunden/homepages/29/d246935068/htdocs/corinthian'.
    So I'm pretty sure that a link from a page in my site home directory using this as a prefix would definitely not work, since the first "/" implies starting in the "corinthian" subdirectory -- not the real root of the server itself. Correct?
      Doug

  • Equivalent of to_date function in Ms SQL and using it in Evaluate function

    Hi,
    I am trying to find out a function in MS SQL which is equivalent to to_date function in oracle. Please find below the advanced filter i am trying to use in OBIEE.
    Evaluate('to_date(%1,%2)' as date ,SUBSTRING(TIMES.CALENDAR_MONTH_NAME FROM 1 FOR 3)||'-'||cast(TIMES.CALENDAR_YEAR as char(4)),'MON-YYYY')>=Evaluate('to_date(%1,%2)' as date,'@{pv_mth}'||'@{pv_yr}','MON-YYYY') and Evaluate('to_date(%1,%2)' as date ,SUBSTRING(TIMES.CALENDAR_MONTH_NAME FROM 1 FOR 3)||'-'||cast(TIMES.CALENDAR_YEAR as char(4)),'MON-YYYY') <=timestampadd(sql_tsi_month,4,Evaluate('to_date(%1,%2)' as date,'@{pv_mth}'||'@{pv_yr}','MON-YYYY'))
    The statement above works fines with oracle DB with to_date function. The same statement throws an error with MS SQL since to_date is not a built in function.
    With MS SQL I tried with CAST, not sure how to pass parameters %1 and %2.
    Please help me how to use Evaluate function and passing parameters along with to_date funtion in MS SQL.
    Regards!
    RR

    Hi,
    please refer to this thread for useful information on using to_char and to_date functions of oracle in MS SQL server:
    http://database.ittoolbox.com/groups/technical-functional/sql-server-l/how-to-write-to-to_char-and-to_date-sql-server-351831
    Hope this helps.
    Thanks,
    -Amith.

  • Oracle date field not comparing properly with to_date function

    Hi, i'm facing a very weird problem. I'm triyng to retrieve a range of records in between two dates. However, it doesn't seem to understand. What am i doing wrong?
    let's say my table (MYRECORD) has this (where id is varchar and date is DATE and not timestamp) :
    ID DATE
    1 22-JAN-08
    2 22-JAN-08
    3 21-JAN-10
    4 11-FEB-10
    5 11-FEB-10
    So, let's say iwanna get the records from 21st Jan 2010 :
    select
    date as ori_date from MYRECORD where
    date = to_date('21/01/2010','DD/MM/YYYY')
    1.)
    it is not returning any record at all. I'm having problems with between dates and the to_date function as well,
    so i'm trying to get the 'equal' part working first. I can't use to_char because at the end of the day,
    i need to compare between dates.
    what am i doing wrong? has this got anything to do with what kind of format is set up on the oracle server?
    running :
    SELECT value FROM v$nls_parameters WHERE parameter ='NLS_DATE_FORMAT'
    returns DD-MON-RR
    2.) how do we compare dates from the table according to our own specified format from our passed string? I only have READONLY access to this database
    so i can't set anything up.

    please run this
    select To_date(date, 'DD/MM/YYYY HH24:MI:SS') as ori_date from MYRECORDprobably you have hour minute second info in your table, to_date('01012010','DDMMYYYY') means hour, minute and second is 00:00:00 so it wont be equal.The database field type is actually 'DATE' and not datetime. I've also ran the sql you provided to show its timestamp, but it's not showing anything as far as timestamp is concerned. It's showing only the date. So does this mean it's a real date only information?
    However, it might be more efficient to do two comparisons, especially if there's an index on dt:
    WHERE   dt >= TO_DATE ('21/01/2010', 'DD/MM/YYYY')
    AND     dt <  TO_DATE ('22/01/2010', 'DD/MM/YYYY')
    Ok. If we change the range to compare it on the same day, it won't work;
    WHERE   dt >= TO_DATE ('21/01/2010', 'DD/MM/YYYY')
    AND     dt <=  TO_DATE ('21/01/2010', 'DD/MM/YYYY')this also happens if we're using BETWEEN
    this is real weird. It's supposed to work...i don't recall having this kind of issue on other databases. If that's the case,
    each time a user passes me a date string i have to somehow add another day onto its 'to' comparison date in order for things to work.
    but..i don't want to since i don't want to accidentally include the extra day's results!
    Edited by: 803998 on Oct 21, 2010 8:14 PM
    Edited by: 803998 on Oct 21, 2010 8:33 PM

  • TO_DATE function help

    Dear All,
    I need Output of the following query in the 'JANUARY' or 'JAN' i.e. 'MONTH' or 'MON' format. But following query is returning full date. Could any person help to get me output in MONTH or MON format but SQL should be using TO_DATE function.
    TO_DATE(to_char(trunc(ORDERED_DATE),'MONTH'),'MONTH') order_date
    Above query is failing to return desired output.
    Thanks

    For each DATE value, Oracle stores the following information: century, year, month, date, hour, minute, and second.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/sql_elements001.htm#sthref116
    there are some conversion functions :
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions180.htm#i1009324
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions183.htm#i1003589
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions201.htm#i79761
    moreover, the human eye can only read character datatypes (not number or date datytypes) !
    which means, whenever you do a select sysdate from dual there will be an implicit conversion
    to character datatype to make it readable for you (according to nls_date_format) .
    alter session set nls_date_format = 'DD.MM.YYYY' ;
    select sysdate today from dual ;
    TODAY
    21.12.2008
    alter session set nls_date_format = 'YYYY.MM.DD' ;
    select sysdate today from dual ;
    TODAY
    2008.21.12So the same statement select sysdate today from dual ; will give different results on different systems,
    just depending on some initial settings !
    You ask why ? It's because you are using implicit conversion !!!
    Re: Sql Error

  • Messaging Server 4: WebMail login returns "unable to locate the server"

    When I log into WebMail, the following error occurs:<BR>
    <P>
    Netscape is unable to locate the server <I>hostname</I>.
    Please check the server name and try again.
    <P>
    <B>End User</B>
    <P>
    First verify that you cannot reach the hostname
    server by using the ping
    utility (Windows NT or Unix). If
    you cannot reach the host, report this problem to the appropriate system
    administrator or help desk.
    <P>
    However, if you can reach the host with ping
    , then the problem may be a minor
    networking issue that you can resolve. There is also the possibility that
    the network has been configured to allow users to ping
    unreachable systems. You can use the
    following actions to rule out possible sources of the problem:<BR>
    <P>
    <OL>
    <LI>Attempt to log in to WebMail again. If you can log in successfully, then
    the problem with the WebMail server may have been temporary or is an
    intermittent problem.
    <P>
    <LI>End the current browser session and then restart the browser and try to
    connect to the WebMail server again. If you can log in successfully, then,
    most likely, the browser had cached some old network information that was
    reset when you exited the browser.
    <P>
    <LI>Verify the DNS configuration of your system and then restart the entire
    system.
    </OL>
    <P>
    If the above actions do not work, then you will need to contact the
    system administrator or the help desk.
    <P>
    <B>Mail Server Administrators</B>
    <P>
    As the problem with connecting to the WebMail server is caused by configuration
    or availability problems, make sure that users who report this problem have
    HTTP network connectivity to the hostname. The following scenarios are
    possible causes of connectivity problems:<BR>
    <P>
    <UL>
    <LI>Users have the wrong proxy.
    <LI>Users are being blocked by firewalls.
    <LI>Users are connecting from the wrong network.
    <LI>Users specify the incorrect DNS servers.
    </UL>
    <P>
    In addition, users may also report that the server is down. As the login page
    for WebMail does not contain URL links that are FQDNs or absolute path names,
    it is possible that users may still be able to see the login window if it was
    cached or loaded before the server stopped working.
    <P>
    In some cases, it may be necessary to access the hostname that is used in the
    WebMail links. This hostname setting is stored in the configdb
    parameter
    service.smtp.messagehostname.
    This configuration setting is not mentioned in the Messaging Server
    documentation.
    <P>
    The messagehostname is a
    configuration value that affects many server functions. For this reason, do
    not make changes to this value without first considering the effects of such a
    change on other WebMail settings, such as the postmaster group and user
    mailhost values. Also, please note that changing messagehostname
    is not supported from Console.
    <P>
    For more information on messagehostname
    , please see "What is messagehostname?"
    at<BR>
    article 4250
    <P>
    You can also find documentation for configutil
    in the Messaging Server Administrator's
    Guide at the following URL:<BR>
    <P>
    http://docs.iplanet.com/docs/manuals/messaging/nms41/ag/cmdline.htm#1003887
    <P>
    <B>Note:</B> You must stop and restart the HTTP service in order for changes to
    the messagehostname to
    take effect.

    When I log into WebMail, the following error occurs:<BR>
    <P>
    Netscape is unable to locate the server <I>hostname</I>.
    Please check the server name and try again.
    <P>
    <B>End User</B>
    <P>
    First verify that you cannot reach the hostname
    server by using the ping
    utility (Windows NT or Unix). If
    you cannot reach the host, report this problem to the appropriate system
    administrator or help desk.
    <P>
    However, if you can reach the host with ping
    , then the problem may be a minor
    networking issue that you can resolve. There is also the possibility that
    the network has been configured to allow users to ping
    unreachable systems. You can use the
    following actions to rule out possible sources of the problem:<BR>
    <P>
    <OL>
    <LI>Attempt to log in to WebMail again. If you can log in successfully, then
    the problem with the WebMail server may have been temporary or is an
    intermittent problem.
    <P>
    <LI>End the current browser session and then restart the browser and try to
    connect to the WebMail server again. If you can log in successfully, then,
    most likely, the browser had cached some old network information that was
    reset when you exited the browser.
    <P>
    <LI>Verify the DNS configuration of your system and then restart the entire
    system.
    </OL>
    <P>
    If the above actions do not work, then you will need to contact the
    system administrator or the help desk.
    <P>
    <B>Mail Server Administrators</B>
    <P>
    As the problem with connecting to the WebMail server is caused by configuration
    or availability problems, make sure that users who report this problem have
    HTTP network connectivity to the hostname. The following scenarios are
    possible causes of connectivity problems:<BR>
    <P>
    <UL>
    <LI>Users have the wrong proxy.
    <LI>Users are being blocked by firewalls.
    <LI>Users are connecting from the wrong network.
    <LI>Users specify the incorrect DNS servers.
    </UL>
    <P>
    In addition, users may also report that the server is down. As the login page
    for WebMail does not contain URL links that are FQDNs or absolute path names,
    it is possible that users may still be able to see the login window if it was
    cached or loaded before the server stopped working.
    <P>
    In some cases, it may be necessary to access the hostname that is used in the
    WebMail links. This hostname setting is stored in the configdb
    parameter
    service.smtp.messagehostname.
    This configuration setting is not mentioned in the Messaging Server
    documentation.
    <P>
    The messagehostname is a
    configuration value that affects many server functions. For this reason, do
    not make changes to this value without first considering the effects of such a
    change on other WebMail settings, such as the postmaster group and user
    mailhost values. Also, please note that changing messagehostname
    is not supported from Console.
    <P>
    For more information on messagehostname
    , please see "What is messagehostname?"
    at<BR>
    article 4250
    <P>
    You can also find documentation for configutil
    in the Messaging Server Administrator's
    Guide at the following URL:<BR>
    <P>
    http://docs.iplanet.com/docs/manuals/messaging/nms41/ag/cmdline.htm#1003887
    <P>
    <B>Note:</B> You must stop and restart the HTTP service in order for changes to
    the messagehostname to
    take effect.

  • 9i R2.9.9 to_date function

    I exported user tables from Oracle 8i rel 2 ver 8.1.6 to
    Oracle 9i rel2.9.2 Enterprise Server on Win 2000 Server SP2
    When importing the character set was WE8ISO8859P1 and also the NChar Character set.
    The 9i Db the character set was WE8ISO8859P1 and NChar Character set was AL16UTF16.
    Every thing went fine except the to_date function gave incorrect results on the forms,reports and PLSQL*.
    I changed the NChar Character set to WE8ISO8859P1 by updating props$ and
    exported and reimported the data, but the problem persisted.
    'Alter database national character set' would not accept WE8ISO8859P1 .
    How can I fix this odd problem?

    I exported user tables from Oracle 8i rel 2 ver 8.1.6 to
    Oracle 9i rel2.9.2 Enterprise Server on Win 2000 Server SP2
    When importing the character set was WE8ISO8859P1 and also the NChar Character set.
    The 9i Db the character set was WE8ISO8859P1 and NChar Character set was AL16UTF16.
    Every thing went fine except the to_date function gave incorrect results on the forms,reports and PLSQL*.
    I changed the NChar Character set to WE8ISO8859P1 by updating props$ and
    exported and reimported the data, but the problem persisted.
    'Alter database national character set' would not accept WE8ISO8859P1 .
    How can I fix this odd problem?

  • ** How to use TO_DATE function in Stored Proc. for JDBC in ABAP-XSL mapping

    Hi friends,
    I use ABAP-XSL mapping to insert records in Oracle table. My Sender is File and receiver is JDBC. We use Oracle 10g database. All fields in table are VARCHAR2 except one field; this is having type 'DATE'.
    I use Stored procedure to update the records in table. I have converted my string into date using the Oracle TO_DATE function. But, when I use this format, it throws an error in the Receiver CC. (But, the message is processed successfully in SXMB_MONI).
    The input format I formed like below:
    <X_EMP_START_DT hasQuot="No" isInput="1" type="DATE">
    Value in Payload is like below.
    <X_EMP_START_DT hasQuot="No" isInput="1" type="DATE">TO_DATE('18-11-1991','DD-MM-YYYY')</X_EMP_START_DT>
    Error in CC comes as below:
    Error processing request in sax parser: Error when executing statement for table/stored proc. 'SP_EMP_DETAILS' (structure 'STATEMENT'): java.lang.NumberFormatException: For input string: "TO_DATE('18"
    Friends, I have tried, but unable to find the correct solution to insert.
    Kindly help me to solve this issue.
    Kind Regards,
    Jegathees P.
    (But, the same is working fine if we use direct method in ABAP-XSL ie. not thru Stored Procedure)

    Hi Sinha,
    Thanks for your reply.
    I used the syntax
    <xsl:call-template name="date:format-date">
       <xsl:with-param name="date-time" select="string" />
       <xsl:with-param name="pattern" select="string" />
    </xsl:call-template>
    in my Abap XSL.  But, its not working correctly. The problem is 'href' function to import "date.xsl" in my XSLT is not able to do that. The system throws an error. Moreover, it is not able to write the command 'extension-element-prefixes' in my <xsl:stylesheet namespace>
    May be I am not able to understand how to use this.
    Anyway, I solved this problem by handling date conversion inside Oracle Stored Procedure. Now, its working fine.
    Thank you.

  • Data Refresh Error: We cannot locate a server to load the workbook Data Model.

    Hello,
    Recently I have developed a PowerBI Report using Excel Workbook with external data source. It refreshes successfully for some days and then starts throwing error on every scheduled refresh as "We cannot locate a server to load the workbook Data
    Model." 
    The workaround solution is to restart the application server which has SQL Server Power Pivot Services Installed which will again work for some more days and again start throwing error.
    So, I am looking for permanent fix for it.
    Following are additional details about our SP Farm:
    No. of front end servers: 2, Application servers:2, DB servers 2 with windows fail over cluster.
    PowerPivot Server is installed and configured from App 2 server.
    Error Log from event viewer:
    Unable to load custom data source provider type: Microsoft.PerformancePoint.Scorecards.DataSourceProviders.AdomdDataSourceProvider, Microsoft.PerformancePoint.Scorecards.DataSourceProviders.Standard, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c
    System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.AnalysisServices.AdomdClient, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.
    File name: 'Microsoft.AnalysisServices.AdomdClient, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91'
       at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type)
       at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName)
       at System.Type.GetType(String typeName, Boolean throwOnError)
       at Microsoft.PerformancePoint.Scorecards.Server.PmServer.InitializeCustomDataSourceProviders()
    PerformancePoint Services error code 10107.
    Thanks,
    Ibrahim

    Hi ibrahim,
    Please try to do the following steps:
    1. Install "1033\x64\SQLSERVER2008_ASADOMD10.msi" from
    http://www.microsoft.com/en-us/download/details.aspx?id=26728
    2. In the Application Management section of the Central Administration home page, click Manage service applications.
    On the Manage Service Applications page, click the Excel Services service application that you want to configure.
    On the Manage Excel Services page, click Data Model.Click Add Server.
    In the Server Name box, type the name of the Analysis Services instance that you want to add.
    3. Check the thread below:
    https://social.technet.microsoft.com/Forums/en-US/ecc18319-88d8-4dd0-bafd-fa0d2edceffb/external-data-refresh-failed-we-cannot-locate-a-server-to-load-the-workbook-data-model?forum=sharepointadmin
    More information:
    https://timpanariuovidiu.wordpress.com/2013/02/14/71/
    https://support.microsoft.com/kb/2769345?wa=wsignin1.0
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

  • How to retrieve data from an Excel file which is located on server

    hi everybody,
                    I am using SAP NWDS 2004s .     
                I have done an application on how to export the table data into an Excel .
    Now i want to get the data from an Excel file which is located in server and display that data which is in excel in a View for example a Sample view in Webdynpro  .
    In Sample view i took a uielement textview to display the data ....   
    can any one help how to procced further
    Thanks in advance
    Madhavi

    Options to read Excel data to WebDynpro context
    Reading Excel Sheet from Java without using any Framework
    Reading Multiple Sheets of Excel Sheet from Java
    Few Threads
    How to Display the content of Excel file into Webdynpro Table
    Is it possible to upload data from excel file(.xls)
    Re: How to export the data as integer into excel sheet?
    regards
       Vinod

  • PowerPivot Data Refresh Fails - We cannot locate a server to load the workbook Data Model

    Hello,
    I have installed sql01\PowerPivot instance of Analysis services on my existing SQL Server and configured it per Configure Power Pivot for SharePoint 2013
    http://technet.microsoft.com/en-us/library/dn456880(v=office.15).aspx . I did not install a second Database Engine on the server.
    I created an Excel 2013 workbook using the Excel 2013 PowerPivot add-in and saved it to my SharePoint BI Center Document library.
    When I try to refresh my workbook, I get 2 errors in the SharePoint log.
    http://support.microsoft.com/kb/2756665?wa=wsignin1.0 indicates the sproc is deprecated, but that does not help me fix the issue.
    Log errors:
    Following error occured while trying to execute a sql query: System.Data.SqlClient.SqlException (0x80131904):
    Could not find stored procedure 'DataRefresh.GetSchedule'.
    EXCEPTION: NoAvailableStreamingServerException: We cannot locate a server to load the workbook Data Model.
    macrel

    Hi Marcel,
    Based on my research, it seems that you have Microsoft SQL Server 2012 PowerPivot for SharePoint 2013 add-in installed on a computer. When you perform a data refresh operation on some PowerPivot workbooks in Microsoft SharePoint 2013, you receive two error
    message.
    As to the first error, this issue occurs because the Custom Properties on the Excel workbook are not correctly cleared before you set a new serialized schedule. This causes an extra custom property to remain after you set the new schedule. Therefore, the
    new schedule fails. To fix this issue, please
    install Cumulative Update 9 for SQL Server 2012 SP1.
    As to the second error, please
    running a repair using PowerPivot configuration wizard for SharePoint 2013. For more information about Troubleshooting PowerPivot Data Refresh, please see: 
    http://social.technet.microsoft.com/wiki/contents/articles/troubleshooting-powerpivot-data-refresh.aspx
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • The to_date function doesn't work ?

    Hello
    I don't know why my to_date function doesn't work on my pc.
    my statement is pretty complex so i just tried simple one
    select to_date('10-Jan-2006','dd-mon-yyyy') from dual;
    but even this one doesn't work it says it is invalid month
    howcome?
    is it because my Windows XP (not english version) doesn't recognise month Jan?
    i tried it another place it worked
    so is there any language pack / patch i need to install? ?
    so does OS matters?
    or how to fix this..please help me

    By default SQL Developer picks up it's language settings up from (on Windows) the Regional and Language Options. You can see what it has set by querying the NLS_SESSION_PARAMETERS view.
    Assuming you don't want to change to using DD-MM-YYYY formats for your months or change your regional settings on your PC, you need to tell SQL Developer which language you want, which you can do by adding the following lines to the file sqldeveloper\jdev\bin\sqldeveloper.conf:
    AddVMOption -Duser.language=en
    AddVMOption -Duser.country=US

  • External Data Refresh Failed. We cannot locate a server to load the workbook Data Model. ThisWorkBookDataModel

    Hi All,
    I have been trying to fix this for days now. I have tried solutions in many articles but to no avail. So while the error message is something you may have seen may times, I just can't find a solution in my case.
    This is the error:
    And in text just in case the image isn't viewable:
    "External Data Refresh Failed. We cannot locate a server to load the workbook Data Model. We were unable to refresh one or more data connections in this workbook. The following connections failed to refresh: ThisWorkBookDataModel."
    What is worse is I have checked the ULS (SharePoint Trace Logs), the Event Viewer Logs and the OWA Logs and I cannot find a specific error that would help pin point the problem.
    Excel Workbook
    So what am I doing? I have an Excel 2013 workbook and I create an "SQL Server" connection to the AdventureWorksDW database, add a pivot table and a pivot chart, test in in Excel and all works fine.
    I save the Excel workbook to SharePoint 2013 and then select "Data" then "Refresh All Connections" and then I get the error in the picture above.
    Even more puzzling is I have another Excel workbook that also has pivot tables and pivot charts in the AdventureWorksDW2012Multidimensional cube database in "SQL Analysis Services" and this works fine. Hmmm.
    My Environment
    My environment is Windows 2008 R2 Server, SharePoint 2013 with the April Service Pack1 and a separate server with OWA2013 SP1. It has an SQL Server 2008 R2 database which has been upgraded to SQL Server 2012.
    Data Model Settings
    In Excel Services this is set to my server name which is "server-name". As I do not have instances all I can enter is the server name. As this works everywhere else including the workbook outside of SharePoint I do not think this is the problem.
    But I could be wrong.
    Unattended Account
    I have set this up for the PowerPivot Services App and Excel Services App.
    ODC Connections in Excel
    I have tried all 3 authentication modes, Windows, Secure Store ID and "None" which is the unattended account. I have not tried the other connection types, should I?
    Not in WOPI
    I am not in WOPI mode.
    AD Accounts
    I have added permissions in the SharePoint Services and SQL Server, and as they work in Excel outside of SharePoint, I do not think it is a permissions issue. I could be wrong of course, but the problem is in one of SharePoint, OWA, AD,
    SQL Server, Excel, and Windows Server.
    Isolate the Error
    Below is a list of errors I think are relevant but they do not tell me much. The SharePoint logs are not really giving me an error that tells me what to do and where to do it, or even why it cannot refresh, (perhaps not noticeable by the untrained eye).
    Problem with SQL Server Not Analysis Services
    So my cube database in analysis services works fine in SharePoint/OWA but not the databases in sql server. This is my best clue but I have no idea what it means. Why would it work with an Analysis Services connection but not an "SQL Server" connection?
    It Works Outside of SharePoint
    If I run the excel worksheet outside of SharePoint all works fine. When inside OWA this is where the refresh error occurs.
    Errors from Event Viewer on SharePoint Server using ULS Viewer
    "Failed to create an external connection or execute a query. Provider message: There are no servers available or actively being initialized., ConnectionName: , Workbook:"
    "Refresh failed for 'ThisWorkbookDataModel' in the workbook 'http://server...'. [Session: 1.V22.26itT0lx8piNFeqtuGVhN214.5.en-US5.en-US36.98c0e158-9113-46e9-850e-edda81d9ed1c1.A1.N User: 0#.w|ad\testuser1]"
    And an error in the ULS under the "Data Model" category:
    "--> Check Deployment Mode (server-name): Fail (Expected: SharePoint, Actual: Multidimensional)."
    This last error, as it turned out, defined the problem concisely, although I was yet to work out what it meant in some detail.

    I finally solved this myself (or should I say with the help of several key articles).
    The refresh did not work because the database was not in "SharePoint Mode". Yes, SQL Server has modes, 3 of them in fact.
    If you installed SharePoint to the default SQL instance which would be called <servername> then you cannot use this default instance for Excel 2013 workbooks in OWA 2013 because the refresh only works if the database is in SharePoint mode.
    So what are these 3 modes? The Deployment Mode property in the msmdsrv.ini file has them as:
    0 = Multidimensional mode (the default whenever you install SQL Server normally)
    1 = PowerPivot for SharePoint mode
    2 = Tabular mode mode
    How do you know what mode you are in? That's easy, open SQL Studio Manager and connect to all your SQL database engine instances (ignore Analysis Services or SSRS as they are not database engines). If you only have the default instance then that is almost
    definately in Multidimensional mode which is the default and what SharePoint installs its databases to.
    You must have an instance called <servername>\POWERPIVOT. This instance is the "sharepoint mode" needed, and the default instance name when you install an SQL instance in this mode.
    If you don't see <servername>\POWERPIVOT in SQL server then you are not in "sharepoint mode". It is more accurate to say, you do not have an instance that is in sharepoint mode. This is because you cannot simply switch modes on an SQL server.
    You have to install a new instance in the required mode, thats the only way.
    That's easy enough. Load up the SQL Server setup CD and run setup. Install a brand new instance and select "SQL Server PowerPivot for SharePoint" when you get there in the wizard.
    Now you will have the default instance that stores all the SharePoint databases and that is in mode 0, and a new instance called <servername>\POWERPIVOT that is in mode 1. The "<servername>\POWERPIVOT" instance connection is what you
    will use for Excel 2013 when rendering in OWA 2013.
    You also need to ensure OWA 2013 is not in WOPI mode for Excel worksheets. See the last link below for more information about WOPI.
    Next you should go to the Excel Service App in CA and click Data Model Settings and add the <servername>\POWERPIVOT instance.
    Then you have to either turn off the firewall on the SQL server machine, or create an inbound rule on the Windows firewall to open the TCP port for the <servername>\POWERPIVOT instance:
    1. Start Task Manager and then click Services to get the PID of the MSOLAP$InstanceName.
    2. Run netstat –ao –p TCP from the command line to view the TCP port information for that PID.
    Finally, you can now create Excel 2013 workbooks that run in OWA without refresh errors, as long as you are connecting to the <servername>\POWERPIVOT instance. Hooray.
    REFERENCES
    Look for the string "There are no servers available or actively being initialized" in this article:
    http://blogs.msdn.com/b/analysisservices/archive/2012/08/02/verifying-the-excel-services-configuration-for-powerpivot-in-sharepoint-2013.aspx
    Determine the server mode:
    http://msdn.microsoft.com/en-au/library/gg471594(v=sql.110).aspx
    Install the SharePoint PowerPivot instance (aka SharePoint mode)
    http://msdn.microsoft.com/en-au/library/eec38696-5e26-46fa-bc83-aa776f470ce8(v=sql.110)
    Open the port for the new SQL instance:
    http://msdn.microsoft.com/en-us/library/ms174937(v=sql.110).aspx
    Turn Off WOPI for Excel OWA
    http://blogs.technet.com/b/excel_services__powerpivot_for_sharepoint_support_blog/archive/2013/01/31/powerpivot-for-sharepoint-browser-refresh-fails-data-refresh-not-supported-in-office-web-apps.aspx

  • I would like to know if anyone else is experiencing issues related to location services settings. Ie; they are on but maps cannot determine location etc.

    I recently experienced an issue on my ipad2 related to location services. While connected to a wifi network, I found that apps requiring location services would not work properly and I would receive a pop up notice asking me to turn on location services.  For example, the maps app would display a pop up stating "cannot determine location". My NHL gamecenter app would not allow me to watch live feeds; a pop up advised me to turn on location services. In each case, location services was in fact on.
    I checked my settings, shut down the apps, restarted them, shut down the iPad and rebooted it to no avail. The internet connection was working fine as best as I could determine. The wifi network was at a guest home and the router was recently replaced. I returned to my home wifi and everything worked fine. The next day, I returned to the guest Internet connection and everything seemed to work once again. However, while watching a NHL game, during the last seconds of an overtime shoot out, I lost video and it was attributed once again to location services being disabled. Of course I checked and nothing in my settings had been altered. I went to my iPhone (3GS) and pulled up the gamecenter app and was able to watch the end of the game( via wifi connection...same network).
    So, I am puzzled as to what could be causing this problem. If anyone else is having similar issues, I would like to know as well as if there are any solutions or feedback from Apple regarding this type of problem.....Dave.

    As the King says, if your friends wifi router was relatively new, it likely has not been picked up by Apple's location based information database system and thus there is no location information associated with it.  So your iPad had no way of getting its location.
    The wifi location databases are traditionally updated by wardriving - literally companies employ people to drive around sniffing out active wifi signals and associating an approximate location to it.  Some companies also have web sites to submit that information if owners wish to (Apple does not seem to have one though), and the various companies with wifi location databases buy and sell their information.  Bottom line is though, it can take weeks, months or sometimes even longer for a residential router to get picked up - depends on where you live (more rural, likely the longer time it takes).
    When I moved from VA to NC it took up to 6 months for mine to reflect my new location (I checked it once the week I moved in, and then periodically thereafter, and it finally was getting it right after about 6 months) and I live in a pretty densley populated area (triangle NC).

Maybe you are looking for

  • Appstudio exporter does not contain a valid signature

    HI I am trying to install AppStudio plugin to work with InDesign but Extension Manager is throwing the following error... appstudio exporter does not contain a valid signature ! I have updated all software. (I am downloading new apps in the backgroun

  • China Address Cleansing

    Hi, We're using Global Address Cleanse transform in one of our ETLs. For China (Beijing, Shanghai etc.) address, its populating China as both City and Country and Beijing/Shanghai as State. Below is the output field mappings: State: REGION1_NAME_BEST

  • Error code 21 on I tunes recovery

    Hi, I have a Iphone 3 gs, it went into recovery mode, so I logged in to I tunes recovery and my computer crashed!!! Now when i sync it with I tunes it showes an Iphone connected but no serial number or memory size! also I tryed recovery again and it

  • Procedure to Normalize Flat File Structure

    Hi, I'm trying to write a procedure that essentially takes a table with Customers Orders that are in a flat file format...ie customer_id, order_no1, order_no2...etc. and normalize it so that it looks like this: customer_id, order_no, order_cd. Here's

  • How multiple inputs monitors are managed by OSX ?

    Hi. I have a 2013 Mac Pro (D300) and a 6MP Eizo RX650 monitor. The monitor has to be connected with 2 DP inputs in order to address its native resolution. With this setup, I am not able to display a full extended desktop. What I have is two desktops