Lost Milliseconds when getting timestamp from database

I store a timestamp in DB2 by formatting the current timestamp using the following format mask :
"yyyy-MM-dd-H.mm.ss.SSS". I query the database and the milliseconds are there. When I retrieve a resultset from the database and get the column using rs.getTimestamp(), I reformat it using the same formatting mask and LOSE all the milliseconds. I believe I'm losing the milliseconds when I execute the getTimestamp() method. What do I have to do to get the entire timestamp from the database, including the milliseconds?

I pulled this quote directly out of the jdk docs:
"If a time value that includes the fractional seconds is desired, you must convert nanos to milliseconds (nanos/1000000)"
the timestamp doesn't actually have a millisecond value. You can get it by calling the getNanos() function and /1000000.
you might be losing the millisecond value because there isn't a millisecond value, only nanoseconds.
good luck
Jamie

Similar Messages

  • In ADOBE BRIDGE CS6 "folder can not be created" appears when getting photos from camera

    Has anyone seen this when getting photos from camera in ADOBE BRIDGE CS6?
    "Folder cannot be created"

    I solved the problem myself.
    jwerth2

  • Error while getting  image from database in SUP using ios?

    Hi All,
      Im developing native iOS application using sup 2.1.3 . Im getting error While retrieving  image from SUP database. Here i'm trying to get image from database and show in imageView.can any one help me how to fix this issue?
    In database image datatype is  'LONG Binary' .
    My table Schema:
    CREATE TABLE dba.ImagesTable (
    RowID INT NOT NULL,
    ImageName VARCHAR(20) NOT NULL,
    PhotoData LONG BINARY NOT NULL,
    IN SYSTEM
    ALTER TABLE dba.ImagesTable
      ADD CONSTRAINT ASA137 PRIMARY KEY CLUSTERED (RowID)
    ALTER TABLE dba.ImagesTable
      ADD CONSTRAINT ASA138 UNIQUE NONCLUSTERED (RowID)
    in Xcode:
                [SUP107SUP107DB synchronize];
                SUP107ImagesTable *imgTable =[[SUP107ImagesTable alloc]init];
                SUP107ImagesTableList *list =[SUP107ImagesTable findAll];
                SUP107ImagesTable * oneRecord =[list objectAtIndex:0];
                NSLog(@"rowId:%d---imageName:%@---photoData:%@---photoLenght:%d",oneRecord.rowID,oneRecord.imageName,oneRecord.photoData,oneRecord.photoDataLength);
                NSData *tempData =[[NSData alloc]init];
                SUPBigBinary *responseBinaryData = (SUPBigBinary *)oneRecord.photoData.value;
                @try {
                    [responseBinaryData openForWrite:[oneRecord.photoData length]];
                    [responseBinaryData write:tempData];
                @catch (NSException *exception) {
                    NSLog(@"exception: %@",[exception description]);
                UIImageView *imgView =[[UIImageView alloc] initWithFrame:CGRectMake(50,50,100,100)];
                [self.window addSubview:imgView];
                UIImage * tempImage =[UIImage imageWithData:tempData];
                imgView.image = tempImage;
                [responseBinaryData close];
    Error Log:
    2014-04-02 18:42:15.150 SUP102[2873:70b] rowId:1---imageName:Apple---photoData:SUPBigBinary: column=c pending=1 allow_pending_state=1 table=sup107_1_0_imagestable mbo=0x0 key=(null) ---photoLenght:90656
    Printing description of responseBinaryData:
    <OS_dispatch_data: data[0xc891b40] = { leaf, size = 90656, buf = 0x1213a000 }>
    2014-04-02 18:42:33.304 SUP102[2873:70b] -[OS_dispatch_data openForWrite:]: unrecognized selector sent to instance 0xc891b40
    2014-04-02 18:42:33.305 SUP102[2873:70b] exception: -[OS_dispatch_data openForWrite:]: unrecognized selector sent to instance 0xc891b40
    2014-04-02 18:42:33.305 SUP102[2873:70b] -[OS_dispatch_data close]: unrecognized selector sent to instance 0xc891b40
    2014-04-02 18:42:33.306 SUP102[2873:70b] [ERROR] [AppDelegate.m:497] NSInvalidArgumentException: -[OS_dispatch_data close]: unrecognized selector sent to instance 0xc891b40

    This thread talks about uploading image to SAP from a IOS device,Sending Image to SAP via iOS Native app (SUP 2.1.3)
    Midhun VP

  • Receiver AS2 Adapter issue.....Failed to get configuration from DATABASE. S

    Hi,
    Iam doing prototyping for File -AS2 adapter and ended up with below erros.
    Error type: COMPONENT_ERROR >> Error date: 6/17/11 8:04 AM >> Description: AS2 Adapter failure Outbound configuration error: Failed to get configuration from DATABASE. Sender configuration incomplete - perhaps AS2ID missing.. com.seeburger.as2.AS2Plugin.execute(AS2Plugin.java:379) [6/17/11 8:04 AM]
    and
    Message processing failed. Cause: javax.resource.ResourceException: Fatal exception: javax.resource.ResourceException: SEEBURGER AS2: AS2 Adapter failure # Outbound configuration error: Failed to get configuration from DATABASE. Sender configuration incomplete - perhaps AS2ID missing.., SEEBURGER AS2: AS2 Adapter failure # Outbound configuration error: Failed to get configuration from DATABASE. Sender configuration incomplete - perhaps AS2ID missing..
    The setting i have made during configation are :
    1> Reciver Party with Agency,Schema and Name entered.
    2>Identifiers for both Sender and reciver channel fileld with values seeburger and AS2ID.
    3>Used Sender uses Virtual reciver in sender aggremnet.
    4> Reciever CC have modules localejbs/Seeburger/solution/as2 and localejbs/ModuleProcessorExitBean in sequence.
    Please provide solutions to overcome the issue.
    As this is prototyping, i have downloaded Free As2 client and trying to send files to that client from PI.

    Hi Dinesh,
    make sure to also configure a report channel (refer to the sample chapter in the SEEBURGER AS2 documentation) in order to receive AS2 MDNs for your sent message. Additionally report channels are needed if the SEEBURGER specific TransmissionReports are requested.
    Hope that helps
    Greetings
    -Sascha-

  • Freezes when gets back from suspend mode

    My 2010 MacMini freezes and show a black courtain sometimes. This happens when gets back from suspend mode. The RAM has passed a test memory and it hasn´t any problem.
    Please, sorry for my english.
    Regards from Spain.
    Mi MacMini de 2010 me muestra una cortinilla negra y me pide que lo reinicialice de vez en cuando. Le pasa cuando regresa de haber estado suspendido o con la pantalla en reposo. La memoria Ram ha pasado un test por si podía ser éste el problema.
    Saludos.

    Here you are:
    Sun May 27 10:12:14 2012
    panic(cpu 0 caller 0xffffff80002c473a): Kernel trap at 0xffffff7f819d9e67, type 13=general protection, registers:
    CR0: 0x000000008001003b, CR2: 0x000000000a157000, CR3: 0x000000017f555000, CR4: 0x0000000000000660
    RAX: 0xffffff80242c3d00, RBX: 0xffffff802a41d200, RCX: 0xffffff80242c3d00, RDX: 0x0000000000617577
    RSP: 0xffffff80e7c6bb58, RBP: 0xffffff80e7c6bb80, RSI: 0x0000000000000000, RDI: 0xffffff8012614000
    R8:  0x7c1e500000000001, R9:  0x00000000bb7c364d, R10: 0xfffffe800768aa68, R11: 0x00000000000626d9
    R12: 0x0000000000000028, R13: 0xffffff80242c3d00, R14: 0xffffff8018060880, R15: 0xffffff80242c3d00
    RFL: 0x0000000000010246, RIP: 0xffffff7f819d9e67, CS:  0x0000000000000008, SS:  0x0000000000000000
    CR2: 0x000000000a157000, Error code: 0x0000000000000000, Faulting CPU: 0x0
    Backtrace (CPU 0), Frame : Return Address
    0xffffff80e7c6b800 : 0xffffff8000220792
    0xffffff80e7c6b880 : 0xffffff80002c473a
    0xffffff80e7c6ba30 : 0xffffff80002da0cd
    0xffffff80e7c6ba50 : 0xffffff7f819d9e67
    0xffffff80e7c6bb80 : 0xffffff7f819da779
    0xffffff80e7c6bbd0 : 0xffffff800063abcb
    0xffffff80e7c6bc10 : 0xffffff7f819dae2d
    0xffffff80e7c6bc40 : 0xffffff800065609b
    0xffffff80e7c6bd80 : 0xffffff80002a3f08
    0xffffff80e7c6be80 : 0xffffff8000223096
    0xffffff80e7c6beb0 : 0xffffff80002148a9
    0xffffff80e7c6bf10 : 0xffffff800021bbd8
    0xffffff80e7c6bf70 : 0xffffff80002aef20
    0xffffff80e7c6bfb0 : 0xffffff80002daa33
          Kernel Extensions in backtrace:
             com.apple.driver.AudioAUUC(1.59)[8F634EA0-B0A8-3577-918F-B27A8CF8C6CE]@0xffffff 7f819d8000->0xffffff7f819dcfff
                dependency: com.apple.iokit.IOACPIFamily(1.4)[4A5A4624-7A52-3EA0-BB8D-5B265B086727]@0xfffff f7f812cd000
                dependency: com.apple.iokit.IOPCIFamily(2.6.8)[F63D4ABE-42DA-33EF-BADD-3415B0CB0179]@0xffff ff7f80866000
                dependency: com.apple.iokit.IOAudioFamily(1.8.6fc17)[0FAF6C3F-B92F-30EA-B97F-86A38119C67F]@ 0xffffff7f80eec000
                dependency: com.apple.iokit.IOGraphicsFamily(2.3.2)[2D2A4A31-EB4F-3730-BE3A-76C061685FC5]@0 xffffff7f808a0000
    BSD process name corresponding to current thread: iTunes
    Mac OS version:
    11E53
    Kernel version:
    Darwin Kernel Version 11.4.0: Mon Apr  9 19:32:15 PDT 2012; root:xnu-1699.26.8~1/RELEASE_X86_64
    Kernel UUID: XXXXXXXXXXXX
    System model name: Macmini4,1 (Mac-F2208EC8)
    System uptime in nanoseconds: 239987230897603
    last loaded kext at 279002290275: com.apple.filesystems.smbfs          1.7.2 (addr 0xffffff7f807d5000, size 241664)
    last unloaded kext at 250544845394: com.apple.driver.AppleMCP89RootPortPM          1.11 (addr 0xffffff7f81d93000, size 24576)
    loaded kexts:
    com.parallels.kext.prl_hid_hook          7.0 14920.689535
    com.parallels.kext.prl_hypervisor          7.0 14920.689535
    com.parallels.kext.prl_usb_connect          7.0 14920.689535
    com.parallels.kext.prl_vnic          7.0 14920.689535
    com.parallels.kext.prl_netbridge          7.0 14920.689535
    com.logmein.driver.LogMeInSoundDriver          1.0.0
    at.obdev.nke.LittleSnitch          2.4.0
    com.apple.filesystems.smbfs          1.7.2
    com.apple.driver.AppleHWSensor          1.9.5d0
    com.apple.driver.AppleBluetoothMultitouch          70.12
    com.apple.filesystems.autofs          3.0
    com.apple.driver.AudioAUUC          1.59
    com.apple.driver.ApplePlatformEnabler          2.0.5d2
    com.apple.driver.AGPM          100.12.42
    com.apple.driver.AppleHDA          2.2.0f3
    com.apple.driver.AppleMikeyHIDDriver          122
    com.apple.driver.AppleUpstreamUserClient          3.5.9
    com.apple.driver.AppleMCCSControl          1.0.26
    com.apple.GeForce          7.1.8
    com.apple.driver.AppleMikeyDriver          2.2.0f3
    com.apple.iokit.IOUserEthernet          1.0.0d1
    com.apple.iokit.IOBluetoothSerialManager          4.0.5f11
    com.apple.Dont_Steal_Mac_OS_X          7.0.0
    com.apple.driver.AudioIPCDriver          1.2.2
    com.apple.driver.AppleLPC          1.5.8
    com.apple.driver.ACPI_SMC_PlatformPlugin          5.0.0d0
    com.apple.driver.BroadcomUSBBluetoothHCIController          4.0.5f11
    com.apple.driver.AppleIRController          312
    com.apple.AppleFSCompression.AppleFSCompressionTypeDataless          1.0.0d1
    com.apple.AppleFSCompression.AppleFSCompressionTypeZlib          1.0.0d1
    com.apple.BootCache          33
    com.apple.iokit.SCSITaskUserClient          3.2.0
    com.apple.driver.XsanFilter          404
    com.apple.iokit.IOAHCISerialATAPI          2.0.3
    com.apple.iokit.IOAHCIBlockStorage          2.0.3
    com.apple.driver.AppleEFINVRAM          1.5.0
    com.apple.driver.AppleFWOHCI          4.8.9
    com.apple.driver.AppleUSBHub          4.5.0
    com.apple.driver.AppleSDXC          1.2.0
    com.apple.driver.AppleRTC          1.5
    com.apple.driver.AppleAHCIPort          2.3.0
    com.apple.driver.AppleUSBEHCI          4.5.8
    com.apple.iokit.AppleBCM5701Ethernet          3.1.2b2
    com.apple.driver.AirPort.Brcm4331          530.4.20
    com.apple.driver.AppleUSBOHCI          4.4.5
    com.apple.driver.AppleHPET          1.6
    com.apple.driver.AppleACPIButtons          1.5
    com.apple.driver.AppleSMBIOS          1.8
    com.apple.driver.AppleACPIEC          1.5
    com.apple.driver.AppleAPIC          1.5
    com.apple.driver.AppleIntelCPUPowerManagementClient          193.0.0
    com.apple.nke.applicationfirewall          3.2.30
    com.apple.security.quarantine          1.3
    com.apple.driver.AppleIntelCPUPowerManagement          193.0.0
    com.apple.driver.AppleBluetoothHIDKeyboard          160.7
    com.apple.driver.AppleHIDKeyboard          160.7
    com.apple.driver.AppleMultitouchDriver          231.4
    com.apple.driver.IOBluetoothHIDDriver          4.0.5f11
    com.apple.kext.triggers          1.0
    com.apple.driver.DspFuncLib          2.2.0f3
    com.apple.nvidia.nv50hal          7.1.8
    com.apple.NVDAResman          7.1.8
    com.apple.driver.AppleSMBusController          1.0.10d0
    com.apple.iokit.IOFireWireIP          2.2.4
    com.apple.driver.AppleHDAController          2.2.0f3
    com.apple.iokit.IOHDAFamily          2.2.0f3
    com.apple.iokit.IOSurface          80.0.2
    com.apple.iokit.IOSerialFamily          10.0.5
    com.apple.iokit.IOAudioFamily          1.8.6fc17
    com.apple.kext.OSvKernDSPLib          1.3
    com.apple.driver.ApplePolicyControl          3.0.16
    com.apple.driver.AppleGraphicsControl          3.0.16
    com.apple.iokit.IONDRVSupport          2.3.2
    com.apple.iokit.IOGraphicsFamily          2.3.2
    com.apple.driver.AppleSMC          3.1.3d8
    com.apple.driver.IOPlatformPluginLegacy          5.0.0d0
    com.apple.driver.IOPlatformPluginFamily          5.1.0d17
    com.apple.driver.AppleSMBusPCI          1.0.10d0
    com.apple.iokit.IOSCSIBlockCommandsDevice          3.2.0
    com.apple.iokit.IOUSBMassStorageClass          3.0.1
    com.apple.driver.AppleUSBBluetoothHCIController          4.0.5f11
    com.apple.iokit.IOBluetoothFamily          4.0.5f11
    com.apple.iokit.IOUSBHIDDriver          4.4.5
    com.apple.driver.AppleUSBComposite          4.5.8
    com.apple.iokit.IOSCSIMultimediaCommandsDevice          3.2.0
    com.apple.iokit.IOBDStorageFamily          1.6
    com.apple.iokit.IODVDStorageFamily          1.7
    com.apple.iokit.IOCDStorageFamily          1.7
    com.apple.iokit.IOSCSIArchitectureModelFamily          3.2.0
    com.apple.iokit.IOFireWireFamily          4.4.5
    com.apple.iokit.IOUSBUserClient          4.5.8
    com.apple.driver.AppleEFIRuntime          1.5.0
    com.apple.iokit.IOAHCIFamily          2.0.8
    com.apple.driver.NVSMU          2.2.9
    com.apple.iokit.IOEthernetAVBController          1.0.1b1
    com.apple.iokit.IO80211Family          420.3
    com.apple.iokit.IONetworkingFamily          2.1
    com.apple.iokit.IOUSBFamily          4.5.8
    com.apple.iokit.IOHIDFamily          1.7.1
    com.apple.iokit.IOSMBusFamily          1.1
    com.apple.security.sandbox          177.5
    com.apple.kext.AppleMatch          1.0.0d1
    com.apple.security.TMSafetyNet          7
    com.apple.driver.DiskImages          331.6
    com.apple.iokit.IOStorageFamily          1.7.1
    com.apple.driver.AppleKeyStore          28.18
    com.apple.driver.AppleACPIPlatform          1.5
    com.apple.iokit.IOPCIFamily          2.6.8
    com.apple.iokit.IOACPIFamily          1.4
    I hope this could help.
    Thank you!!!

  • Getting virtual memory error when fetching records from database

    HI,
    I am using Oracle as Database and the Oracle JDBC driver. I have simple code which is a select statement but the problem is the resultset dies while fetching the data i.e. 5,50,000. And it gives me the memory error as its storing all in the memory. One of the way which i have serched in the old threads is using the batch method fetching rows at a time but can you tell me how to implement in my code. I am pasting my code.
    The overall functionality of my code is that it's reterving data from database and generating an XML file that would be validated with a DTD.
    //My Code
    public class Invoicef3 implements ExtractF3 {
         final String queryString = "select * from hsbc_f3_statement
    order by bill_no, duplicate,
    invoice_address1,
    invoice_address2,
    invoice_address3,
    invoice_address4,
    invoice_address5,
    invoice_address6,
    main_section, order_1, page,
    section, product_category,
    sub_sect_1, order_2,
    sub_sect_2, child_product,
    sub_sect_3, account,
    line,entry_date, currency, tier";
         public ArrayList process() {
              Connection con = null;
              Statement stmt = null;
              ResultSet rset = null;
              ArrayList arr1 = null;
              try {
                   con =
    ConnectionManager.getConnection();
                   stmt = con.createStatement();
              rset = stmt.executeQuery(queryString);
                   arr1 = new ArrayList();
                   while (rset.next()) {
                        arr1.add(
                             new F3StatementExtract(
                                  rset.getString(1),
                                  rset.getInt(2),
                                  rset.getString(3),
                                  rset.getInt(4),
                                  rset.getInt(5),
                                  rset.getString(6),
                                  rset.getInt(7),
                                  rset.getString(8),
                                  rset.getInt(9),
                                  rset.getString(10),
                                  rset.getInt(11)));
                   rset.close();
                   stmt.close();
              } catch (SQLException e) {
                   e.printStackTrace();
              } finally {
                   ConnectionManager.close(rset);
                   ConnectionManager.close(stmt);
                   ConnectionManager.close(con);
              return arr1;
    }

    The problem is that you are fetching and processing all the rows for the query, which the VM cannot handle given the heap space available. The points you could think over are:
    * Allocate more heap memory (this would help only to a limited extent)
    * Try to process only a few records at a time instead of all of them (there is actually no need to process all the records at a time. Try processing records in lots of say 1000)
    * Avoid selecting all the columns [SELECT *] from the table, if all of them are not going to be used.
    There is a slight change i have done in the code is that i am using two quereies now one is fetching all the Bills and the secondquery is fetching all the data for the relevant BILL.
    //My Code
    public class Invoicef3 implements ExtractF3 {
         /*Query to get distinct bill numbers*/
         final String queryString1 =
              "select distinct(bill_no) from hsbc_print_bills";
         /*Query to get distinct bill numbers statement details*/
         final String queryString =
              "select * from hsbc_f3_statement where bill_no='";
         public ArrayList process() {
              Connection con = null;
              Statement stmt = null;
              ResultSet rset = null;
              ArrayList arr1 = null;
              ArrayList arr2 = null;
              try {
                   con = ConnectionManager.getConnection();
                   stmt = con.createStatement();
                   rset = stmt.executeQuery(queryString1);
                   arr1 = new ArrayList();
                   while (rset.next()) {
                        arr1.add(new F3BillExtract(rset.getString(1))); //generating the Bill_No's
                   System.out.print(arr1.size());
                   rset.close();
                   stmt.close();
                   for (int i = 0; i < arr1.size(); i++) {
                        stmt = con.createStatement();
                        rset =
                             stmt.executeQuery(
                                  queryString
                                       + (((F3BillExtract) arr1.get(i)).getBill_No())
                                       + "'");
                        arr2 = new ArrayList();
                        /*Fetching the statement Details of the particular Bill_No*/
                        while (rset.next()) {
                             arr2.add(
                                  new F3StatementExtract(
                                       rset.getString(1),
                                       rset.getInt(2),
                                       rset.getString(3),
                                       rset.getInt(4),
                                       rset.getInt(5),
                                       rset.getString(6),
                                       rset.getInt(7),
                                       rset.getString(8),
                                       rset.getInt(9),
                                       rset.getString(10),
                                       rset.getInt(11),
                                       rset.getString(12),
                                       rset.getFloat(13),
                                       rset.getDate(14),
                                       rset.getString(15),
                                       rset.getInt(16),
                                       rset.getString(17),
                                       rset.getString(18),
                                       rset.getString(19),
                                       rset.getString(20),
                                       rset.getString(21),
                                       rset.getString(22),
                                       rset.getString(23),
                                       rset.getString(24),
                                       rset.getString(25),
                                       rset.getString(26),
                                       rset.getString(27),
                                       rset.getString(28),
                                       rset.getString(29),
                                       rset.getString(30),
                                       rset.getDate(31),
                                       rset.getDate(32),
                                       rset.getDate(33),
                                       rset.getDate(34),
                                       rset.getString(35),
                                       rset.getString(36),
                                       rset.getString(37),
                                       rset.getString(38),
                                       rset.getString(39),
                                       rset.getString(40),
                                       rset.getFloat(41),
                                       rset.getFloat(42),
                                       rset.getFloat(43),
                                       rset.getInt(44),
                                       rset.getFloat(45),
                                       rset.getString(46),
                                       rset.getString(47)));
                        rset.close();
                        stmt.close();
                        ((F3BillExtract) arr1.get(i)).setArr(arr2);
              } catch (SQLException e) {
                   e.printStackTrace();
              } finally {
                   ConnectionManager.close(rset);
                   ConnectionManager.close(stmt);
                   ConnectionManager.close(con);
              return arr1;
    }

  • How to refresh the current page when retrieving data from database

    hi all
    in my application i want to navigate from different tables to different forms.  The data in the table and in the forms is comming fromthe database. when i select a navigation link to database of a form it is connecting to database.  so im manually refreshing the refresh button of I.E. which is big headache.  so is there any way to refresh my current table or form dynamically at run time to retrieve from database
    Thanks and regards
    khaja

    Hi,
      Refreshing a connection to Database means re establishing your connection each time.It will be load for the DB to load the data every time generally not advisable to do.
      Inorder to get the value from the DB you have load the driver and connect it using fireplug with the view for navigations.
      for the same refer this link.
    http://help.sap.com/saphelp_erp2004/helpdata/en/51/2c747ecd037842943bdb38be214719/frameset.htm
    Hope it helps.
    Rdgs,
    Guru

  • Help , How to get data from database using recordset with UI API

    I want to get a data from database
    when I want to create recordset i notice that UI API didn't has record set
    so I created recordset using DI API (SAPbobscom.recordset and SAPbobscom.company)
    ======================================================
    Dim oCompanyUI As SAPbouiCOM.Company <<UI API
    Dim oRecSet As New SAPbobsCOM.Recordset << DI API
    Dim oCompanyDI As New SAPbobsCOM.Company << DI API
    '=====================================================
    oCompanyDI.Connect
    Set oRecSet = oCompanyDI.GetBusinessObject(BoRecordset)
    oRecSet.DoQuery ("SELECT T0.CardCode, T0.CardName FROM OCRD T0")
    SBO_Application.MessageBox oRecSet.Fields.Item(1).Value
    ======================================================
    but I got an error it said "you are not connected to company"
    I'm really don't have an idea about how to get a data from using UI API (exp I want to get a date or costumer code)
    can someone help me please, I really need it
    Thanks

    you need a single sign on
            Dim oDICompany As SAPbobsCOM.Company
            Dim sCookie As String
            Dim sConnStr As String
            Dim ret As Integer
            oDICompany = New SAPbobsCOM.Company
            sCookie = oDICompany.GetContextCookie
            sConnStr = SBO_Application.Company.GetConnectionContext(sCookie)
            If oDICompany.Connected Then
                oDICompany.Disconnect()
            End If
            ret = oDICompany.SetSboLoginContext(sConnStr)
            If Not ret = 0 Then
                SBO_Application.MessageBox("set Login Context failed!")
                Exit Sub
            End If
            ret = oDICompany.Connect()
            If Not ret = 0 Then
                SBO_Application.MessageBox("Company Connect failed!")
            End If

  • When getting information from SLD, should SMSY create a system for EP?

    I've connected my EP NW2004s system ES3 to the SLD.  I connected Solution Manager 4.0 to SLD so that SMSY can get information from the SLD.  When I run the import, I see:
    1. ES3's server sapeps03 created under SMSY Landscape Component ->Server.
    2. ES3 's database ES3 created under SMSY Landscape Component-> Database.
    3.  ES3 Java component entry created under SMSY Landscape Component->System Components->Java System.
    BUT, I don't see an ES3 entry under SMSY Landscape Component->Systems->SAP Netweaver.  Shouldn't there be?  Do I have to create this manually?
    The ECC 5.0 system RS3 got created under SMSY Landscape Component->Systems->SAP ECC.   Why not the EP system?
    Thanks.
    Regards,
    Mel Calucin

    Hello Mel,
    the SMSY transaction had a lot of issues resolving the appropriate Java product with older versions of Solution Manager. For instance, you can take a look at the SAP Note 1392992.
    Newer versions of Solution Manager (currently on SP24) resolve most of the issues. The portal is certainly detected successfully.
    My recommendation would be having Solution Manager updated always with the latest Support Package stack available.
    All the best,
    Andreu

  • Forms 9i: How get image from database?

    Hi!
    I want to get a image (GIF,JPG, TIFF, etc.) that is stored in database table (as blob) in Image_Item (No Database Block) by Trigger (PL/SQL) way.
    In a Block that is database=yes It's OK, the Query do this in automatic.
    I know that "select column into block_item from db_table" is not possible.
    Thanks!

    I have a multi-row block for entry data, so was thinking in a image item (No Database) in the same block for show a GIF when the user entry one code; then I will not need any thing more for show the correct GIF in each row when the user scroll them.
    The other way, if I create one block-image_item for each row that is displaying; then I need create a Procedure por Syncronize the data row with the GIF; this mean a lot re-quering when the user is scrolling the rows. This is the reason I searching one Instruccion equivalent to read_image_file (but in place Operating System from database) or dbms_lob.read( ... ) but the target must be a block image item.
    Thanks.

  • Getting response from Database by sending in parameters

    Hi,
    I am providing parameter which supplies string values to query the database using adapter. I can see the invoke activity sending the string value to the database, but respnse message does not contain anthing.
    Can someone please tell me how to retrieve records from database by suplying parmeter value?
    Thank You
    Anil

    hi Anil,
    use a simple stored procedure or pl/sql function and specify the input and output parameters. We can send any no of parameters to a function and a function can able to return a value. so you can achieve your requirement using pl/sql functions. Learn about that more.
    when you will define ParterLink (using DBAdapter browing databse to select your function ), you shud be able to view one OUT parameter with datatype what you have mentioned earlier in pl/sql function. When you define Invoke for that Parterlink, you should get Invoke Output variable with output variable (having name of that function.)
    If you cannot browse the function in your DB Adapter, just make sure that the user you have defined in DB Adapter has enough privileges to access that function.
    Regards
    Rajesh A

  • How to get data from database to JComboBox

    hi
    i am trying to get data which is in database. here the problem is i am getting only one row in the JcomboBox
    i want all data just like list. i dont know how to get that . below is the code plz any one help me....
    import javax.swing.*;
    import javax.swing.JList.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.lang.String.*;
    import java.lang.Integer.*;
    import java.sql.*;
    public class customer_code extends JFrame implements ActionListener
    Container c=getContentPane();
    JLabel customer_code=new JLabel("Customer Code and Name");
    customer_code()
    super("Customer Details");
    setSize(300,250);
    setVisible(true);
    setLayout(null);
    setLocation(430,310);
    Font f=new Font("SansSerif",1,16);
    Font f1=new Font("SansSerif",0,14);
    customer_code.setBounds(10,20,250,30);
    add(customer_code);
    customer_code.setFont(f);
    ResultSet rs=null;
    String j=null,k=null;
    try
    System.out.println("MySQL Connect Example.");
    Statement st=null;
    Connection con=null;
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    con = DriverManager.getConnection("jdbc:odbc:project","vikky","vishu");
    System.out.println("Connected to the database");
    st=con.createStatement();
    rs=st.executeQuery(" select code as c,Customer_name as n from customer_details ");
    while(rs.next())
    j=rs.getString("c");
    k=rs.getString("n");
    System.out.println(j);
    System.out.println(k);
    String[] names = new String[] {j,k};
    JComboBox comboBox = new JComboBox(names);
    add(comboBox);
    comboBox.setBounds(25,60,250,50);
    comboBox.setFont(f);
    comboBox.addActionListener(this);
    comboBox.setMaximumRowCount(10);
    con.close();
    System.out.println("Disconnected from database");
    catch (Exception e)
    e.printStackTrace();
    public void actionPerformed(ActionEvent event)
    if ("comboBoxChanged".equals(event.getActionCommand()))
    System.out.println("User has selected an item from the combo box.");
    JComboBox comboBox = (JComboBox) event.getSource();
    if(comboBox.getSelectedItem().equals("None"))
    public static void main(String agr[])
    customer_code cd=new customer_code();
    }

    r035198x wrote:
    Also separate that database code from interface display code.
    You should never access the database on the EDT.
    See [Doing Swing Right|http://bytes.com/topic/java/insights/853297-doing-swing-right] for more details.
    Yes! By the time you are working with Swing and JDBC you should already know how to structure code. If not, then you are not ready for these topics and you've jumped the gun.

  • Bridge CS4  Not enough room on destination disk, when Getting Photos from Camera

    When trying to "Get Photos from Camera" after the 2nd or 3rd photo has been moved to folders I receive a box that states:
    The backup destination folder is low on disk space, and could not obtain all files from the device. (which is a compact flash card) Please select a different folder or cleanup disk space and try again.
    Please note there is plenty of space available on both drives that the photos are being saved to.

    Mike
    what Ramón says,
    I use Downloader on a daily base and don't have troubles with it. And yes it is not a very brilliant piece of software but it does work.
    I would suggest that you go to the user library/ preferences and in here find the downloader plist file. drag this to the trash, restart photodownloader (now at factory settings, you need to reset it again to your wishes) and try again.
    btw
    in an other thread Scott showed an other application for image ingestion. It looks very great but you need to pay a small fee for it :-)
    Scott Burns - 9:20am Mar 5, 09 PST (#4 of 5)
    Have you taken a look at ImageIngester?
    http://ImageIngester.com/

  • Borders are not appearing when null coming from database

    Hello all,
    Right now i am working on a report where i am getting data from stored procedure(sql server). The report is having 15 columns so i have created like multi line report and applied borders to each item. so the report look like a table. But the problem is there are some columns whose values in database are null. Beacuse there is no data coming from db these borders are not appearing on report.
    I know that we can write a formula in crystal by isnull function to get these borders. But want to do everthing on the stored procedures. Please help me on this.
    Thanks & Regards
    Ram

    Convert the null to 0 or " " using formula before placing it to the table/cross tab. This might helps.
    Nevermind because you know the above solution.
    You can do one more thing too, if you are not applying any calculations like runing total  to any of the column from those 15 column, place each of column in either tax-box (if numeric, covert it to text) or just use the box and lines to draw the table and expand the box and lines till end of group footer.
    -Bshukla
    Edited by: Bshukla on Aug 16, 2010 2:34 PM

  • How to get Timestamp from NI-XNET hardware?

    Hy All,
    How can I get Timestamp directly from the hardware (NI-XNET) with the format of the timestamp at the 'Raw Frame Format'?
    Thanks for advance,
    Aviad

    OK! I got it: nxReadState.
    Sorry, it's so clear from the documentation...

Maybe you are looking for

  • Can 2 computers use the same external lacie hard drive?

    hi thanks for any replies. working on some fcp projects ,we were wondering if its possible for 2 computers to be using the same external lacie terrabyte (lacie d2) cheers simon

  • Cannot manually select Automator workflows in iCal

    I know That the Way, Apple intends that we create an Automator workflow as an iCal alarm is to create a new iCal alarm in Automator, and once you save it it automatically creates a new event in iCal. Unfortunately, that's not the way I want to work-

  • ABAP Dump GETWA_NOT_ASSIGNED_RANGE for program /SDF/CL_EM_DUMP_COLLECTOR=====CP

    Hello, I am getting ABAP runtime error GETWA_NOT_ASSIGNED_RANGE every 10 minutes in my ECC Production system. This dump is occurring for program /SDF/CL_EM_DUMP_COLLECTOR=====CP with short text as "Field symbol is not assigned". Error Analysis: "A fi

  • Auto Rollbacks in Data Warehouse

    Hey Guys! Has anyone tried using Auto undo in a data warehouse environment? I wonder how that plays out for large jobs, which are normally assigned a bigger rollback segment when running in manual mode (loads for instance). Thanks, Rene

  • WINDOWS 용 SQL*NET V1 사용 시 ORA-6136 조치 방법

    제품 : SQL*NET 작성날짜 : 1995-11-07 WINDOWS 용 SQL*NET V1 사용 시 ORA-6136 조치 방법 =============================================== Client and Server 환경에서 간혹 SQL*NET으로 Server에 접속하려고 할 때, ORA-6136 Error가 발생하면서 Unix Server에서 $tcpctl stop 으로 orasrv의 Process를 정지시키려고