Connecting AIR with external database

Is it possible to connect AIR application to the external database in MySQL technology?

Are you trying to connect to a MySQL database on a web server somewhere? If so, by far the easiest way to do so is to use some sort of application server layer (e.g. PHP, ColdFusion, Java) on the web server, and have the AIR application call the PHP (or whatever) code to get the data. That is the approach that all the links Greg has given you are talking about.
Of course, in order to make that work you need to know enough PHP/Java/ColdFusion to write that middle layer. In the example you're asking about, the information it wants to know is the name of the server that the MySQL database is running on, and the MySQL username and password for the MySQL account that your PHP code is supposed to use. There are tons of resources on the web for writing PHP code that accesses MySQL, so you'll find much more and better information in other places than what you'll find in the Adobe AIR forums.
However, maybe you want to have the MySQL server running directly on the user's computer rather than on a web server somewhere. In that case you would have a few options:
Run a web server and application server (e.g. Apache and PHP) on the user's computer and use those to connect between the AIR application and the MySQL server.
Write Java code to communicate between the MySQL server and the AIR app, and call that code using Merapi (http://merapiproject.net/)
Run the MySQL server on the user's computer and call the server directly from AIR using ActionScript. While there is no built-in support for MySQL in AIR, there is a third-party (open source) library for calling MySQL directly from ActionScript available here: http://code.google.com/p/assql/. I haven't tested it so I have no idea how complete it is, but it's a solution to consider.
However, in all three cases you're depending on some external pieces that have to be installed and loaded separate from your AIR application. (For instance, most users probably don't want a MySQL server running on their computer all the time if they aren't using your AIR app all the time -- so you'd want a way to start and stop the server, which also couldn't be done directly in AIR.) People do write applications that use external resources like this, but it's not the easiest thing to implement.
If you're really wanting to run the database locally, the best solution (assuming it works for your needs) is to use AIR's built in local SQL database engine (based on SQLite). If you've looked at that option already, and found that it doesn't work for you, I'd be interested to know more about what you're trying to accomplish that you can't accomplish with the AIR local database.

Similar Messages

  • Create RFC for connecting BW with external database (ORACLE)

    Hello,
    I want to connect to a seperate oracle database from SAP BW system. For that i have to create a RFC.
    I hope i have to ctrate a TCP/IP connection.
    In SM59, I can see " start on explicit host " option where i have to give the program name. I dont know which program name i have to enter or from which location in sap/OS level i can find the program name.
    Please suggest the program name or the location.
    Thanks & REgards
    Prasanth

    Hi,
    Can anybody answer to my thread?
    Regards
    Prasanth

  • ABAP report  from fields connecting to an external database

    Hi All,
    The requirement is to connect some GL data with external audit data which is stored in an oracle database.  These two table data has to be merged and a report has to be generated.
    I heard we could connect to the external database from the R/3 4.7 version through DBconnect.  Has anyone come across any such requirement and done a similar report, could you give me the inputs please.
    regards
    Girish

    Questions like yours are best asked over at the webOS Developer's Forum.  The Palm Support Community here is geared to answering end-user questions about devices, not programming information.
    https://developer.palm.com/
    WyreNut
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • How to connect Air with Thunderbolt?

    How do I connect Air with Thunderbolt?
    Bought Air in Oct 2011 and Thunderbolt today. 
    Does Mac OS X (10.6.5) work with Thunderbolt?
    Do I need a special cable other than what came in box?

    Hey moxiedoggy,
    Welcome to Apple Support Communities! It sounds like you want to use Target Display Mode to use your iMac as a second screen to your MacBook Air. Since your said your MacBook Air is from 2011, it should have the thunderbolt, and you can connect the two computers using the following instructions:
    Use an iMac with Thunderbolt as a display
    If you have an iMac with Thunderbolt, any other Mac with Thunderbolt can use it as a display. The iMac will play both the video and audio from the other Mac.
    Connect the Thunderbolt cable to the Thunderbolt ports on each computer.
    Make sure both Mac computers are turned on and awake.
    Press Command (⌘)-F2 on the keyboard of the external display Mac.
    If you want the external display Mac to play audio as well as video from the primary Mac, choose Apple menu > System Preferences, click Sound, and then click Output. Select the external display Mac from the list of devices.
    You'll want to go over the requirements for using Target Display Mode here, along with other FAQs:
    Target Display Mode: Frequently Asked Questions (FAQ)
    http://support.apple.com/kb/ht3924
    Take care,
    David

  • Oracle Discoverer 4i (portal db - oracle 8i) connectivity issue with 11g database

    Hi All
    We have oracle discoverer 4i with portal db (oracle 8i).
    We connect to the external databases using db links in the portal db and the reports will use the db link to retrieve the data from views in the external databases.
    External databases we were connecting is oracle 10g version and now we have upgraded these databases to 11g version.
    Now i have a created a new db link to this 11g database and i have created a new EUL in portal to connect to this 11g database.
    But when i try to create a report using the discoverer from this new EUL after login to the discoverer we get a "cannot connect to database" error.
    We have all the necesscary privilege to the user and the new database link works perfectly fine. (when we try to query directly using SQL plus from portal database using this db link the query works perfectly fine).
    Im not sure if this is a compatibility issue in connecting from oracle disc 4i to a 11g database.
    Can any one advise if this is the case and if there is any workaround for this?
    Regards,
    Raj

    Are you saying you are having issues with a database link between 8i and 11g (pl post exact versions to 4 digits) ? If so, it should be expected as database links between these two versions are not supported. Is there a reason you cannot upgrade the portal database to at least 10gR2 ?
    See MOS Doc 207303.1
    HTH
    Srini

  • API for connecting  to an external database object

    Hi,
    Can anyone provide me with the API for connecting to the external database table and to create , update and delete data with an Oracle external database object.
    Wish you great time.
    Best Regards
    Sid

    Questions like yours are best asked over at the webOS Developer's Forum.  The Palm Support Community here is geared to answering end-user questions about devices, not programming information.
    https://developer.palm.com/
    WyreNut
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • Connection to an external database.

    Hi we r using native sql commands and are connecting to external database. As far as I know from the discussions here i thought that these sort of connections are maintained in the table dbcon. But i don't see any entries in that table.
    WHere as i could connect to that database succesfully and getting the records.
    The table name for the external system is NOVARTIS.TABLE_ADDRESS@ANK like this.
    Where could be that settings made.

    Try this Forum Thread:-
    1. In developer server you have to configure the tnsnames.ora. For doing this you should talk with a person who knows how to configure this file. In the register you should especify: protocol, host and port to connect to the other database system.
    2. Then, you enter a register in the DBCON table. In this entrie you especify user, password, database id (in my case I wrote ORA because i am connecting to an oracle database), and in the enviroment field you write the name or alias of the register in the tnsnames.ora
    3. In the abap program you use native sql sentences for connecting to the external database. This is an example:
    EXEC SQL.
    CONNECT TO :p_conexion AS 'C1'
    ENDEXEC.
    IF SY-SUBRC EQ 0.
    EXEC SQL.
    SET CONNECTION 'C1'
    ENDEXEC.
    EXEC SQL PERFORMING save_data.
    SELECT COD_CGE, COD_SAX, TO_CHAR(FECHA,'YYYYMMDD'),
    VALOR, HORA, TIPO, PAIS, SOCIEDAD
    INTO :wa_serv_aux
    FROM TEST_TABLE
    WHERE FECHA >= TO_DATE( :W_FEC1 , 'YYYY/MM/DD')
    AND FECHA <= TO_DATE( :W_FEC2 , 'YYYY/MM/DD')
    ENDEXEC.
    EXEC SQL.
    ROLLBACK
    ENDEXEC.
    EXEC SQL.
    DISCONNECT 'C1'
    ENDEXEC.
    In the form save_data i insert the work area into the internal table.
    And that`s all. The most important thing is to configurate the tnsnames.ora file on the server side.
    <i><b>Note:- One small suggestion, Before Posting Thread in SDN, search for the related topics in SDN forums and then post your thread, it would be helpfull for everybody.</b></i>
    Regards:-
    <b>Santosh</b>
    Message was edited by: Santosh (INDIA)

  • How to interact with external database in CQ5

    Hi,
    I need to interact with external database like SQL or Oracle to store some/fetch some data in CQ5. Can someone pls provide some help regarding the same. I guess I need to do it through JDBC. Please guide me step by step how to do this.
    Thanks

    Hi,
    Bellow you find some references to the documentation related to CQ and DB configuration and developments:
    http://dev.day.com/docs/en/cq/current/developing/jdbc.html
    https://helpx.adobe.com/cq/kb/HowToConfigureSlingDatasource.html
    Regards,
    kasq

  • Connecting and Updating External Database from SAP

    Connecting and Updating External Database from SAP
    How can i connect SAP Database to External database?
    How can i update external databas from SAP withouting using BI/BW, Workflow or Net Weaver?
    If anyone know please let me inform.
    Thanks in Advance.
    Jahnavee Trivedi

    Steps
    1. Create an entry in tnsnames.ora for the remote oracle DB
    2. Test sqlplus user/pass@remote 
    3. create a synonym which points to a table at remote DB check docs.oracle.com
    4. user ABAP code execute SQL to insert data into local synonym which inturn updates the remote DB.
    I have done this in the past, it works great.
    It requries, DBA skills + ABAP programming
    -AJ

  • Query regarding connecting dashboards with SQL DATABASE using WSDT

    Hello Sir,
    I am trying to connect dashboards with Sql database via WSDT, but i have encountered the same problem as described in your SAP community blog (SAP Web Service Design Tool: From web service creation to Xcelsius consumption).
    when i tried connecting CR server with WSDT ,it still shows that total number of available licenses is 0.
    What can be done to solve this issue.
    for your detail reference, we are using CRS NUL version's 60 days Evaluation keys and same with Xcelsius Departmental edition.
    I would really appreciate, if you revert back to my mail as soon as possible

    Which version of Crystal Reports are you using? The regular ReportDocument SDK probably isn't robust enough to handle this, unless you create a connection using that connection string at design-time which you don't change at runtime. You might be able to add those properties using the in-proc RAS SDK, though. This is available with CRXI R2 as of SP2, and CR2008.

  • New Mac Book Air with external Super drive cannot get Book camp with windows 7 dirve to load

    New Mac Book Air with external Super drive cannot get Book camp with windows 7 dirve to load?

    Dear All,
    Also i am having a strange problem.
    It is impossible for me to use a downlaod manager such as orbit, or IDM..
    Could it be linked with booth camp ?
    Thanks

  • MacBook Air with external monitor and wired network

    Hello,
    I'm investigating the possibility to buy a MacBook Air 13", but I have a big doubt: most of the time I work in office, with wired LAN and an external DVI monitor.
    I've seen that I can buy an USB to LAN adapter and a DisplayPort to DVI to connect to the Thunderbolt port, but in this case I will have only one USB port free a no other Thunderbolt.
    Is anybody advising a different set of periferals to deal with this environment?
    I haven't found any Thunderbolt "HUB" around, does this exist, to multiply the Thunderbolt port?
    Thank in advance for any advice
      Massimiliano

    Naturally yes .. The problem is not the USB itsself, but the fact that original adapters from Apple (LAN and DVI) are made from a Thunderbolt connector, and they do not replicate the port where they are connected to.
    Others party LAN adapters that comes on USB port are only 10/100 Mbs, whilst the Apple's one is a Gigabit. This is why I asked for some sort of Thnderbolt hub, or any other experinced advice..
    I know that the MacBookAir comes with a good 802.11n integrated wireless, but as you know (or can imagine), when you are in the office a Gigabit connection is another movie, especially if you are tranferring large amount of data or are connected to huge centralized databases.
    I was preferring a MacBook Air to the pro for it's monitor: for me a 1440x900 is much more better than a 1280x800 when I'm out of office. On the other hand, the version with the retina display is at the moment too expensive for my budget.
    The final solution could be a MacBook pro 15", but I was preferring the 13" when in mobility, for its form-factor.

  • Mac air with external hard drive - not being found on Finder, Time Machine, Migration Assistant

    I have been using an external drive (Imation Apollo) to access only, old files from previous computer (PC) on a new Mac Air.  I had not transferred them across to new computer (didn't want to do that)  just accessing them from the HD.  It had been working fine until recently.  Each time the external drive had been connected Time Machine would come up and ask if i wanted to use this drive for back ups, and I always chose 'Decide later'.  So, as yetI hadn't as yet configured Time Machine to do back ups.
    Recently I noticed that the extrnal HD was no longer showing up on Finder.  Slight panic as i have 5 or 6 yrs of work saved on that HD
    Further investigations - it's also not showing up either on on Disk Utility, or on Migration Assistant.
    I've done the following: 
    Tried HD in each of different USB ports  - made no difference, HD still not showing up
    Tested different Hubs in each port with HD attached - no difference HD not showing up
    Tried USB flash drives in the USB ports - These are working fine and show up on finder
    Tried the HD on other comptuters (a PC though, don't have access to another mac to do this test)- working fine, the HD is showing up and is accessable
    Interrogated the Console logs to try to see if the act of attaching the HD creates a log entry - couldn't find anything
    Rebooted computer via shut down, power disconnect - no difference
    Reset PRAM - no difference still not showing up
    Reset SMC - no differnce still not showing up
    So I think I have established that all the USB ports are functioning correctly and able to access other external drive devices, using hubs with external powersource is not the issue, identified that the external hard drive is working OK, and it appears that the Mac itself is functioning normally.
    What would be the reason the Mac now does not allow this specific external HD to be identified and accessed.  The only possible things I can think of are
    if I had in fact pressed 'Do not use' when Time Machine asked 'do you want to use this drive for back ups'.  Would that mean that the Mac now totally rejects this HD from being a source of accessible files - I hope not!
    I also think that my husband may have disconnected the hard drive from my computer to access some stuff and he just yanked it out rather than use the safe eject method.  Could this create an issue?  The Hard drive works fine on his PC.
    Why is my Mac Air now rejecting this HD and what can I do to access my historical files now. 
    Any assistance anyone can provide would be very greatly appreciated!
    Thanks
    Anna

    I can't answer why it isn't accessing it, but I have a slightly related issue w my back up drive starting to get noisy.
    Realizing that redundancy is safety for critical data.  I talked to my brother about my situation the other day & he said he has 3 small Western Digital portable HDs that he rotates for backup. He even keeps 1 in the safe deposit box.
    I have read for some time that we should have multiple back ups & also have our critical stuff backed up off site. Amazon HD reviews had a woman telling about how she was very backed up on multiple computers & hard drives, but they were robbed or burgeled & all of them were stolen including her thesis that was on the computers.
    Hard drives aren't that expensive. I just bought a new Western Digital 1 TB drive for $89.99. I plan to use it to back up the Seagate that is getting noisy & then maybe alternate them.
    Also, when I came back to Mac, I moved practially all of my documents to Mac. I think I just dragged & dropped or something. Photos, Office, & pdfs do fine that way. & then you could back them up to a couple of different external drives & remove from your MacBookAir.
    Unfortunately I think most of us do not back up until crisis & then it may be too late.
    Also use Time Machine. For the 1st time in my computer life, my computer is well backed up--although now realizing the need for redundancy so will start backing up to at least 2 different HDs alternatly.
    So, not sure why it isn't working & hopefully you have come up w a solution by now.
    I think what I would do in a situation like this, since you can access it on the Windows machine would be to transfer the data to the Windows machine & then transfer it back to a different back up.
    I'm looking into backing up what I still have in Windows using a thumb flash drive. I think it should all fit ok now that they have the larger drives & I don't have very much left in Windows format.

  • How can I connect to MySQL external database

    Hello.
    I have a SAP system running in SQL Server 2003.
    I need to connect to external MySQL DB., to operate with this information in ABAP program.
    I have done the step necesary... I mean I go to DBCO transaction and configure the connection like this:
    DB CONNECTION --> AFIS
    DBMS --> MSS
    user name --> xxxxxx
    DBpass -->xxxxxx / xxxxxx
    Conn Info -->MSSQL_SERVER=192.168.1.233 MSSQL_DBNAME=alliance OBJECT_SOURCE=alliance
    I do a test program, when I do the statement CONNECT TO, sy-subrc 0 and connection = DEFAULT... I mean, with this form I cannot connect to MySQL Database...
    Can you help me to do this?? I think the problem it's the connection string in DBCO... but I'm not sure...,
    Would be possible to connect by MySQL ODBC??? I mean , installing the ODBC driver in my SAP server, and using this in ABAP Program??
    Thks.
    DATA: BEGIN OF wa,
    cod_modelo(20),
    END OF wa.
    DATA: dbs TYPE dbcon-con_name.
    DATA: con(20) TYPE c.
    DATA : ls_wa LIKE wa.
    con = 'AFIS'. "DB Connection in DBCO above
    EXEC SQL.
    CONNECT TO :con
    ENDEXEC.
    WRITE sy-subrc. ---> The result it's 4
    EXEC SQL.
    GET CONNECTION :con
    ENDEXEC.
    WRITE : con. --> The result it's DEFAULT
    EXEC SQL.
    SET CONNECTION DEFAULT
    ENDEXEC.
    write : con. --> The result it's DEFAULT

    > It's for it, that when I go to DBCO... in DBMS ---... I can select Oracle, MSSQLServer, DB2... for this Databases..., exists the library (lib_dbsl)???
    yes, for all those databases exists the database interface library.
    > In resume:
    >  IT'S NOT POSSIBLE CONNECT TO MYSQL!!! ... I cannot believe it!!!...
    Well - as far as I remember there were some times ago efforts to port SAP applications to MySQL. That would explain why there's also a file "DDLMYS.TPL" created if you execute R3ldctl during a system copy - amongst DDL files for all other databases. I believe this was at the time MySQL was promoting SAPDB/MaxDB.
    MySQL is historically not a database engine for software, that requires transactional integrity; there were extensions to support that (InnoDB or others) and there was no customer demand in getting MySQL as engine for SAP applications. And only develop an interface to be able to connect to an external MySQL engine is not worth the effort.
    However, there is hope Some BusinessObjects applications also run with and against MySQL engines, depending on how the strategy to integrate those into the SAP software stack there may (or may not) be an interface for that database in the future.
    Markus

  • Use Macbook Air with external speakers

    Does anybody know if the Bose Companion 2 Series III Speakers can be used with an macbook air. If yes, is there any adapter needed or can I just plug the cable of the speakers into the MacBook Air headphone jack?

    Naturally yes .. The problem is not the USB itsself, but the fact that original adapters from Apple (LAN and DVI) are made from a Thunderbolt connector, and they do not replicate the port where they are connected to.
    Others party LAN adapters that comes on USB port are only 10/100 Mbs, whilst the Apple's one is a Gigabit. This is why I asked for some sort of Thnderbolt hub, or any other experinced advice..
    I know that the MacBookAir comes with a good 802.11n integrated wireless, but as you know (or can imagine), when you are in the office a Gigabit connection is another movie, especially if you are tranferring large amount of data or are connected to huge centralized databases.
    I was preferring a MacBook Air to the pro for it's monitor: for me a 1440x900 is much more better than a 1280x800 when I'm out of office. On the other hand, the version with the retina display is at the moment too expensive for my budget.
    The final solution could be a MacBook pro 15", but I was preferring the 13" when in mobility, for its form-factor.

Maybe you are looking for

  • Receiving attachments as jarbled text in body of email.

    Is there a setting in the Mail preferences that deals with receiving attachments in the body of the email? I have been trying to send an xls. attachment to a Tiger based imac and they get the file as 200 lines of text instead of a file. Is there a se

  • Protocol remote_JDBC not support

    When deploy the project using BPM Admin Center, when starting the weblogic server.. the error shows: protocol remote_JDBC not support for eng-bpmengine.......

  • How can I stream video with Flash?

    Hi guys! I have a placeHolder MC in my main movie. Within the placeHolder is an external swf containing an mpg video. How can I code the preloader of the external swf to stream the mpg? Thank you very much and I hope to hear from you. All the best, M

  • Lion install keeps overheating my iMac during install

    Approx. half way through install, my iMac keeps getting very hot and shutting down. It will restart when cooled, but reboots at the beginning of the install, and then does the same thing. Any ideas?

  • VBOF - Not updating with Maximum no of items in FI reached.

    Hi All, When updating the billing documents in VBOF, iam getting error (not updating) due to  Maximum no of items in FI reached message. Did you face this kind of issue, what would be the best possible solution? Is there any SAP note for this. Regard