Does the connectivity agent (ODBC or OLEDB) does the date conversion ?

I had a problema with some queries of an app. I used on dev a scenario with ODBC and made the INSERT/SELECT queries using 'CAST (***) AS DATE' or simply typing the date string on it. When I implemented the app on prod, with an OLEDB agent, it accused problem on queries with dates on it. I had to use TO_DATE instead of CAST...
Does that matter has something about the connectivity agent I was using on each time?
TY.

Hi LaRisa,
I was able to find the Excel Set Cell Format vi and successfully alter the format of the cell value. It wasn't until I had found the vi that I realised that i've been down this path before. Changing the format after the table has been created will not alter the switching of dd and mm values that has already occurred. However, if I did it before I 'created the table' (or Excel Table vi) and set the format to be "@" then it will display the string as 'Text' in the Excel file. This is nice. I can control which cell, row or column to format now. If I want it to be in a date format then I have to apply the Cell Format vi again after the Easy Excel Table vi.
This seems like a silly run around to me....

Similar Messages

  • Problem with the date conversion

    Hi Friends,
    i am facing the problem with the date conversion,  Actuall my requirement is to pass the date to the screen based on the user setting roles(SU01).
    I have fetched the user setting date format by using the funciton module SUSR_GET_USER_DEFAULTS, The function module picks the exact user date setting (Like as MM/DD/YYYY, MM.DD.YYYY, DD.MM.YY).
    After that i have implemented the FORMAT_DATE_4_OUTPUT funciton module for converting of the user role setting date format into system  date format.
    for the english language case the funciton module FORMAT_DATE_4_OUTPUT works fine but the funciton module not supported for other languages
    Can you please provide the Function Moudle for user setting date conversion.
    The funciton module is most important for us,
    Thanks
    Charan
    Moderator message: date conversion questions = FAQ, please search before posting.
    Edited by: Thomas Zloch on Dec 21, 2010 2:19 PM

    Hope this logic helps you.
    DATA LF_DATE    TYPE DATS VALUE '21122010'. " 21-dec-2010
    DATA LF_DATE_BI(10).
    WRITE LF_DATE TO LF_DATE_BI.  "Now LF_DATE_BI contains the date in user format
    "Now populate the value LF_DATE_BI to the screen field

  • Can SQL*Plus connect via ODBC to NON-Oracle data source?????

    I am struggling to understand something. I downloaded Oracle instance client, SQL*Plus and ODBC components with the hopes of being able to connect via SQL*Plus to a non-Oracle/ODBC compliant database.
    Is this possible? Or is SQL*Plus ability to connect via ODBC only to an Oracle data source??
    Thanks...

    sqlplus only connects to oracle. you can use the odbc driver from instant client to allow other applications to access oracle via odbc (e.g. excel). if you need to connect to non-oracle odbc database (ms-access, foxpro, etc.) you need odbc driver for those sources.
    you can use sqldeveloper to connect to oracle and non-oracle databases. check otn product info for sqldeveloper for more details.

  • Based on the data Convert the datatype and make the wrong date as NULL

    Hi,
    In the below scenario we are inserting some time related fields in Temp table.But its data type is varchar. Once data loading is finished in the temp table (Data is loading by source team SQOOP and they are unable to load if the source datatype is having
    Date or datetime) we have to alter the column datatypes. somehow, some character data in inserted in date columns (look at into 3rd insert statement). while altering the table it is failing. Can we do any alternative for this (Means if any varchar data that
    is non convertible to date can we make as null)
    INSERT INTO ##TEMP_TEST
    SELECT '2014-09-30','2017-10-06','Nov  6 2014  6:11AM','Nov  6 2014  6:11AM'
    UNION SELECT '2014-09-29','2017-10-06','Nov  6 2014  6:11AM','Nov  6 2014  6:11AM'
    UNION SELECT '2014-09-28','2017-10-06','Nov  6 2014  6:11AM','Nov  6 2014  6:11AM'
    GO
    INSERT INTO ##TEMP_TEST SELECT NULL,NULL,NULL,NULL 
    GO
    INSERT INTO ##TEMP_TEST SELECT 'A','B','C','D'
    go
    ALTER TABLE ##TEMP_TEST ALTER COLUMN CAREPACK_ST_DT DATE
    GO
    ALTER TABLE ##TEMP_TEST ALTER COLUMN CAREPACK_END_DT DATE
    GO
    ALTER TABLE ##TEMP_TEST ALTER COLUMN INS_GMT_TS DATETIME2
    GO
    ALTER TABLE ##TEMP_TEST ALTER COLUMN UPD_GMT_TS DATETIME2
    GO
    Please let me know.
    Thanks and Regards Rajesh

    Hi ,
    We are using SQL Server 2008 SP3. 
    Thanks and Regards Rajesh
    Then what you can do is to run a set of updates as below
    UPDATE t
    SET CAREPACK_ST_DT = NULL
    FROM ##TEMP_TEST t
    WHERE ISDATE(CAREPACK_ST_DT) = 0
    AND LEN(CAREPACK_ST_DT) < 8
    UPDATE t
    SET CAREPACK_END_DT = NULL
    FROM ##TEMP_TEST t
    WHERE ISDATE(CAREPACK_END_DT) = 0
    AND LEN(CAREPACK_END_DT) < 8
    UPDATE t
    SET INS_GMT_TS = NULL
    FROM ##TEMP_TEST t
    WHERE ISDATE(INS_GMT_TS) = 0
    AND LEN(INS_GMT_TS) < 8
    UPDATE t
    SET UPD_GMT_TS = NULL
    FROM ##TEMP_TEST t
    WHERE ISDATE(UPD_GMT_TS) = 0
    AND LEN(UPD_GMT_TS) < 8
    And then do the date conversion using ALTER statements
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • I need to Export the data to excel using SSIS package

    In excel i want to get the data as per datatype of that column header.
    for Ex:one  column has the datatype as number,the values that are getting into that column as text.
    now i want to get that column data in number.
    Is it possible

    Thanks for your suggestion Vaibhav,
    BUT
    There i have given the datatype as numberic(10,2),but  it not getting the values as given in excel we are getting that values as text only.
    1.I have done the data conversion in the middle of source and excel destination.
    2.(In excel destination)the values of copy of column name as numeric and output column name is Dt_wstr by default it is taking, when i change that datatype is again changing into Dt_WSTR.

  • Data conversion error. Overflowed the specific type.

    Hi guys, as usual I am struggling with the data conversion. I have got a column BS as Float in SQL, the usual values is 10.5656445, 899.66552366 etc. I'll try to move in Excel the data but I wish to have only one decimal. I try decimal in the data conversion
    with precision 1 but it returns me the same value now I am trying
    numeric, precision 1 but it returns the error "Conversion failed because the data value overflowed the specified type". Any suggestion? Thanks

    Could you tell me what should be the result for 10.5656445, 899.66552366?  Is that 10.5, 899.6 ?
    If yes then, set Precision: 4, Scale: 1
    (This is a total of 4 digits, 3 digits for the whole number and 1 for the fractional)
    Cheers,
    Vaibhav Chaudhari

  • How does the connection with ODBC work exactly?

    Hi all,
    I've got an application written in Java that uses a JDBC-ODBC bridge to connect to an Oracle 8.0.5. Then i got another java application(called the bridge from here on) that only routes traffic to another server. Say that I connect to my bridge using sockets and my bridge is located on machine: remotehost port: 4444 and all my bridge does is reading incoming data and routes to machine: oracleserver port: 1521. This works fine. Now i have "fooled" my main application that my oracleserver is located om machine: remotehost port: 4444. So I can connect to it by DriverManager.getConnection("jdbc:odbc:tns-spec"); And in tns-spec I've stated that my oracleserver is in fact on port 4444. This works fine, but when I exit my bridge program the connection to the database is still there! Why? Does Oracle open a new socket of it's own and contacts my main application directly or what is happening?
    Greatful for an answer is
    Magnus

    Think I've solved the problem, apperently oracle send data back, specifying on which port the data traffic should take. Say I contact Oracle machine remotehost port 1521 then I get a reply back, saying contact, remotehost port XXXX instead...Too bad...

  • Does UD Connect support ODBC

    Hi,
    Does UD Connect support ODBC natively?  If not, is there any way to work around the limitation?
    Regards,
    Frank

    hi,
    go through these docs...i hope they may helpful in giving some info to U...
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4841dd90-0201-0010-b4af-e531993b3e48]
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/11e1b990-0201-0010-bf9a-bf9d0ca791b0]
    regards

  • I am doing one Labview project. so my project is about design a interface in labview which one collect the data from keithley 2400 via GPIB connection.

    i am doing one Labview project. so my project is about design a interface in labview which one collect the data from keithley 2400 via GPIB connection. any suggestion please

    Your first task should be to just be able to send commands to the instrument.  Do as Dennis suggested and download the drivers for the instrument and get familiar with them.  Build up small VIs that do little tasks with those drivers so you can get used to them.  Then worry about your main interface.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • HT5706 I have not used my apple tv in a few years, and just got it out of the bag. I connected it up, and it cannot set date, time.  it also does not interact with the remote.  Could it be as simple as a new batter is needed for remote?

    I have not used my Apple TV in a few years, and just got it out of the bag to use on a new TV.  I connected it up to power and with an HDMI cable toTV.  It attempts to set date and time and cannot.  I cannot get the remote to interact with the box also.  Could it be something as simple as needing a new battery?

    Hi kybriar,
    Thanks for using Apple Support Communities.  This article has steps you can take to troubleshoot the remote itself:
    Troubleshooting the Apple Remote
    http://support.apple.com/kb/ht1722
    For the issue of setting the date and time, these articles may help:
    Apple TV: Basic troubleshooting
    http://support.apple.com/kb/ht1551
    Reset Apple TV by unplugging it from the power outlet, waiting about five seconds, then plugging it in again.
    Power off your TV, wait five seconds, then power it back on.
    Apple TV (2nd and 3rd generation): Troubleshooting Wi-Fi networks and connectionshttp://support.apple.com/kb/TS4546
    Ensure that Apple TV is within range of your Wi-Fi router or base station.
    Confirm that your Wi-Fi router and cable/DSL modem are connected to power and turned on.
    Make sure other devices (computers, iPhone, iPad, for example) are able to connect to the Wi-Fi network and access the Internet.
    Check your Wi-Fi network settings on Apple TV:
    Select Settings > General > Network > Wi-Fi and press the center button on the remote to display nearby networks.
    Choose your Wi-Fi network from the list.
    If your Wi-Fi network uses a password, make sure you are entering it correctly.
    Restart your Apple TV by selecting Settings > General > Restart.
    Try restarting your Wi-Fi router or modem by turning it off and then on again.
    If possible, connect an Ethernet cable and verify your Internet connection. If you can connect to the Internet using an Ethernet connection, verify that your Apple TV is using the latest software by selecting Settings > General > Software Update. If your Apple TV can be updated, install the update and then try the steps again.
    Cheers,
    - Ari

  • Any idea what this errorr means? the data type of the reference does not match the data type of the variable

    I am using Veristand 2014, Scan Engine and EtherCat Custom Device.  I have not had this error before, but I was trying to deploy my System Definition File (run) to the Target (cRio 9024 with 6 modules) and it failed. It wouldn't even try to communicate with the target. I get the 'connection refused' error.  
    I created a new Veristand project
    I added the Scan Engine and EtherCat custom device.
    I changed the IP address and auto-detected my modules
    i noticed tat Veristand didn't find one of my modules that was there earlier. (this week)
     So, i went to NiMax to make sure software was installed and even reinstalled Scan Engine and Veristand just to make sure.
    Now, it finds the module, but when i go to deploy it getsto the last step of deploying the code to the target, and then it fails.
    Any thoughts?
    Start Date: 4/10/2015 11:48 AM
    • Loading System Definition file: C:\Users\Public\Documents\National Instruments\NI VeriStand 2014\Projects\testChassis\testChassis.nivssdf
    • Initializing TCP subsystem...
    • Starting TCP Loops...
    • Connection established with target Controller.
    • Preparing to synchronize with targets...
    • Querying the active System Definition file from the targets...
    • Stopping TCP loops.
    Waiting for TCP loops to shut down...
    • TCP loops shut down successfully.
    • Unloading System Definition file...
    • Connection with target Controller has been lost.
    • Start Date: 4/10/2015 11:48 AM
    • Loading System Definition file: C:\Users\Public\Documents\National Instruments\NI VeriStand 2014\Projects\testChassis\testChassis.nivssdf
    • Preparing to deploy the System Definition to the targets...
    • Compiling the System Definition file...
    • Initializing TCP subsystem...
    • Starting TCP Loops...
    • Connection established with target Controller.
    • Sending reset command to all targets...
    • Preparing to deploy files to the targets...
    • Starting download for target Controller...
    • Opening FTP session to IP 10.12.0.48...
    • Processing Action on Deploy VIs...
    • Setting target scan rate to 10000 (uSec)... Done.
    • Gathering target dependency files...
    • Downloading testChassis.nivssdf [92 kB] (file 1 of 4)
    • Downloading testChassis_Controller.nivsdat [204 kB] (file 2 of 4)
    • Downloading CalibrationData.nivscal [0 kB] (file 3 of 4)
    • Downloading testChassis_Controller.nivsparam [0 kB] (file 4 of 4)
    • Closing FTP session...
    • Files successfully deployed to the targets.
    • Starting deployment group 1...
    The VeriStand Gateway encountered an error while deploying the System Definition file.
    Details:
    Error -66212 occurred at Project Window.lvlibroject Window.vi >> Project Window.lvlib:Command Loop.vi >> NI_VS Workspace ExecutionAPI.lvlib:NI VeriStand - Connect to System.vi
    Possible reason(s):
    LabVIEW: The data type of the reference does not match the data type of the variable.
    =========================
    NI VeriStand: NI VeriStand Engine.lvlib:VeriStand Engine Wrapper (RT).vi >> NI VeriStand Engine.lvlib:VeriStand Engine.vi >> NI VeriStand Engine.lvlib:VeriStand Engine State Machine.vi >> NI VeriStand Engine.lvlib:Initialize Inline Custom Devices.vi >> Custom Devices Storage.lvlib:Initialize Device (HW Interface).vi
    • Sending reset command to all targets...
    • Stopping TCP loops.
    Waiting for TCP loops to shut down...
    • TCP loops shut down successfully.
    • Unloading System Definition file...
    • Connection with target Controller has been lost.

    Can you deploy if you only have the two 9401 modules in the chassis (no other modules) and in the sysdef?  I meant to ask if you could attach your system definition file to the forum post so we can see it as well (sorry for the confusion).  
    Are you using any of the specialty configurations for the 9401 modules? (ex: counter, PWM, quadrature, etc)
    You will probably want to post this on the support page for the Scan Engine/EtherCAT Custom Device: https://decibel.ni.com/content/thread/8671  
    Custom devices aren't officially supported by NI, so technical questions and issues are handled on the above page.
    Kevin W.
    Applications Engineer
    National Instruments

  • Why does something as simple as the date on my computer being wrong cause firefox to not allow me to open any websites?

    I saw others have this problem a few times...and people are trying to have them do all kinds of stuff to fix it. This is one of my errors:
    This Connection is Untrusted
    You have asked Firefox to connect securely to www.facebook.com, but we can't confirm that your connection is secure.
    Does that for everything. And sometimes it has a double confirmation to go to the site anyway. Other times it will not let you go to a site no matter what.
    So I came here and I realized what it was on my own after reading some complicated fixes people suggested to others who posted this problem.
    Look at the date...not on your phone...on the computer with the problem.
    So you guys may wanna make part of the warning message mention to make sure the date is correct on your computer. Also you would think a program connected to the internet with access to the correct time would not go by the computers clock. Or maybe you should make it verify the date online when this error occurs so the error message could tell the user what's wrong...or at least let him go to a website. Or maybe not even scare the user with a totally bogus security warning.

    I know I said I figured it out it's just stupid and I wanted others to see the easy solution. So my computers date was 2009 and a current 2014 security certificate was ruled unsafe by firefox. That's logic for ya. Maybe only consider the cert expired when it's PAST the expiration date. You know like read the definition of expired. I think they have it backwards.

  • SelectOneMenu does not show the data from the backing bean

    Here is my code:
    <!--
    Fetch the source directory
    -->
    <h:inputText id="dir"
    value="#{myBean.sourceDirectory}"/>
    <!--
    Click this button to refresh the sub-directories list below
    -->
    <h:commandButton value="fetch"
    actionListener="#{myBean.processFetch}" />
    <!--
    Show the list of sub-directories in the directory entered above as a drop
    down
    -->
    <h:selectOneMenu value="#{myBean.selection}">
    <f:selectItems value="#{myBean.dirs}"/>
    </h:selectOneMenu>
    public class MyBean{
    private String sourceDirectory;
    private ArrayList<SelectItem> dirs;
    public String getSourceDirectory(){
    return sourceDirectory;
    public void setSourceDirectory(String newDir){
    this.sourceDirectory = newDir;
    public ArrayList<SelectItem> getDirs(){
    return dirs;
    public void setDirs(ArrayList<SelectItem> newDirs){
    this.dirs = newDirs;
    public void processFetch(ActionEvent e){
    //For this example, we return some hard coded values
    dirs = new ArrayList<SelectItem>();
    SelectItem s1 = new SelectItem();
    s1.setLabel(sourceDir + "_1");
    SelectItem s2 = new SelectItem();
    s2.setLabel(sourceDir + "_2");
    SelectItem s3 = new SelectItem();
    s3.setLabel(sourceDir + "_3");
    SelectItem s4 = new SelectItem();
    s4.setLabel(sourceDir + "_4");
    dirs.add(s1);
    dirs.add(s2);
    dirs.add(s3);
    dirs.add(s4);
    When I run the above code, I notice that the first time, (and the only time), if I hit the "fetch" button the data in the drop-down menu does get refreshed.
    Subsequently, it does not change. I am not sure what I am doing wrong.
    Can someone help me?

    Hi,
    In order to use the JDBC persistence store you have to use a non XA JDBC driver for your Data Source.
    http://docs.oracle.com/cd/E23943_01/web.1111/e13701/store.htm#CNFGD221
    Point-13). When configuring a connection pool to use with WebLogic JMS JDBC Store, use non-XA database drivers.
    http://middlewaremagic.com/weblogic/?p=586
    Hope it helps

  • I just bought a new desktop and will be taking my old one to the apple store tomorrow to have the data transferred. Does the transfer include the transfer of programs or just data?

    I just bought a new desktop and will be taking my old one to the apple store tomorrow to have the data transferred. Does the transfer include the transfer of programs or just data?

    They will simply use Migration Assistant to transfer your Home folder, third-party applications and support files, and system preferences. This is something you could do yourself. You would need a Firewire cable to connect between your old computer and your new one. Migration Assistant is installed in the Utilities folder of your new computer.
    See Transferring files between two computers using FireWire and How to use Migration Assistant to transfer files from another Mac.

  • Exactly what does the Data Drop-down List do?

    What does the Data Drop-down List do? Is it used to make a drop-down list from certain records in a column in a table of a data base?

    Yes, this is exactly what it does. However, it's a custom control, not a built-in control. JavaScript is used to set it up. In order to use it you have to have a data connection in the document and modify the "Initialize" script, which is were the list is populated from the DB. The "Initialize" code is a good example of how to use XFA JavaScript to access a DB. However, the code is also written in a very general manor and takes the long way around to hooking up to the DB. Much shorter code can be written for a specific DB.
    Thom Parker
    WindJack Solutions
    www.windjack.com

Maybe you are looking for