Problem reading dates into numbers

I suspect I am missing something very obvious but I am trying to read a spreadsheet with dates in the first column  into Numbers 3.0.1 in Mavericks. The original file was in xls format and the dates are imported as numbers (e.g. todays date - 31st Dec 2013 appears as 41639). The spreadsheet was created with Libreoffice but the dates are fine if I read the xls file into preview or google docs.  I have tried reformatting the column into date format but nothing happens. Any ideas?

Check to see if any columns are hidden by opening the contextual menu for any column:

Similar Messages

  • Urgent help on reading data into ByteBuffer

    Hi,
    I am trying to read data into ByteBuffer using SocketChannel.
    The following code working fine but the problem is with ByteBuffer size.
    The data varies from request to request .
    How do I read data into ByteBuffer with out specifing size .
    The problem with size is some records has more than 500 bytes and some are less than 500 bytes.
    I want to read all the data .. ( even if it has more than 500 bytes ..)
    How do i solve this problem ..
    Is there any way to read data dynamically from socket channel ...
    Any help on this please ...
    The data I have to read is in the following format ..
    XXX ... yyyyy
    AAA
    BBBBBBBBBBBBBBBBBBBBBB
    CCCCCCCCCCCCCCCCCCCC
    DDDDDDDDDDDDDDDDDDDDDDd
    etc ...
    Here is my Code:
    public ByteBuffer getResponse(byte[] request) throws Exception {
    int lenth = 500;
    InetSocketAddress isa = new InetSocketAddress("ip", port);
    SocketChannel channel = SocketChannel.open(isa);
    ByteBuffer requestBuffer = ByteBuffer.wrap(request);
    channel.write(requestBuffer);
    ByteBuffer responseByteBuffer = ByteBuffer.allocate(length);
    int num = 0;
    while (num == 0 ) {
    responseByteBuffer.rewind();
    num = channel.read(responseByteBuffer);
    channel.close();
    return responseByteBuffer;
    Thanks.

    Two possible solutions
    1. Read in as many bytes as you can until you hit the EOS OR you fill the byte buffer. If you fill the buffer (try checking for BufferUnderFlowException), you could move the read bytes into a dynamically allocated memory Collection such as an ArrayList. When you hit the EOF, you could then do whatever else you need to do from then on.
    2. I use this option: Implement a site local protocol for transmitting data. Provide a header first containing 2 ints (compressed size, uncompressed size - so you can also use compression when sending), and send the remainder as a payload.
    Therefore
    Read in the header first (always 8 bytes)
    Then extract those integer values. They will tell you how much is being sent. Set you byte buffer for the payload to be the correct size for this transmission.
    Reset and wait for next connection

  • Cannot insert date into numbers 3.1 using ctl shift d

    can no longer insert date into numbers 3.1 using control shift d

    Hi Gerald,
    If you are inserting the current date a lot, and want a simple keyboard combination to do it rather than fiddling with formulas in Numbers, here is an easy way that takes advantage of some neat functionality built into every Mac that is much easier than it sounds.  It requires the investment of just a few minutes of time to make a one-time setup of an "Automator service."  Thereafter inserting a date is just a menu pick or keyboard combination.
    1. Open Automator (in your applications folder) and choose Service as document type:
    2. Drag 'Run AppleScript' action from the left over into the right pane:
    3. Copy the following script and paste it into the right pane (replacing all of the default text in the pane):
    on run
              set date_ to ((current date) as string)
      set the clipboard to the date_
              tell application "Numbers"
      activate
                        tell application "System Events"
      keystroke "v" using {option down, shift down, command down}
                        end tell
              end tell
    end run
    4. At the top of the right pane choose 'no input' for 'Service receives' and 'Numbers.app' for 'in'. (On my machine I have the old Numbers renamed to Numbers09 so the script doesn't get confused).
    After you click the hammer icon (to "compile") your right panel should now look like this:
    5. Name the service "Today" or similar and move it to the Library > Services folder. (If it doesn't save automatically to that location you can File > Export in Automator, choose the 'Desktop' for 'Where', then in Finder open a new window and hold down the option key and choose Go > Library > Services, and drag Today.workflow from the Desktop into that folder.)
    That's it. The service is ready to go. Thereafter, whenever you want to insert the current date, just pick Today from the Services menu:
    6. Or, to make this even easier to access, choose Services Preferences and assign a keyboard shortcut to the service:
    SG
    Troubleshooting notes:
    This should "just work." But if it doesn't for some reason, try one or more of the following:
    - Rename the old Numbers (the one in the iWork '09 folder under Applications) to Numbers09 or similar.
    - Check to make sure you aren't using the same keyboard shortcut for something else.
    - Remove 'Day of the week' from your "Full" date format in System Preferences > Language & Region.
    - Try revising permissions under System Preferences > Security & Privacy > Accessibility > Privacy.

  • Problem reading data from oracle database 11g using OleDbDataReader

    Hi everyone I work with Visual Studio 2010 and C# programming language. I have a problem reading data from the oracle database. I created a WPF application with my main Window Xaml and class files and 1 more class called DataFiles. The thing I want is to read some data from the database on my grid in my WPF window. Problem is even though it connects to the database the grid is always empty. It isn't the connection string as I tested it and it connects to the database the problem seems to be in showing the LASTNAME (PREZIME in my native tongue) on the grid which is what it's supposed to do.
    Here is the code:
    Data Files Code
    using System;
    using System.Collections.ObjectModel;
    using System.Data.SqlClient;
    using System.Data.OleDb;
    namespace SQLKonekcija
        public class clsEmployee
            public string Prezime { get; set; }
        public class DataAccess
            OleDbConnection oleCon;
            OleDbCommand oleComd;
            public DataAccess()
                string connectionString = "provider=ORAOLEDB.ORACLE; data source=ORCL; password=****; user id=****;";
                oleCon = new OleDbConnection(connectionString);
            public ObservableCollection<clsEmployee> GetAllEmployee()
                ObservableCollection<clsEmployee> EmpCol = new ObservableCollection<clsEmployee>();
                oleComd = new OleDbCommand();
                oleComd.Connection = oleCon;
                oleComd.CommandText = "Select PREZIME from UPOSLENICI";
                oleCon.Open();
                OleDbDataReader Reader = oleComd.ExecuteReader();
                Reader.Read();
                while (Reader.Read())
                    EmpCol.Add(new clsEmployee()
                        Prezime = Reader["PREZIME"].ToString()
                oleCon.Close();
                return EmpCol;
            }And here is my main window.cs code
    public partial class MainWindow : Window
            clsEmployee objEmpToAdd;
            DataAccess objDs;
            public MainWindow()
                InitializeComponent();
            private void Window_Loaded(object sender, RoutedEventArgs e)
                objDs = new DataAccess();
                dgEmp.ItemsSource = objDs.GetAllEmployee();And the XAML
    <Window x:Class="SQLKonekcija.MainWindow"
            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            Title="MainWindow" Height="350" Width="525" Loaded="Window_Loaded">
        <Grid>
            <DataGrid AutoGenerateColumns="False" Height="237"
                      HorizontalAlignment="Left" Margin="18,66,0,0" Name="dgEmp"
                      VerticalAlignment="Top" Width="466" ColumnWidth="*"
                       >
                <DataGrid.Columns>
                    <DataGridTextColumn Binding="{Binding PREZIME}" Header="Prezime"></DataGridTextColumn>
                </DataGrid.Columns>
            </DataGrid>
            <TextBlock Height="42" HorizontalAlignment="Left" Margin="18,15,0,0" Name="textBlock1" Text="TEST CONNECTION" VerticalAlignment="Top" Width="462" TextAlignment="Center" FontSize="28" FontWeight="ExtraBold" />
        </Grid>
    </Window>
    The guys on the MSDN forums told me I should ask the question here so sorry if it's not your field.
    Hope u guys can help, thanks.

    I tried it, commented out the reader.read and have the following connection string
    string connectionString = "provider=ORAOLEDB.ORACLE; data source=ORCL; password=****; user id=****; OLEDB.NET=True"
    Unfortunately the result is the same.
    Edited by: Dino2dy on Nov 24, 2011 12:53 AM

  • JavaConsole Error: Problem reading data from server

    HI All
    We are getting this error on java console on a page:
      Error: Problem reading data from Server - Java.Security.AccessControlException:access denied (java.util.PropertyPermission http.strictpostredirect Read)
    In this page we are not firing  a SQL Query of huge data.
    Any suggestions on this why it is happening?
    Thanks
    Manisha

    Manisha,
    I think JVM(Java Virtual Machine) is trying to access something at network level and it cant able to find it.Or any new patches of java is installed.
    Or may be due to IIS or Applet,Don't know exactly.
    You can find some answers in below links:
    http://java.sun.com/j2se/1.4.2/docs/api/java/security/AccessControlException.html
    http://www.webdeveloper.com/forum/archive/index.php/t-46358.html
    -Suresh

  • How do I convert an exported excel document to numbers? I am able to get the data into numbers but I can't read it.

    I am trying to get an excel document I exported from Wufoo into numbers on my mac. It works but I cannot read the data.

    I got it to work!! Just had to select Commas (.csv) instead of excel for the export. What happened before was that I chose .xls to export the data and when I tried to open the file in Numbers, it showed an error.
    Import Warning - This is a tab delimited document, not a valid Excel document. The data might look different.
    the data was all symbols etc..
    Thanks for replying to my question!

  • Import data into Numbers from web?

    Is there a way to import data from the internet directly into Numbers without programming/writing an applescript or using a different program?
    Can you do this while using only Numbers and the web?

    And how is Numbers to know how to extract the exact data you want from an external source, unless that source is in a format familiar to Numbers, which HTML isn't? For an automated process like this, you will need scripting, and that means learning to program/understand scripts.
    For example, here's some HTML code from a web page that includes volume data for one symbol:
    <td class="mbi_left" align="left" width="35%">BM&FBOVESPA SA</td><td align="right" width="10%">12.37</td><td align="right" width="10%">0.22</td><td align="right" width="10%">1.81</td><td align="right" width="20%">11,611,700</td><td align="right" width="15%">09/18</td>
    Numbers can't interpret this without being told exactly what to extract. Also, Numbers doesn't go out to the web on its own at fixed intervals (as I suspect you may want) without a program telling it what to do. This is just a spreadsheet after all.

  • How to get SEC data into numbers??

    I am trying to get the SEC data into a .csv file so that I can play with it in a numbers. A few years ago the program thumbval (thumbnail evalu-a-tor) did a pretty good job, but it used web queries, which broke over time, as the pages it referenced changed.
    What I would like to do is simply get the data from the SEC, and CUT AND PASTE it into numbers, but this is difficult, as it is improperly formatted and just gets placed in a single cell. grrrrr
    Any suggestions? Morningstar has 'watered down' financial statements in table form. My broker (BMO investorline) provides .csv files, but they contain only summary data - for instance the quarterly income for BWLD is just a few lines, and contains none of the detail breakdown found in the SEC reports.
    The data exists. It is plastered all over the financial world, surely getting it into a spreadsheet ready format has been done to death, but I am going crazy trying to figure this one out.

    Hello
    As I don't know from where where grabbed your datas, I can't make tests.
    May you copy a block of datas from the web page then paste into a Pages document.
    After that activate the "Show hidden chars" tool.
    You will see which character is used as a separator.
    You may also attach the Pages doc (after zipping it) to a mail and send it to:
    koenig PERIOD yvan AT tele2 PERIOD fr
    I will be able to look at the datas's contents.
    I met several cases.
    - 1 - values separated by TABs and they may be pasted as is.
    - 2 - values separated by Returns. They can't be pasted as is. I posted a script to deal with this case. But often this one is linked to Safari. Entering the Web page with Firefox gave a TAB separated values block
    - 3 - values separated by spaces. In this case, it is difficult to get a correct result.
    I posted a script able to deal with this case because most of the values where numbers so I was able to replace every occurence of (digit + space) by (digit + TAB) and every occurence of (space + digit) by (TAB + digit).
    Yvan KOENIG (from FRANCE lundi 31 décembre 2007 18:17:9)

  • Problem reading DATASET into xstring

    Hi,
    I am facing a curious problem where I'd appreciate a helping hand: when I read data from a dataset into a variable of fixed-length, everything works fine. When I try to do the same with a variable-length type, nothing is read.
    This code works fine:
    <i>DATA binarydata(32000) TYPE x,
         alen TYPE i.
    OPEN DATASET filename FOR INPUT IN BINARY MODE.
    READ DATASET filename INTO binarydata ACTUAL LENGTH alen.</i>
    Here alen contains the correct number of bytes read (eg. 19000).
    But if I try:
    <i>DATA binarydata TYPE xstring,
         alen TYPE i.
    OPEN DATASET filename FOR INPUT IN BINARY MODE.
    READ DATASET filename INTO binarydata ACTUAL LENGTH alen.
    </i>
    Here alen is 0.
    Can anybody tell me what's wrong here ?
    Thanks & Regards
    Heiko

    Hello Heiko
       If you are using NON-UNICODE system, please try by unselecting the checkbox "Unicode Checks Active" in program attributes.
       While using UNICODE system, need to use as STRING.
    Reason:
    In UNICODE enabled or when Unicode Checks is active, system can transfer data between structures only when both are of characater format.
    In your case, the data is read in text mode i.e character format but trying to move to XSRTING which is sequence of 'X' type characters. Hence resulting in dump.
    Just for your info:
    <b>The elementary data type STRING is similar to data type C and refers to a variable-length string. Accordingly, the elementary data type XSTRING is similar to data type X and refers to a variable-length byte sequence.</b>
       Hope the above info clarifies you.
    Kind Regards
    Eswar

  • Problem reading data from two tables

    Hi experts,
    I'm developing a JDBC - IDOC scenario that needs to read data from two oracle tables. I have created a BPM that has a initial fork for the two channels and it works fine.
    The problem is that I need to read data from the first, two or both tables depending if there is data to read. If there is data in the two tables it works, but if only there is data in one of the two tables, I have read problems. I have tryed to set the 'neccesary branches' to 1 but this is a problem when I have data in both tables.
    Any idea?
    Best Regards,
    Alfredo Lagunar.

    Hi,
    have your fork step inside a block and then right-click your block to insert a deadline branch to your BPM process and specify the time after which your BPM process should be cancelled.....so if in that time, you get data from both tables, your BPM will work okay otherwise if that time is over, then your BPM process will be cancelled.
    Regards,
    Rajeev Gupta

  • HOW TO CONVERT DATE INTO NUMBERS

    HI,
    what the syntax for converting date into No. Ex from the first date of the month till current date how many days are there, this No of days needs to be divided by the net sale of the month.
    i have searched in formulas fields but i am not able to find such option...
    please help.
    Thanking you,
    UMAR NAYAB.

    Hi,
    Stratos and Sastry
    the formula given by you shows the variation for the current month of suppose 30 days
    but if the month is of 31 days or 28 days (feb) how will the system will able to generate the report accordingly.
    i want to make a report in which it should show the net sales by the current month and current date.
    so the system should automated by the number of days in a month.
    thanking you..
    UMAR NAYAB.

  • Reading Data into a PDF form with cfpdfform and cfpdfformparam

    I have been trying to read data from a query into a PDF form. I have the application setup to generate a new pdf file for every record in the database table which is working perfectly, but when I try to have the application pre-populate the form fields in the pdf form they remain empty. I have included a snippet of the code that creates the PDF documents. I am using Adobe LiveCycle Designer 8.0 to create the PDF form.
    Snippet Example:
    <cfoutput query="renewals">
    <cfset new_file = "#reportnumber#.pdf" />
    <cfpdfform action = "populate" source = "beta.pdf" destination = "#new_file#">
      <cfpdfformparam name="Legal_Contact_Name" value="#LegalContactName#">
    </cfpdfform>
    <cfpdf action = "write" source = "#new_file#" destination = "#new_file#" flatten = "yes" overwrite  = "yes" />
    </cfoutput>
    All help is greatly appreciated...

    I'm just glad I might be of any help.
    First, make sure the image is embeded as a base64 encoded string in the xml structure you're working with on your form you've built in LiveCycle Designer.
    I do this by reading the image file and outputing its content as a base64 string:
    <cffile action="read" file="#expandPath('Path/to/your/image/file/BC.TIF')#" variable="imgObj" />
    <img>#toBase64(imgObj)#</img>
    Your PDF form should be bound to this 'img' field from your xml structure in LiveCycle Designer.
    This works perfectly and the image from the xml is indeed displayed in the PDF form generated with cfpdf.
    BUT, from the moment you convert the pdf form to static pdf document, the image will be gone - the dynamic text remains.
    Note:  I never further investigated why the image disapears once the pdf form is converted to 'static' pdf.  Thinking about it now, it might have been an incoding issue.  The toBase64() function in ColdFusion has an optional "Encoding" argument, may be by playing with the encoding the image might finally 'survive' the conversion to static pdf.
    Good luck.
    note: this will populate the pdf form from your xml structure in ColdFusion.
    <cfpdfform action="populate" source="/path/to/LiveCycle_generated_templateForm.pdf" xmldata="#your_xml_structure#" destination="/path/to/result.pdf" overwrite="yes" />

  • Problem inserting data into database (increment problem)

    I have a servlet page that gets various data from a bean and executes multiple SQL statements to store this data. Beacuase i want to insert data into a number of tables that are related with a one to many relationship I am not using the auto increment function in mySQL. Instead i have created a counter bean that increments each time the servlet is involked. I am using this counter to set the primary key ID in the quesiton table that i insert data into and I am alos inserting it into another table as a foreign key which relates a number or records in the outcomes table to one record in the question table. I am havin a few problems getting it to work.
    Firstly the bean counter works but when the tomcat server is shutdown the counter is reset which will cause conflicts in the database no doubt and secondly even though i have not shut my server down i seem to be getting the following error saying there is a duplicate key even though there is no data in the database.
    Here is the exception.
    javax.servlet.ServletException: Duplicate entry '4' for key 1     org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)     org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
    org.apache.jsp.authoring.question_005fmanager.process_005fquestion_jsp._jspService(process_005fquestion_jsp.java:469)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.sql.SQLException: Duplicate entry '4' for key 1
    com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2851)
    com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1531)     com.mysql.jdbc.ServerPreparedStatement.serverExecute(ServerPreparedStatement.java:1366)     com.mysql.jdbc.ServerPreparedStatement.executeInternal(ServerPreparedStatement.java:952)     com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1974)     com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1897)     com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1758)     org.apache.jsp.authoring.question_005fmanager.process_005fquestion_jsp._jspService(process_005fquestion_jsp.java:140)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    My code is here
    // gets the feedback string parameters
         if(request.getParameterValues("feedbackBox") != null)
                   String[] feedbackList = request.getParameterValues("feedbackBox");
                   questionData.feedback = feedbackList;
         //gets the session username variable
         String insertQuestion1__username = null;
         if(session.getValue("MM_Username") != null){ insertQuestion1__username = (String)session.getValue("MM_Username");}
         //Creates a new mySQL date
         java.sql.Date currentDate = new java.sql.Date((new java.util.Date()).getTime());
         //goes thorugh each element of the scores array and calculates maxScore 
         questionData.maxScore = 0;
         for (int i = 0; i < questionData.scores.length; i++) {
                   questionData.maxScore = questionData.maxScore + questionData.scores;
         //increments count;
         synchronized(page) {
    appCounter.increaseCount();
         int counter = appCounter.count;
         Driver DriverinsertQuestion = (Driver)Class.forName(MM_connQuestion_DRIVER).newInstance();
         Connection ConninsertQuestion1 = DriverManager.getConnection(MM_connQuestion_STRING,MM_connQuestion_USERNAME,MM_connQuestion_PASSWORD);
         questionData.numOutcomes = questionData.choices.length;
         while (counter != 0)
              int questionID = counter;
              PreparedStatement insertQuestion1 = ConninsertQuestion1.prepareStatement("INSERT INTO Question.question (Question_ID, Topic_ID, Description, Image, Author, Created_Date, Max_Score, Question_Type) VALUES (" + questionID + ", '" + questionData.topicID + "', '" + questionData.questionText + "', '" + questionData.questionImage + "', '" insertQuestion1__username "', '" + currentDate + "', " + questionData.maxScore + ", '" + questionData.questionType + "') ");
              insertQuestion1.executeUpdate();          
         Driver DriverinsertQuestion2 = (Driver)Class.forName(MM_connAnswer_DRIVER).newInstance();
         Connection ConninsertQuestion2 = DriverManager.getConnection(MM_connAnswer_STRING,MM_connAnswer_USERNAME,MM_connAnswer_PASSWORD);
         PreparedStatement insertQuestion2 = ConninsertQuestion2.prepareStatement("INSERT INTO Answer.question (Question_ID, Question_Description, Question_Type, Topic, Number_Outcomes, Question_Wording) VALUES ('" counter "', '" questionData.questionLabel "', '" questionData.questionType "', '" questionData.questionType "', '" questionData.topicID "', '" questionData.numOutcomes "', '" questionData.questionText "' ) ");
         insertQuestion2.executeUpdate();
         Driver DriverinsertOutcomes = (Driver)Class.forName(MM_connAnswer_DRIVER).newInstance();
         Connection ConninsertOutcomes = DriverManager.getConnection(MM_connAnswer_STRING,MM_connAnswer_USERNAME,MM_connAnswer_PASSWORD);
         for (int i=0; i < questionData.numOutcomes; i ++)
         PreparedStatement insertOutcomes = ConninsertOutcomes.prepareStatement("INSERT INTO Answer.outcome (Question_ID, Outcome_Number, Outcome_Text, Score, Feedback) VALUES ( '" counter "', '" i "', '" +questionData.choices[i]+ "', '" +questionData.scores[i]+ "', '" +questionData.feedback[i]+ "' ) ");
         insertOutcomes.executeUpdate();
    Does anyone know where i am going wrong or how to fix this problem. I would like to know wheter i am doing this the right way. Is thjis the most practical way to use a counter bean or is there a better safer way to do it.
    Suggestions would be mcuh appreciated
    Thanks

    hi Narendran,
        i declared itab as follows
    DATA:      tb_final TYPE STANDARD TABLE OF ztable,
                       wa_final TYPE ztable.    "work area
    i am populating tb_final as follows:
                 wa_final-vkorg = wa_ycostctr_kunwe-vkorg.
                  wa_final-vtweg = wa_ycostctr_kunwe-vtweg.
                  wa_final-spart = wa_ycostctr_kunwe-spart.
                  wa_final-kunwe = wa_ycostctr_kunwe-kunwe.
                  wa_final-kondm = wa_ycostctr_kunwe-kondm.
                  wa_final-kschl = wa_ycostctr_2-kschl.
                  wa_final-hkont = wa_ycostctr_2-saknr.
                  wa_final-kostl = wa_ycostctr_kunwe-kostl.
            APPEND wa_final TO tb_final.
                  CLEAR wa_final.
    here i am not populating Mandt field.
    finally in tb_final am not getting the proper data .
    kindly help me.
    Thanks,
    Praveena

  • Problem inserting date into MS SQL Server

    I am trying insert date into MS SQL Server database. First I used Statement and when I insert the date only date used to be inserted properly and the time used to be always 12:00:00 AM. I tried PreparedStatement and when I insert I get an error message:
    SQL Error: [Microsoft][ODBC SQL Server Driver]Optional feature not implemented
    I have attached the code.
    GregorianCalendar cal = new GregorianCalendar();
    java.util.Date dtm = (java.util.Date)cal.getTime();
    SimpleDateFormat formatOb = new SimpleDateFormat("dd/MM/yy hh:mm:ss");
    String date= (String)formatOb.format(dtm);
    dateCreated = new java.sql.Date(formatOb.parse(date).getTime());
    PreparedStatement psmt = con.prepareStatement("INSERT INTO Resume (ResumeName, Summary, Skills, OtherInformation, Interests, Memberships, Languages, Category, DateCreated, SupervisorName) VALUES(?,?,?,?,?,?,?,?,?,?)");
    psmt.setString(1, name);
    psmt.setString(2, summary);
    psmt.setString(3, skills);
    psmt.setString(4, info);
    psmt.setString(5, interest);
    psmt.setString(6, member);
    psmt.setString(7, language);
    psmt.setString(8, category);
    psmt.setDate(9, dateCreated);
    psmt.setString(10, loginName);
    psmt.executeUpdate();
    Any suggestions will be really helpful.

    Thanks,
    I changed the field in the database of DateCreated to timestamp, but when I insert the some binary data is inserted into the database. something like 0000000000000017D.
    I installed jtds-0.8.1 driver from source forge. but when try to connect to the database I get an error as:
    Connection refused: connect
    Error: Connection refused: connect
    I have attached the code for setting the driver and url also.
    private String driver = "net.sourceforge.jtds.jdbc.Driver";
    private String url = "jdbc:jtds:sqlserver://TEKKATTE:1433/placement;TDS=7.0";

  • What is the formula for automatically entering todays date into Numbers.  In Quattro, it was '@today', but I cannot find it in numbers.  Thx

    What is the formula to automatically enter 'current date' into spreadsheet?  In Quattro, it was '@today', but I cannot find it in the Numbers spreadsheet.  Thx

    201,
    Do you want it to update or always show the date when entered?
    For updates, use the TODAY() function.
    For a static date, use Insert > Date and Time.
    Regards,
    Jerry

Maybe you are looking for

  • Oracle 8.06 and Windows XP Pro

    Is there possibility to install Oracle Client 8.06 in Windows XP Professional?

  • How to delete a site

    How can I to delete a site from Muse? I am not using Adobe catalyst.

  • Files in my pen drive somehow turned into .Ink files.

    Files in my pen drive somehow turned into .Ink files. They were working fine before that, and i only used my macbook. Did not copied any windows files and i didn't use a pc. How can i get my files back?

  • Moving files with Runtime exec of command

    Hello, I'm trying to make a file overwrite another. From command line this is easy, move /Y c:\\somedir\\somefile.txttmp c:\\somedir\\somefile.txt(assuming DOS) Trying to use String cmd = "move /Y c:\\somedir\\somefile.txttmp c:\\somedir\\somefile.tx

  • Oracle Concurrent Program Output

    I was tried to output concurrent report into HTMlL format, but it adds the tage <font="symbol">Field</font="symbol> between my data. So the output become some weird character. Does anyone experience similar problem? Thanks