Unable to access the data and table fields from handheld

Hi,
I've created a Testing.sdf file on the local pc using SQL Server Management Studio, creating table, fields and insert some data. in local pc i can access the the data as normal. the problem is after i moved the file to handheld device i
cannot access the data within the table, it shown error 'Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum)' . I tried to google it, but still got no solution.
Thanks,

'Name Space
Imports System.Data.SqlServerCe
'String Connection
'Data Source = D:\SKUDWN3 .sdf'
Public Sub CreateDB(ByVal StrConn As String)
        'Declaration
        Dim cn As SqlCeConnection = Nothing
        Dim cm As SqlCeCommand = Nothing
        Dim SQLEngine As SqlCeEngine = Nothing
        Dim rs As SqlCeResultSet = Nothing
        Dim rec As SqlServerCe.SqlCeUpdatableRecord = Nothing
        'Tables -
        Const TB_SKUDWN3 As String = "SKUDWN3"
        'Fields TB_SKUDWN3
        Const FL_SKUDWN3_UPC As String = "UPC"
        Const FL_SKUDWN3_SKU As String = "SKU"
        Const FL_SKUDWN3_LD As String = "LD"
        Const FL_SKUDWN3_SD As String = "SD"
        Const FL_SKUDWN3_AN As String = "AN"
        Const FL_SKUDWN3_Price As String = "Price"
        Const FL_SKUDWN3_GST_FLAG As String = "GSTFLAG"
        'Create Database
        SQLEngine = New SqlCeEngine(StrConn)
        SQLEngine.CreateDatabase()
        SQLEngine.Dispose()
        'Open Connection
        If IsNothing(cn) Then cn = New SqlCeConnection(StrConn)
        If cn.State = Data.ConnectionState.Closed Then cn.Open()
        cm = cn.CreateCommand
        'Create Table, Fields
        cm.CommandText = "CREATE TABLE " & TB_SKUDWN3 & " (" & FL_SKUDWN3_UPC & " NVARCHAR (13)," & _
            " " & FL_SKUDWN3_SKU & " NVARCHAR (9), " & FL_SKUDWN3_LD & " NVARCHAR(30)," & _
            " " & FL_SKUDWN3_SD & " NVARCHAR (18), " & FL_SKUDWN3_AN & " NVARCHAR(15), " & _
            " " & FL_SKUDWN3_Price & " NVARCHAR (10), " & FL_SKUDWN3_GST_FLAG & " BIT)"
        cm.ExecuteNonQuery()
        'Close Connection
        cm = Nothing
        If Not IsNothing(cn) Then
            If cn.State = ConnectionState.Open Then cn.Close()
            cn.Close()
            cn.Dispose()
        End If
    End Sub
'The DB was successfully created, but after moving to Handheld the fields of table can't be accessed

