How to connect and query the sql database in mobile application

Hello,
Can any one say how to connect the sql database from the j2me application.
I have got some info that only through servlet or jsp only we can connect the database and from their we should get the info or query in mobile application.
Is it true? and can i have any sample codes or white paper or guildlines.
It would be more useful form my project.
Thanks in advance.
regards,
sara

Hi David,
According to your description, when you add Windows Azure Mobile Services to a Window Phone 8 app, then store app data in the new mobile service. I recommend you post the related question on the Windows Azure Mobile Services Forums at
http://social.msdn.microsoft.com/Forums/en-US/home?forum=azuremobile .It is appropriate and more experts will assist you.
In addition, there are the details about creating a Windows Phone app connected to your mobile service.
http://www.windowsazure.com/en-us/develop/mobile/tutorials/get-started-wp8/
http://www.windowsazure.com/en-us/develop/mobile/tutorials/get-started-with-data-wp8/
Thanks,
Sofiya Li
Sofiya Li
TechNet Community Support

Similar Messages

  • How to install and configure the SQL Server

    Hi All,
    We have to install SQL server in the new server because the old server is crash and need to upgrade. Please advice How to install and configure the SQL Server to run SAP Business One 8.8 successfully and what part we do have to give attention.
    Kind Rgds,
    Steve

    Hi,
    Try this solution:
    The step-by-step installation guide can be found in the documentation included in the installation media. (\Documentation\SystemSetup\AdministratorGuide_SQL.pdf).
    Below are some important parts that you should pay attention to during the Installation process.
    Resolution
    Collation setting: It must be set as SQL_Latin1_General_CP1_CI_AS,even the company DB is non-english location. The company DB will be created as corresponding collation settings automatically.
    Instance and TCP Port : It is recommended to run SBO on default instance and TCP port 1433. Otherwise,some optional components such as B1i may not work properly.
    Native Client: SQL Server Native Client should be installed on every client machine to enable the ODBC connection to DB server.
    Rgds,

  • HOW TO FIND AND CORRECT THE SQL QUERY ERRORS ????

    Sometimes I get the errors while executing the sql queries.
    I just wanted to know about the various ways by which I can find the sql query errors .
    Any suggestions will be deeply appreciated.

    If you get the an error from SSMS and you can't comprehend it, you can google the error message and google would always lead you to the correction. Or you can post the error in this forum, people
    here are always kind and ready to help :).
    If you have any question, feel free to let me know.
    Eric Zhang
    TechNet Community Support

  • HOw to connect and extract the data from MS ACCESS SOURCE(Database) system

    Hi experts ,
    I have to extract the data from MS access database system using JDBC adapter will it work if Yes HOW?

    Hi Sushma,
    how to configure sendor JDBC adapter ..
    Select adapter type is JDBC..
    Give the Transport Protocol:.JDBC 2.0 (Example)............
                Message Protocol:...JDBC...........
                IAdapter Engine : Integration Server
    Processing Parameters..
    Quality of service.....(Example)..Exactly once
    Poll Interval .... Example ..10
    Query Sql statement..Example ..select * from XXXXX
    Document Name.....
    Update Sql stetement.....
    Thanks,
    Satya
    Reward points if it id useful...

  • ACROBAT 8 - HOW TO CONNECT AND USE THE LiveCycle Policy Server?

    Hello everybody!!! I've just bought the ACROBAT 8.0, and I'm trying to use the LiveCycle Policy Server. The point is, I couldn't connect to the server.... is there any especific way to do it? It is the same configuration to connect to a normal web site server, right?
    I need to control a copyrighted PDF over the web restricting the massive copy
    THANK YOU VERY MUCH

    No it's not exactly like connecting to a normal web server. The connection must be made via https, not http. So the app server has to be configured for SSL. Also the connection will not be made in Acrobat if there are ANY warnings about the SSL cert. So if you can't go to https://serverName:serverPort in IE and get there with no warnings then you won't be able to connect via Policy Server. Also, you can't connect to Policy Server via Acrobat using a Policy Server admin user. It must be a user who doesn't have admin privileges.
    Chris
    Adobe Enterprise Developer Support

  • How to connect captivate file in a database (MS SQL SERVER 2008)

    Hi...
    How to connect captivate file in a database (MS SQL SERVER 2008) ???
    Kindly response please..
    thanks!!!

    Hi there
    See if the link below helps you out.
    Click here to view
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Upload the sql database to host and manage it

    hello
    i have window 8.1
    sql server express 2014
    visual studio 2013 express
    i have built a database and i am ready to copy it to the host.
    not in vs or in sql.s i have found the.. connect to remote server..
    i have looked on google >> its say use the
    SQL Server Configuration Manager that is under the Client Tools Connectivity installation..
    or search your pc for "SQLServerManager11.msc" 
    but i got none!!! 
    not the SQLServerManager11.msc
    not
    the Client Tools Connectivity
    not the SQL Server
    Configuration Manager 
    and i dont know how to upload the sql database to the host and manage it...

    thank you for replying 
    my installation where sql server express with advanced tools..
    i have to say that the normal installation didnt work for me.. using the my_downloader_installer.exe, the  akamia NetSession interface run into some error - file use by another process... and restarting the pc didnt solve the issue...
    i found an alternative way to install 
    on http://www.microsoft.com/en-in/download/details.aspx?id=42299
    and download the SQLEXPRADV_x86_ENU.exe that supposed to
    be with the tools
    (but could not found the tools).. so i have tried to install the SQLManagementStudio_x86_ENU.exe
    >> only the tools...
    but i got that error
    TITLE: SQL Server 2014 Setup
    There are validation errors on this page. Click OK to close this dialog box. Review errors at the bottom of the setup page, then provide valid parameters or click Help for more information.
    BUTTONS:
    OK
    and the information page lide me to no where.. >> so general info about different installation packages..
    but:
    i do think i do have that SQL Server Configuration Manager 
    cause when i run the 
    USE master;
    GO
    EXEC sp_helpserver ;
    USE master;
    EXEC sp_serveroption 'Y-PC\SQLEXPRESS', 'collation compatible', 'true';
    i got 
    name                network_name     status            id   collation_name                      connect_timeout query_timeout
    Y-PC\SQLEXPRESS    Y-PC\SQLEXPRESS      rpc,rpc out,collation compatible,use remote collation    0    NULL                              
                        0               0

  • How to access the sql database in applet?

    How to access the sql database in applet?
    Please help me.

    import java.applet.*;
    import java.awl.*;
    import java.sql.*;
    //other packages
    public class jdb extends Applet
    Connection con;
    Statement stmt;
    String name="drvijay";
    String phoneno="9842088860";
    public void init(){}
    pubilc void stop(){}
    public void destroy(){}
    public void start()
    call();
    public void call()
    try{
              Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              conn=DriverManager.getConnection("Jdbc:Odbc:emp","sa","");
              stmt=conn.createStatement();
              stmt.executeUpdate("insert into empdetails(name,phoneno) values ('"+name + "',''"+ phoneno +"' )" );
              }catch(SQLException e)
                   System.out.println("error"+e);
                   System.exit(0);
    //<applet code="jdb" height="200" width="200"> </applet>
    u this jdbc statement in any of the method..
    */

  • How to query the citadel database

    Is there a way using Lookout to query the citadel data base?
    I have value that is being saved every second say, into the citadel database
    a specific record may look like this for the field   
    MON_DS  = "7:57"  
    Local Time  =  "2/19/06 15:59"
    I want to have the user enter a date and then lookout to query the citadel database and find the
    maximum value for MON_DS for that date.
    Is this possible in lookout?
    I can download the data to a spreadsheet but that is alot of work to load each of the fields & local time records
    frank

    Hi Frank,
    You would use the "c" datamembers (see below), of the right datatype:
    SQLExec Data Members
    Data Member
    Type
    Read
    Write
    Description
    c1 – c65535
    numeric
    yes
    no
    Value of the nth column in the row returned by ODBC.
    c1.logical – c65535.logical
    logical
    yes
    no
    Value of the nth column in the row returned by ODBC.
    c1.txt – c65535.txt
    text
    yes
    no
    Value of the nth column in the row returned by ODBC.
    -Khalid

  • While downloading app update on ipad lost internet connection and now the updates are not updating. How do I fix this?

    While downloading a common application update, I lost my internet connection and now the updates are not updating. How do I fix this?

    Try this:
    •  Log out of your iTunes store account.  Go to Settings > Store > Sign Out Then press the Home button.
    • Then press and hold the Home and Sleep buttons simultaneously and don't release them when it brings up the Turn Off screen; keep holding them until the Apple logo appears.
    • Then restart & see if you can update.
     Cheers, Tom

  • "you must first sign in to iTunes Connect and sign the relevant contracts": how?

    I'm trying to get my iBook (made in iBooks Author) up on the iTunes store and am stuck.
    I now have an iTunes Connect account into which I can sign in.  When I try to use iTunes producer, and enter my login info (which works on the browser), it tells me
    "There is a problem with your login information. To use this application, you must first sign in to iTunes Connect and sign the relevant contracts."
    I'm not sure what a "relevant contract" would be.  I look at "Contracts, Tax, and Banking" at iTunes Connect, and there is one entry with Contract Type "Book". However, I can't request it (that is grayed out), and the "Legal Entity" pull down does not show me (as found in the "Manage Users"), but only shows "select".
    I therefore can't seem to find a way to do anything to allow me to login with my book via Producer to get it "produced."
    Does anyone know what is going on? 
    The FAQ is a blank page, the "Contact us with questions" asks you to pull down a topic and has no topics there! Very clumsy path to publishing (comparing to CreateSpace, for example). After the ease of iBooks Author it's like hitting a brick wall at 100 mph.

    OK, I saw the link for the help video at the bottom - it helped.  I have to add a new entity.  I was fooled thinking I would already be there and that the entry was me, but it is apparently a general placeholder into which numerous entities can go.  For me this was not obvious at all, and I only figured that out by watching the video (which was not easy to spot!).
    I'll go through the process now and hopefully no more confusions.

  • How to attach/restore the sql database/file extension (*.File)

    I took backup the database long back ago. Now I
    am unable to attach/restore the sql database/file extension (*.File). I
    have the file type called (*.File) which i need to attach/restore. Can anyone tell me what's are the steps
    taken to do this? 
    Thank in advance.

    Database
    name-->Right Click-->Tasks-->Restore-->Database-->Select "Device" radio button-->Click device Path button-->Click "ADD" button --> I tried with "All Files(*)"--> then i selected my database-->ok-->ok-->ok -->
    then i am getting below error. 
    I am unable to post image. 
    "Restore of database 'Databasename' failed. (microsoft.sqlserver.management.relationalenginetasks)"
    Additional Information:
    System.Data.SqlClient.SqlError: The database was backed up on a server running version 8.00.0194. That version is incompatible with this server, which is running version 11.00.2100. Either
    restore the database on a server that supports the backup, or use a backup that is compatible with this server. (Microsoft.SqlServer.SmoExtended).
    Can
    you please help me to solve this error.
    Thanks,
    Laxmi.

  • Help me on CVP class to query a SQL database

    Dear friends,
    I try to create a class extends to Action element. But when I do deploy, it return no result.
    I want this class receive Calling Number and do the query to database (SQL as I test, later if it works I will do for another database). After query I will get Name, Address, Email of this Customer based on Calling Number (ANI).
    Please help to take a look on my program and help me to fix it.
    Thank you very much.
    import com.audium.server.AudiumException;
    import com.audium.server.voiceElement.ActionElementBase;
    import com.audium.server.session.ActionElementData;
    import java.sql.*;
    * This class is called when a standard action has been configured to use a
    * Java class. Since this is a standard action element, it applies to a
    * specific application and does not have a configuration. As a result, the
    * only method needed in this class is the doAction method.
    public class DBLookupStandardAction extends ActionElementBase
    class WhatIGot
    String ANI = null;
    String Name = null;
    String Address = null;
    String Email = null;
    public void doAction(String name, ActionElementData data) throws AudiumException
    Connection conn = null;
    String Name = null;
    String Address = null;
    conn = connectToDatabase();
    String ani = data.getAni();
    WhatIGot whatigot = new WhatIGot();
    whatigot = QueryDatabase(conn, ani);
    Name = whatigot.Name;
    Address = whatigot.Address;
    data.setSessionData("Name",Name);
    data.setSessionData("Address",Address);
    // PUT YOUR CODE HERE.
    private Connection connectToDatabase()
    Connection conn = null;
    try
    Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
    conn = DriverManager.getConnection("jdbc:sqlserver://172.16.3.5:1433;DatabaseName=hcmpt","sa","");
    catch (ClassNotFoundException e)
    e.printStackTrace();
    System.exit(1);
    catch (SQLException e)
    e.printStackTrace();
    System.exit(2);
    return conn;
    /*Query*/
    private WhatIGot QueryDatabase(Connection conn, String ANI)
    WhatIGot WhatIGot = new WhatIGot();
    try
    Statement st = conn.createStatement();
    ResultSet rs = st.executeQuery("SELECT prefixnos, Name, Address, Email FROM customer_info where prefixnos = ANI");
    WhatIGot.ANI = rs.getString ("prefixnos");
    WhatIGot.Name = rs.getString ("Name");
    WhatIGot.Address = rs.getString ("Address");
    WhatIGot.Email = rs.getString ("Email");
    rs.close();
    st.close();
    catch (SQLException se) {
    System.err.println("Threw a SQLException creating the list of blogs.");
    System.err.println(se.getMessage());
    return WhatIGot;

    Thank you Geoff,
    I have made some changes and now it's working fine with SQL database.
    I go forward to Oracle database. But can you show me how can I copy a new library (ojdbc14.jar) to the CVP server:
    - which folder?
    - and how apply it for all other application can use the same lib here?
    waiting for you answer...
    Thank you,
    This code I have tested, it can connect and query and I try to put to screen. It is working. But when I apply to CVP xml server, it not work. And the CVP VXML server got "stop" (maybe on the fail state)
    package com.dts.db;
    * @author Doan Khanh Tan Thanh
    // These classes are used by standard action elements.
    import com.audium.server.AudiumException;
    import com.audium.server.voiceElement.ActionElementBase;
    import com.audium.server.session.ActionElementData;
    import java.sql.*;
    * This class is called when a standard action has been configured to use a
    * Java class. Since this is a standard action element, it applies to a
    * specific application and does not have a configuration. As a result, the
    * only method needed in this class is the doAction method.
    public class OracleDBLookupAction extends ActionElementBase
    class WhatIGot
    String Name = null;
    String Address = null;
    String Email = null;
    public void doAction(String name, ActionElementData data) throws AudiumException
    String NameWhatIGot = null;
    Connection conn = null;
    String AddressWhatIGot = null;
    //String EmailWhatIGot = null;
    String ani = null;
    conn = connectToDatabase();
    ani = (String)data.getSessionData("ANI");
    WhatIGot whatigot = new WhatIGot();
    whatigot = QueryDatabase(conn, ani);
    NameWhatIGot = whatigot.Name;
    AddressWhatIGot = whatigot.Address;
    //EmailWhatIGot = whatigot.Email;
    data.setSessionData("Name",NameWhatIGot);
    data.setSessionData("Address",AddressWhatIGot);
    // PUT YOUR CODE HERE.
    private Connection connectToDatabase()
    Connection conn = null;
    try
    Class.forName("oracle.jdbc.driver.OracleDriver");
    conn = DriverManager.getConnection("jdbc:oracle:thin:@172.16.5.134:1521:dbkttt","CUOC1080","123456");
    catch (ClassNotFoundException e)
    e.printStackTrace();
    System.exit(1);
    catch (SQLException e)
    e.printStackTrace();
    System.exit(2);
    return conn;
    /*Query*/
    private WhatIGot QueryDatabase(Connection conn, String ANI)
    WhatIGot WhatIGot = new WhatIGot();
    try
    Statement st = conn.createStatement();
    ResultSet rs = st.executeQuery("SELECT * FROM CUSTOMER_INFO where ANI = '838232822'");
    while ( rs.next() )
    WhatIGot.Name = rs.getString ("NAME");
    WhatIGot.Address = rs.getString ("ADDRESS");
    WhatIGot.Email = rs.getString ("EMAIL");
    rs.close();
    st.close();
    catch (SQLException se) {
    System.err.println("Threw a SQLException creating the list of blogs.");
    System.err.println(se.getMessage());
    return WhatIGot;

  • How to connect to db from sql navigator ?

    database active and working.
    login from web working normally.
    how to connect to db from sql navigator ?

    Remote connections generally need three bits of information, whether its an oracle, odbc, or some other type of client ...
    1. Where does the database "live" (hostname or IP address)
    2. What port is the database listener "listening" on for connections
    3. What is the database service name or $ORACLE_SID
    Default port is 1521, if its an XE install the service name is XE out-of-the-box (as set up by the installer and no DBA intervention.)

  • Beginners question - making sense of form, item, pane & variable (with relation to where data is stored in the SQL database)

    Hi Everyone,
    I am new to writing reports (SQL code) for SAP, however I am aware that inside SAP Business One it is necessary to enable System Information (from the View menu) in order to see which tables (and related table attributes / column names) are related to various aspects of the various SAP 'modules' (e.g.: A/R Invoice).
    Using an A/R Invoice as an example I can see at the row (or line) level that an item with the description of 'Opening Balance Transfer' is contained in the table INV1, within the attribute (or column) called Dscription.
    However not every 'on screen object' shows a table / attribute. For example in the same A/R Invoice if I hover my mouse over the Balance Due field all I see is Form related information.
    My question is 'How do I make sense of the Form, Item, Pane, Variable information?', with relation to where data is stored within the SQL database?
    Links to online tutorials explaining how this feature of SAP Business One will be much appreciated, along with any personal advice regarding working with this information.
    Any (and all) help will be greatly appreciated.
    Kind Regards,
    David

    Hi David,
    1.Here I am explaining use of each field except pane
    a. Form ---> Used in additional authorization creator
    b. Item, column--->Useful in creating Formatted search queries (FMS)
    c. Variable --> Some of the field values based on another values. ie. indirect values.
    d. INV1---Table name
    2. How to get variable?
    As per your second attachment, to get balance due ,you need doc total field from OINV table. For example,
    SELECT T0.[DocNum], T0.[DocTotal] FROM OINV T0 WHERE T0.[DocNum] = 612004797
    Thanks & Regards,
    Nagarajan

Maybe you are looking for