Connection to an existing database

Hello world

I want to connect to an existing MS SQL data base with Flex. Of course, I know that you cannot directly connect to a database in Flex. But, that anyone has an example or can point to an example where someone connects to an existing MS SQl database regardless of what finish back technology it is (preferably ASP.Net) and actually manipulate these data with graphs. Or if anyone can create a connection to the AdventureWorks example or any database MS SQL server example and show how they also manipulate these data with graphs.

Best regards

This could help.

http://learn.Adobe.com/wiki/display/Flex/Flex+and+ASP.NET

But as long as you know ASP, you should be all set, just call your ASP using Flex HTTPService, your ASP manipulates the database and returns the data and the result of your manager process in that return data Flex HTTPService.

If this post has answered your question or helped, please mark it as such.

Tags: Flex

Similar Questions

  • How to create a Pool of connections to two different databases in OBIEE

    Hello

    I have a requirement where few reports coming from databases and a few others to another database. I created two pools of connections and added the frame connection details. But when I created the report I get error as below.

    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error occurred. [nQSError: 43113] The message returned by OBIS. [nQSError: 17001] Oracle error code: 942, message: ORA-00942: table or view does not exist to the call of the OCIStmtExecute OIC. [nQSError: 17010] Prepare the SQL statement failed. (HY000)

    Now, I would like to see if I can create a pool of connections to two different databases. If so, how that happen.

    Thank you!

    Hi Antonio,.

    Cross database joins are possible, no problem for it. But you do not do so in an object of unique data base in the physical layer using 2 pools of connections connection to the source A and B, then adding objects to A and B children of your unique database.

    You create 2 databases in the physical layer, each with its own connection pool, then you can do your knuckles crossed on the physical schema.

    As a picture is worth a thousand words, take a look:

    The physical diagram uses objects of A and B and define the rules of the join between them, it is a cross-database join. But in the physical layer of the database A and B are 2 separate objects each with its own pool of connections.

  • Startup with the existing database problem

    When I give the start-up of an existing database, it gives me this error I have never come across please help...

    Here are the complete steps

    export ORACLE_SID = oracle

    [oracle@localhost oracle] $ sqlplus sys as sysdba

    SQL * more: Production version 11.2.0.1.0 may 6 Mar 15:57:07 2014

    Copyright (c) 1982, 2009, Oracle.  All rights reserved.

    Enter the password:

    Connect to an instance is idle.

    SQL > startup

    ORA-27154: post/wait create failed

    ORA-27300: OS dependent operating system: semget failed with status: 28

    ORA-27301: OS error: no space is available on the device

    ORA-27302: an error occurred at: sskgpsemsper

    SQL > startup

    ORA-27154: post/wait create failed

    ORA-27300: OS dependent operating system: semget failed with status: 28

    ORA-27301: OS error: no space is available on the device

    ORA-27302: an error occurred at: sskgpsemsper

    SQL >

    Take a look on experience of Oracle: ORA-27300: OS dependent operating system: semget failed with status: 28

    HTH

    Anand

  • migration of existing database in ASM.

    Hi all

    I am currently working on the stand-alone database, and I want to migrate my existing database in ASM.

    I'll try using RMAN and I made the following changes in my database: -.

    SQL > alter system set control_files = '+ data' scope = spfile;
    Modified system.
    SQL > alter system set db_create_file_dest = '+ data' scope = spfile;
    Modified system.
    SQL > alter system set db_recovery_file_dest = '+ data' scope = spfile;
    Modified system.
    'data' here are the disk group
    I have stop the db and booted without mount

    so I can start the migration via RMAN

    in rman, I did the following things: -.

    D:\ > target = orcl RMAN

    Recovery Manager: Release 10.2.0.1.0 - Production on Fri Aug 28 01:13:02 2009

    Copyright (c) 1982, 2005, Oracle. All rights reserved.

    target password database:
    connected to target database: orcl (unassembled)

    RMAN > restore controlfile to ' D:\oracle\product\10.2.0\oradata\orcl\CONTROL01.
    CTL';

    From restoration to 28 August 09
    using the control file of the target instead of recovery catalog database
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid = 156 devtype = DISK

    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure of the restore command at 2009-08-28 01:14:40
    ORA-19504: cannot create the file '+ DATA '.
    ORA-17502: ksfdcre:4 cannot create the file + DATA
    ORA-15001: 'DATA' diskgroup do not exist or are not mounted
    ORA-15077: could not locate instance ASM serving a required diskgroup
    ORA-19600: input file is the control file (D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\CO
    NTROL01. CTL)
    ORA-19601: output file is the control file (+ DATA)

    RMAN >

    According to me, I guess that I haven't specified the disk group = '+ data' correctly or there is another way to specify...

    Please help all solve me this problem

    Thanks and greetings
    Pratik Lacoste
    DBA Oracle Jr

    I am currently working on the stand-alone database, and I want to migrate my existing database in ASM.

    I'll try using RMAN and I made the following changes in my database: -.

    SQL > alter system set control_files = '+ data' scope = spfile;
    Modified system.

    You have to change the system set control_files ='+ data / control01.ctl' scope = spfile;
    See Metalink Doc ID 252219.1

    Rgds.

  • How to synchronize the data with the existing database maker?

    Hello

    is it possible to synchronize data with an existing database maker in data as Oracle designer maker
    -Connect to existing database
    -Generate a script (change if the object exist create if exists or not,...)
    -Run the script

    Thank you

    I created a quick demo and hung in [my blog: http://sueharper.blogspot.com/2009/08/updating-database-using-detail-from.html] or directly from [here: http://www.screentoaster.com/watch/stVEpWRUBIR11WRVlbXFpZVlRX/update_the_database_using_oracle_sql_developer_data_modeler]

    Sue

  • Get the number of users connected to an access database

    Hello

    I want to develop a function that returns the number of users connected to an access database. I have CVI 2013 and the SQL Toolbox.

    Thanks in advance!

    ------------------------------------------------

    Hello

    I have a base on the network, and I wanted to develop a (CVI 2013 + SQL toolkit) function that returns me the number of users connected to this base.

    Thanks in advance!

    Thanks guys, unfortunately I have not found a SQL function that return the number of directly connected user. This is possible only on SQL Server.

    What I have is this: I created two fields in my database: a 'DB_is_used' flag and a "Username" field, and each user how want to use the database, should check these fields if it is empty, it inserts the name of its PC and use the database. Or, if the field is not empty, it will see a popup message displays the user name 'book' this database and the hedisconnect of him immediately.

    It works for me and I am satisfied.

    Kind regards

  • Connect to the Oracle database fails when you use Microsoft ODBC or OLE DB Driver

    There was a problem when you apply the KB3126587 hotfix where connections to an Oracle database using the Microsoft ODBC driver fails if run from automated processes. Running the same process manually would succeed. The update issued KB3147071 solved the problem successfully.

    Yesterday, several patched have been applied and the problem came back. The patches are: KB2862152, KB2868626, KB3163244, KB3168965, KB3170455, KB3163251.

    I saw yet no acknowledgement or difficulty of Microsoft. I prefer not to uninstall security patches, but it is a problem of production.

    Any ideas what specific patch maybe breaking it again?

    Thank you

    Josh

    Server: Windows 2008 R2

    Hello

    Post your question in the TechNet Server Forums, as your question kindly is beyond the scope of these Forums.

    http://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer

    See you soon.

  • I have a SSIS package that uses ODBC to connect to a progress database that does not work in SQL Agent

    I have a SSIS package that uses ODBC to connect to a Progress database.  It works fine in Visual Studio and it works very well in a batch file calling DTEXEC from the Windows Task Scheduler, but it does not work in the work of the SQL Agent.  It says that it cannot find the driver information.

    Hi Curt_DBA,

    The question you posted would be better suited in the MSDN Forums. I would recommend posting your query in the MSDN Forums (SQL Server Integration Services).

    MSDN Forum (SQL Server Integration Services)

    http://social.msdn.Microsoft.com/forums/en-SG/sqlintegrationservices/threads

    I hope this helps.

  • Error connecting to a remote database access violation

    I have the software on my machine (written in-house by a company I work for) to connect to a remote database from home. I have connected several times without problem, but recently I immediately get an error message as follows: "Access violation at address...". ' followed by the hexadecimal address number, when I click on the "connect" button after entering the login information. The only thing I can think of that is different is that I have changed recently, is my anti-virus software. I tried to uninstall the new software temporarily, and disable the Windows Firewall, but the problem persists. So I just can't connect to the database. This who should I look to fix this? Thank you

    Hello

    Check with a different user profile

    If you do not have a different user account, you will need to create a (see link below). If everything works fine with a different user profile, you can infer that the user profile is damaged, click on the link to find out how to solve this problem.

    Create-a-user account

    http://Windows.Microsoft.com/en-us/Windows-Vista/create-a-user-account

    Difficulty of a corrupted user profile

    http://Windows.Microsoft.com/en-us/Windows-Vista/fix-a-corrupted-user-profile

    You can also try contacting the Publisher of the software and for further assistance.

  • How can I change the screen of fast connection of GUI to database text/Dos based. (Vista)

    Just as the title says; If you could give instructions step by step on how to do so; then it would be appreciated. Thank you for your time.

    Hello

    Unfortunately, it is not possible to change the screen of fast connection of GUI to database text/Dos based.

    You can provide your comments on the forum below.

    http://mymfe.Microsoft.com/Vista/feedback.aspx?formid=83

  • How to import of existing database (SQlite)

    Hello friends,

    as I started working on blackberry playbook...

    now I m facing a problem, which, in my application I want to use existing database rather than creating a new...

    When I tried to create a new database I got an error

    That is to say. database is currently loked...

    which app is closed by the Simulator...

    When I try to import my existing database using applicationDirectory.resolvepath("abc.db");

    It allows me to read the content of the application, but not able to make changes in it...

    I tried to use applicationStorageDirectory under which the application is beginning ending with Simulator

    Please help me!

    my code look like this...

    as I m tent to access this database... for that I stuck in air file.

    var fileCon: File = File.applicationStorageDirectory.resolvePath ("abc.db");

    allows me to read-only...

    var fileCon: File = File.applicationDirectory.resolvePath ("abc.db");

    When I push copy existing database in the folder of the air, I database is currently closed error.

    var fileCon: File = File.applicationStorageDirectory.resolvePath ("abc.db");

    Please help me for this problemm

    Thank you in advance

    the application directory is read-only. App-storage is read/write. If you have an existing database file that was installed in the application directory, you must copy it into the directory app-storage. Also, keep in mind that, if the application is uninstalled, all this information is also deleted. If you want to keep the user database file in the case where they re - install the app, you can copy/create the file in the document directory.

  • To connect to an Oracle database using oracle.jdbc.OracleDriver: error

    Hello

    I am trying to connect to an Oracle database so that we can extract information on tables, views, and packages.

    Using the Data Modeler (transformation script) API, we will add these notes to the corresponding objects in the Data Modeler.

    I'll start with this:

    importPackage (java.lang);

    importPackage (java.awt);

    importPackage (java.sql);

    java.lang.Class.forName ("oracle.jdbc.OracleDriver");

    An error occurs when I run this code:

    test.png

    It must be something of Java...

    Someone at - it a suggestion?

    Problem solved! A colleague of mine referred to in this post: import def properties from Oracle Designer

    More in detail: it's this couple of lines:

    Copy the file ojdbc6.jar for... Directory of \datamodeler-home\jlib

    Add this line to datamodeler.conf

    AddJavaLibFile... /... /jlib/ojdbc6.jar

    I changed my file datamodeler.conf, DM rebooted and now is no longer an error when I try to use the Oracle JDBC drive.

  • I had to reinstall Dreamweaver and lost connection to my existing Web site.  How to reconnect with the site online to update?

    I reinstalled Dreamweaver and realized that I had lost the connection to my existing Web site.  Would appreciate any help on how to find the necessary information to reconnect.

    You need to get your hosting provider. There is no other way unless you saved the definition of Site somewhere on your computer.

  • Question about creating report guests editor BI when it connects directly to the database?

    Hello

    I create a report of BI Publisher using direct SQL server database. JDBC connection is created, then datamodel and report.

    The report is parameterized. Now I have attached the dashboard report. But now the settings are not filling. So I intend to create guests, but it is the search for field. But I don't use of RPD. So, how can I create guests when we creating BI publisher report connecting directly with the database? Please let me know.

    Kind regards
    Sam

    Hi Sam,

    I hope you got your answer for that starting from the thread OBIEE quick dashboard for BI Publisher

    Thank you...

  • JDBC connectivity with a mysql database

    I created a MySQL database, but I have problems with communication with the DB in java

    Here is the error

    java.sql.SQLException: no suitable driver found for jdbc:mysql://localhost:3306 / books

    at java.sql.DriverManager.getConnection(DriverManager.java:604)

    at java.sql.DriverManager.getConnection(DriverManager.java:221)

    to displayauthors. DisplayAuthors.main (DisplayAuthors.java:30)

    java.lang.NullPointerException

    to displayauthors. DisplayAuthors.main (DisplayAuthors.java:66)

    BUILD successful (total time: 1 second)

    ---

    I edited windowds system variables

    CLASSPATH

    .; C:\Program Files (x86)\Java\jre7\lib\ext\QTJava.zip

    CLASSPATH1 (note the 1 at the end, I don't want to replace the previous

    ., C:\Program Files (x 86) \MySQL\Connector J 5.1.30\mysql-connector-java-5.1.30-bin.jar

    ---

    Host name: localhost Port: 3306

    User name: root

    password: Tpswsd77? (changed to thios post)

    Stored connection: Instance local MySQL56

    Connection method: Standard (TCP/IP)

    HERE IS THE CODE

    public class DisplayAuthors {}

    Database URL

    public static final String DATABASE_URL = "jdbc:mysql://localhost:3306 / books."

    Launch the application

    Public Shared Sub main (String args [])

    {

    Fitting out = null; corresponds to a connection

    Statement statement = null; query statement

    ResultSet resultSet = null; manages the results

    connect to the database books and database query

    Try

    {

    establish a connection to the database

    connection = DriverManager.getConnection)

    DATABASE_URL, "deitel', 'deitel'sc');

    < defaultstate editor-fold = "collapsed" desc = "comment" >

    DATABASE_URL, 'root', 'Tpswsd77?');

    < / Publisher-trick >

    CREATE statement to query the database

    Statement = connection.createStatement ();

    query database

    resultSet = statement.executeQuery)

    "SELECT authorID, firstName, lastName FROM authors");

    process query results

    ResultSetMetaData metaData = resultSet.getMetaData ();

    int numberOfColumns = metaData.getColumnCount ();

    System.out.println ("Table Authors of books database: \n");

    for (int i = 1; i < = numberOfColumns; i ++)

    System.out.printf ("%-8s\t", metaData.getColumnName (i));

    System.out.println ();

    While (resultSet.next ())

    {

    for (int i = 1; i < = numberOfColumns; i ++)

    System.out.printf ("%-8s\t", resultSet.getObject (i));

    System.out.println ();

    } / / end while

    } / / end try

    catch (SQLException sqlException)

    {

    sqlException.printStackTrace ();

    } / / end of capture

    Finally / / resultSet, statement and connection are closed to this

    {

    Try

    {

    resultSet.close ();

    Statement.Close ();

    Connection.Close;

    } / / end try

    catch (System.Exception Exception)

    {

    exception.printStackTrace ();

    } / / end of capture

    } / / end finally

    } / / main end

    } / / end of class DisplayAuthors

    Given that you seem to be running from netbeans, you would better add the jar to the project libraries...

    And NO, you should NEVER put anything in your system classpath. It's a very bad habit, led to the equivalent of Java of the DLL hell and of course from the moment that you distribute the application to any other machine that's going to fail again.

    Add it instead of the specific CLASSPATH of the application.

    And do not put anything on the class path that has spaces in the name, it is no longer can cause problems, but don't count on that it works.

Maybe you are looking for

  • Why the disk image not eject or disappear!

    I hung out in my applications folder, then put it in the trash, but when I go back to firefox, it's just appears and starts the verification process. It's so darn frustrating. I spent 2 hours out of my day trying to solve this joke.

  • WiFi is de-energized after a few seconds?

    I have just a satellite M40X-115 intel centrino 2200bg wireles M730/pro netw/915Mchipset frequency 1.6 Ghz. Win XP operating system.My lan provider intalled a wireless modem and they say that the network is ok.As I turn on my pc network is detected.B

  • Can I set the sensitivity of my touchpad?

    I have a HP Pavilion laptop US g7-1260. How to set the sensitivity of my touchpad?

  • receive emails from me. ?

    I get about 10 emails a day to myself? also sent to my contacts at same time.content 4 tends to be the same thing with pieces of previous emails I sent and questionable links to sites.any help apreciated. I'm a newbie to real computer thanks

  • SE error windows host process (Rundll32) has stopped working on Windows Vista

    Original title: (Rundll32) Need help fixing this problem microsoft windows popup message, process host windows (Rundll32) has stopped working.