Similar Messages

  • I have an external hard drive from my time capsule that stopped working on me. I am attempting to access the data with a hard drive reader on my MAC. I am able to see the drive in disk utility and under system info USB. But I am unable to access the data.

    I have an external hard drive from my time capsule that stopped working on me. I am attempting to access the data with a hard drive reader on my MAC. I am able to see the drive in disk utility and under system info USB. But I am unable to access the data and it does not show on the desktop when connected.

    Ok if disk utility was able to verify the drive I doubt there is any problem.. are you trying to open a TM backup??
    You need to mount the sparsebundle then check the actual info inside the bundle.
    Don't use disk warrior.. if the disk has verified then unless you deliberately deleted files there is nothing that is going to do.
    Pondini has a lot of stuff about getting access to the sparsebundle.
    http://pondini.org/TM/17.html
    But if you have copied info to the TC that is now gone.. and the disk is ok.. I am not sure.. the TC will not have deleted the files itself.

  • Unable to access the data from Data Management Gateway: Query timeout expired

    Hi,
    Since 2-3 days the data refresh is failing on our PowerBI site. I checked below:
    1. The gateway is in running status.
    2. Data source is also in ready status and test connection worked fine too.
    3. Below is the error in System Health -
    Failed to refresh the data source. An internal service error has occurred. Retry the operation at a later time. If the problem persists, contact Microsoft support for further assistance.        
    Error code: 4025
    4. Below is the error in Event Viewer.
    Unable to access the data from Data Management Gateway: Query timeout expired. Please check 1) whether the data source is available 2) whether the gateway on-premises service is running using Windows Event Logs.
    5. This is the correlational id for latest refresh failure
    is
    f9030dd8-af4c-4225-8674-50ce85a770d0
    6.
    Refresh History error is –
    Errors in the high-level relational engine. The following exception occurred while the managed IDataReader interface was being used: The operation has timed out. Errors in the high-level relational engine. The following exception occurred while the
    managed IDataReader interface was being used: Query timeout expired. 
    Any idea what could have went wrong suddenly, everything was working fine from last 1 month.
    Thanks,
    Richa

    Never mind, figured out there was a lock on SQL table which caused all the problems. Once I released the lock it PowerPivot refresh started working fine.
    Thanks.

  • How to compare table data and table field

    Hi buddy,
        I have some question about how to compare table data and table field.
       1. I know there is one method:   CL_ABAP_UNIT_ASSERT=>ASSERT_TABLE_CONTAINS  , it use in unit test to compare the table data(A and B) , you can loop table A into structure A1, then use this mehtod it can compare whether table B contain structure A1.  but when I try to use this in main program it will dump.
              CL_ABAP_UNIT_ASSERT=>ASSERT_TABLE_CONTAINS(
                                                                                                        LINE    = A1
                                                                                                        TABLE = B ).
           Is there any method or FM can be used to compare the table data ?
        2. I also want to compare two table field , try to find out the different. How to realize this.
    Thank you for your sincerely answer.

    Hi Zongjie,
    What`s the difference, if you using loop A into wa_A, read table B into wa_B with all field, then compare with wa_A and wa_B.
    The question 2, seems no standard FM available here.
    Loop A into wa_A.
       Loop B into wa_B.
           if wa_A-field1 eq wa_B-field1.
           endif.
            if wa_A-field2 eq wa_B-field2. 
           endif.
       endloop.
    endloop.
    regards,
    Archer

  • Color coding in the "Date" and "Time" field in "Person Assignment"

    Hi,
    What does it mean when the color of the values for the "Date" and "Time" fields under the tab "Person Assignment" on an activity element in the project builder (CJ20N) turn red?
    Regards,
    Petter Kvalvik

    Hi,
    I dont suppose we have any option to achieve this at Query Designer level. Your requirement can be achieved in Workbook,
    Insert text template in one of the cell in your workbook, context menu--properties-Constant Tab----Check Display last Refreshed. Doing this you will get Date and Time of last refreshed data.
    Thanks,
    Vishnu.

  • HT201269 if my iphone is crushed and will not read onto itunes/sync, is there anyway to access the data and back it up?

    if my iphone is crushed(droped and ran over...) and will not read onto itunes/sync, is there anyway to access the data and back it? i really dont want to lose the progress in the apps that i play often....

    i wasnt expecting to acompish it... just wondering if there was another method, and was trying to have a little hope but thank you

  • How to access the java stack table "xi_af_msg" from the ABAP engine.

    Hello Guys,
    How to access the java stack table "xi_af_msg" from the ABAP engine.
    I need to access this table.

    These 3 are the tables that are for XI Adapter in ABAP Stack.
    SWFRXICNT
    SWFRXIHDR
    SWFRXIPRC
    You can also try the following tables.
    SXMSAEADPMOD                   XI: Adapter and Module Information
    SXMSAEADPMODCHN                XI: Adapter Module Chains
    SXMSAEAGG                      XI: Adapter Runtime Data (Aggregated)
    SXMSAERAW                      XI: Adapter Runtime Data (Raw Data)
    Cheers,
    Sarath.
    Award if helpful.

  • How to  access the ORACLE APPS table structures from SAP

    Hi Experts,
        How to  access the ORACLE APPS table structures from SAP? Is it possible from SAP?
    Thanks in advance
    Thomas

    Hi Silviya,
    you can access this database using a technique called DB Multiconnect - sometimes written as multi-connect.
    Search the SAP documentation and notes for this term and you will find how to do it.
    Essentially you configure the remote database connection via transaction DBCON.
    If your SAP system is not running on Oracle you will need to install the db-specific kernel files for Oracle along with the Oracel db client software - SQL*Net.
    Then you can access the Oracle database from ABAP using native-SQL. It works a treat!
    Cheers
    Graham Robbo

  • How do you edit out the date and time stamp from a photo

    How do you edit out the date and time stamp from a photo

    You can blur it out with retouch
    The built-in "Retouch" brush in "Edit" mode should suffice, if the background is mostly uniform, and if you set the size of the brush to slightly wider than the bar width of the letters. For example, in this picture I removed the year from the date (in the lower right corner) by using the "retouch" brush and following the contours of the letters. (the screen shot is from iPhoto '11, but iPhoto 9 should give similar results).
    Regards
    Léonie

  • How to delete the date and time column from a waveform spreasheet file

    after acquiring a signal through the DAQ i am writing it in a spreadsheet. but for further post processing of the data the date and the time column are unneccessary. is there some way to format the file in labview so that those columns are removed. the DAQmx read  gives as output a 1 d array. so i could not find a way to select only the Y column

    If you are getting a 1D array from the DAQmx Read, then you don't have any date/time information to write and if you are using the Write to Spreadsheet File, there should be no way you can have the date/time information in the file. Whatever you hjave programed to put the date/time into the file, don't do it.
    p.s. You may not think you need timing information but for a lot of post-processing, it is essential to have. If it's in the file, you can always ignore when you read it and if you later find out it's necessary, it will already be there.

  • How to set the date and time format from Windows Server 2008 R2

    Hi,
    I want to control my client's date and time format as dd/mm/yyyy format and I need to do it using the windows server 2008 R2. How can I achieve this goal?
    Yoshika04

    Hi,
    In Windows Server 2008 R2, you can use Regional Options Extension in Group Policy Preferences to configure the date and
    time format. For more information, please refer to:
    Regional Options Extension
    http://technet.microsoft.com/en-us/library/cc754496.aspx
    Regards,
    Bruce

  • How to print out the Forms and Table fields relationship, data mapping?

    I create a forms and tables relationship inside the Form Developer 11g, once I created the Data relationships between the form data field and the Table column name. I don't have any command to print it out, such as Layout Wizard.
    Are there any programs on Windows platform can print it out?

    hi all,
    i have try to do this
    public static void Readbinary() throws Exception
              String file = "D:\\05-09.190501+0800";
              DataInputStream dis = new DataInputStream(new FileInputStream(file));
              //but then how to read the content ??????can you give me more hint ?????
    i have find the netflow v5 structure by C
    struct NFHeaderV5{
    uint16_t version; // flow-export version number
    uint16_t count; // number of flow entries
    uint32_t sysUptime;
    uint32_t unix_secs;
    uint32_t unix_nsecs;
    uint32_t flow_sequence; // sequence number
    uint8_t engine_type; // no VIP = 0, VIP2 = 1
    uint8_t engine_id; // VIP2 slot number
    uint16_t reserved; // reserved1,2
    struct NFV5{ 
    ipv4addr_t srcaddr; // source IP address
    ipv4addr_t dstaddr; // destination IP address
    ipv4addr_t nexthop; // next hop router's IP address
    uint16_t input; // input interface index
    uint16_t output; // output interface index
    uint32_t pkts; // packets sent in duration
    uint32_t bytes; // octets sent in duration
    uint32_t first; // SysUptime at start of flow
    uint32_t last; // and of last packet of flow
    uint16_t srcport; // TCP/UDP source port number or equivalent
    uint16_t dstport; // TCP/UDP destination port number or equivalent
    uint8_t pad;
    uint8_t tcp_flags; // bitwise OR of all TCP flags in flow; 0x10
    // for non-TCP flows
    uint8_t prot; // IP protocol, e.g., 6=TCP, 17=UDP, ...
    uint8_t tos; // IP Type-of-Service
    uint16_t src_as; // originating AS of source address
    uint16_t dst_as; // originating AS of destination address
    uint8_t src_mask; // source address prefix mask bits
    uint8_t dst_mask; // destination address prefix mask bits
    uint16_t reserved;
    but how to translate the structure to java,then get the data from the file ?
    Edited by: 903893 on Dec 21, 2011 10:52 PM

  • Accessing the data of Table and manipulating it

    Hi
    I've a table which returns data from RFM, on the basis of data I've to get checkboxes check/unchecked.
    The ModelNode is of following type:
        -0CONTEXT
         |-Model_Input
           |-EventId
           |-EventValue
    Now based on the value returned by EventValue i'll check the values of 2 checkBoxes.
    The context for the view is
      -0Context
       |-Z_sd_Input
       |  |-EventID
       |  |-EventValue
       |-Check1
       |-Check2
    I've binded my table with EventID, EventValue, Check1 and Check2.
    Now on the basis of each rows returned under the EventID & EventValue, I'll have to put the check or uncheck values in the table.
    I'm using following code:
    for(int i = 0;wdContext.node<model>.size();i++)
         if(wdContext.node<model_input>.getEventValue equals("2")
          wdContext.setCheck1(true);
          wdContext.setCheck2(false);
    But this code is not validating the condition. and puts all the checkboxes as true and false respectively.
    So for data under the EventValues have to be read and for each of them i've to give appropriate checks.. how do i do that
    Say the table return looks like this:
    EventId  EventVal    Check1  Check2
    Volume     2          true   true
    Weight     1           false  true... and so on.
    Can somebody provide solution for it.
    Thanks in advance
    Srikant

    If you define a calculated attribute, you get the node element containing that attribute as a parameter in the get-method.
    In your example, this is an element of the value node "X" containing the calculated attributes "Check{1,2}".
    To get the attribute values used to calculated the "Check{1,2}" value, you have to navigate up the context:
    element: element of "X", parameter of calc. attribute get-method
    element.node(): node "X"
    element.node().getParentElement(): node element containing "X" (remember it's a non-singleton)
    From the last node element you can get the attribute values to compute the value for the calculated attribute.
    Another solution using supply functions is described in Marcin's Weblog.
    Armin

  • Unable to access the Rescue and Recovery workspace upon reboot

    Hello forum.
    I have a problem with getting access to the Rescue and Recovery area when I reboot.
    Even though I have tried to hit both Enter, F11 and Lenovo Care bottom, I still do not get access to the Rescue and Recovery area. Instead the system just boot as normal, and Vista starts up. However hitting the F1 I get access to the BIOS, so can anyone help me with a solution on how to get access to the Rescue and Recovery area??
    Regards
    Bjorn

    Hello Bjorn, welcome to Lenovo forums!
    Sorry about your situation, but forum rules prohibit any password bypasses.  You'll need to get relief from the previous owner.  Locking thread. 
    Follow @LenovoForums on Twitter! Try the forum search, before first posting: Forum Search Option
    Please insert your type, model (not S/N) number and used OS in your posts.
    I´m a volunteer here using New X1 Carbon, ThinkPad Yoga, Yoga 11s, Yoga 13, T430s,T510, X220t, IdeaCentre B540.
    TIP: If your computer runs satisfactorily now, it may not be necessary to update the system.
     English Community       Deutsche Community       Comunidad en Español

  • How to write the data and get back from NI-9802 installed in cRIO 9081

    Hello,
             I am working on cRIO 9081, with NI-9467 GPS module and NI-9234 Acoustic module. I have generated the data from GPS as well as 9234 module.
    Now I want to write this data in NI-9802, this means i required 2 FPGA vi in one project, and to dumb them in main RT vi.
    So how can we do it ,please suggest me any solution...

    You can use webutil functions.
    There are many posts in the forum... search for them!!
    hope it helps you,
    Fabrizio
    If this answer is helpful or correct, please mark it. Thanks.

Maybe you are looking for

  • How do I sync to a new Mac without losing anything

    My iPhone 4 is snced to my G5. I want to change the sync to my Mac Pro (on which I have a different user name). How can I achieve this without losing Contacts & Apps? Photos & Music I can add manually, so I'm not overly concerned about those. Will it

  • MainStage 2 can't open MainStage 1 concert file

    Hi, After upgrade logic pro to the newest version. I can't us MainStage 2 to open my old concert file from MainStage 1. The application sign me the error message below: 'The document "xxx" could not be opened. The file isn't in the correct format. Pl

  • Running leopard & windows

    Hey! is it possible to run snow leopard and windows simultaneously (meaning, to have them both installed on one machine)?

  • IPod has "frozen" and wiped out; iPod software "null" on iMac

    I connected our older iPod to my Mac the other night. While it is usually synced with iTunes my wife's "side" of the computer, I tried to load my iTunes library onto the iPod. It seemed to be working, but then froze. Although the message on the iPod

  • Java 5.08 to 5.010

    Hi there every one... I have a java update Issue I would like to sort out: I have been using the RAC.co.uk route finder which needs Java installed to display the interactive maps correctly.... However when I ran the update from Java to update to ver