Connecting to an Existing Database

Hi everyone,
I want to connect to an existing MS SQL database with Flex. Granted, I know that you can not directly connect to a database in Flex. But, does anyone have an example or can point to an example where someone connects to an existing MS SQl database regardless of what back end technology it is(preferably ASP.Net) and actually manipulating that data with charts. Or if anyone can create a connection with AdventureWorks sample or any sample database from MS SQL server and showing how they also manipulate that data with charts.
Best regards,

If this post answered your question or helped, please mark it as such.
These links show using Flex and PHP to connect to a MySQL database:
http://www.switchonthecode.com/tutorials/flex-php-tutorial-transmitting-data-using-json
http://www.switchonthecode.com/tutorials/using-flex-php-and-json-to-modify-a-mysql-databas e
http://www.switchonthecode.com/tutorials/flex-php-json-mysql-advanced-updating

Similar Messages

  • Members only area of website and how to connect it to existing database

    I am trying to create a members login section on an existing website. We have a MS Access database of clients, and I need the website login creation to be able to look at our database and only let the person create an account, if they are on that list. 
    I've successfully completed a walkthrough/tutorial on creating a members only area of a website, but that allows anyone and everyone to create an account. I need a way to force that check before the new user account is allowed. Any help will ge greatly appreciated!

    Hi,
    According to your description, I think your issue is more about how to connect to Access database from your web site, instead of Access development.
    Which type of connection do you want to use? Is it ADO.NET?
    If so, I suggest you posting in ADO.NET Managed Providers
    forum for more effective responses.
    If not, you can choose a proper forum based on the type of the connection or your developing language.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Error while installing EnterpriseManager grid control on existing database

    Hi All,
    While installing Oracle EnterpriseManager grid control on existing database
    it asked for deconfig an existing database control and while doing this we got an error as follows
    Getting temporary tablespace from database...
    Could not connect to SYS/(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=ceserp.computechcorp.net)(PORT=1543)))(CONNECT_DATA=(SERVICE_NAME=GRID))): ORA-12514: TNS:listener does not currently know of service requested in connect descriptor (DBD ERROR: OCIServerAttach)
    Mar 15, 2010 11:14:10 PM oracle.sysman.emcp.util.PlatformInterface executeCommand
    CONFIG: stty: standard input: Invalid argument
    stty: standard input: Invalid argument
    stty: standard input: Invalid argument
    stty: standard input: Invalid argument
    Mar 15, 2010 11:14:10 PM oracle.sysman.emcp.util.PlatformInterface executeCommand
    WARNING: Error executing /u01/oracle10g_grid/DB10.2.0/sysman/admin/emdrep/bin/RepManager -connect (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=ceserp.computechcorp.net)(PORT=1543)))(CONNECT_DATA=(SERVICE_NAME=GRID))) -repos_user SYSMAN -action drop -verbose -output_file /u01/oracle10g_grid/DB10.2.0/cfgtoollogs/emca/GRID/emca_repos_drop_2010-03-15_11-14-10-PM.log
    Mar 15, 2010 11:14:10 PM oracle.sysman.emcp.EMReposConfig invoke
    SEVERE: Error dropping the repository
    Mar 15, 2010 11:14:10 PM oracle.sysman.emcp.EMReposConfig invoke
    INFO: Refer to the log file at /u01/oracle10g_grid/DB10.2.0/cfgtoollogs/emca/GRID/emca_repos_drop_<date>.log for more details.
    Mar 15, 2010 11:14:10 PM oracle.sysman.emcp.EMConfig perform
    SEVERE: Error dropping the repository
    Refer to the log file at /u01/oracle10g_grid/DB10.2.0/cfgtoollogs/emca/GRID/emca_2010-03-15_11-13-15-PM.log for more details.
    Mar 15, 2010 11:14:10 PM oracle.sysman.emcp.EMConfig perform
    CONFIG: Stack Trace:
    oracle.sysman.emcp.exception.EMConfigException: Error dropping the repository
    at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:183)
    at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:134)
    at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:171)
    at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:486)
    at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1142)
    at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:470)
    at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:419)
    please help on this issue
    Thanks

    Based on the error below:
    Could not connect to SYS/(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=ceserp.computechcorp.net)(PORT=1543)))(CONNECT_DATA=(SERVICE_NAME=GRID))): ORA-12514: TNS:listener does not currently know of service requested in connect descriptor (DBD ERROR: OCIServerAttach)
    It looks like the installer can't connect to your existing database.
    Can you ensure that your listener is servicing the already existing database.
    lsnrctl status -> will list services
    Make sure the database you want to use as your repository is there.

  • Connecting HTMLDB to Existing 9iR2 Database

    We want to start prototyping some HTMLDB applications to an existing 9iR2 database that does not have an Oracle AS (9iR2 or otherwise) connected to it. What are my options in getting HTMLDB connected to this 9iR2 database? Can I point a 10g HTTP server to 9iR2 without having previously installed the 9iR2 AS?
    Any help would be greatly appreciated.

    Scott,
    Yes, you can use Oracle HTTP Server 10g to point to a 9iR2 database. You'll need to use at least 9.2.0.4 for HTML DB 1.6 and you may need additional patches if you plan to use HTML DB 2.0.
    Sergio

  • Remote Database connection error on local database while running a procedur

    Dear Gurus,
    I am trying to run a procedure to grant Select Access to all objects of a schema to all schema but getting below error messages:
    Error report:
    ORA-02019: connection description for remote database not found
    This is on local database and all required privileges have been given to run this procedure but I dont understand why this error is being thrown every time. I am able to fetch all the tables directly (i.e. SELECT object_name FROM user_objects where OBJECT_TYPE IN('TABLE','VIEW','MATERIALIZED VIEW') AND STATUS='VALID')
    Kindly let me know if you have any solution.
    Procedure detail:
    declare
    sqltxt varchar(250);
    cursor course_det is
    SELECT object_name FROM user_objects where OBJECT_TYPE IN('TABLE','VIEW','MATERIALIZED VIEW') AND STATUS='VALID';
    v_objnm user_objects.object_name%type;
    begin
    open course_det;
    loop
    fetch course_det into v_objnm;
    exit when course_det%notfound;
    sqltxt :='GRANT SELECT ON ' || v_objnm|| ' TO public with grant option';
    EXECUTE IMMEDIATE sqltxt ;
    end loop;
    end;
    System detail:
    Oracle 11.2.0.3/Linux 5.3
    Ragards.
    Edited by: 877938 on Mar 20, 2013 12:27 AM

    Hi,
    It seems you are fetching records from one database to other. for that you need to create dblink for that.
    Create dblink first and then try to fetch records using that dblink.
    ORA-02019: connection description for remote database not found
    Cause: An attempt was made to connect or log in to a remote database using a connection description that could not be found.
    Action: Specify an existing database link. Query the data dictionary to see all existing database links. See your operating system-specific Net8 documentation for valid connection descriptors. 

  • Installing OEM Grid Control on Solaris Sparc using an existing database

    During installing OEM 10g on Solaris, after select "using an existing database" the connect string for database (host:port:sid) never is solicited and the path for datafiles neither, then the installation cancel.
    On Windows, this type of installation in the same version work fine!
    1_ How I do to install OEM 10g on Solaris using an existing db?
    Tx,
    Diego.

    Have you installed the Management Agent for the target database?

  • How do I connect to the backend database?

    I have both the infrastructure and the mid-tier installed on the same machine. I have created an omniportlet with specific connection information (username/password/connection info) to connect to a back-end (customer) database. Is this the correct methodology to use for connecting to the back-end database? I am concerned that when the portlet is moved to a production system then the connection information will be invalid and the portlet will not work.
    Also, I have created a dblink to the backend database in the PORTAL schema, which exists in the iasdb (also sometimes referred to as the infrastructure repository, infrastructure instance). The iasdb obviously also holds the metadata repository. I can use this link within a DAD to connect to the backend database. My intention was to use this link to get round the problem of invalid connection info when the development system is moved to production, but the link does not work with omniportlets.
    I am confused as to how the backend database is connected to by OAS. Can someone please explain to me how this is done in a system which has separate machines for client, infrastructure, middle (portal) tier and backend database?

    Managed to figure out that I just have to let tnsnames resolve this issue.

  • Reverse engineering for existing database

    Hi,
    I have two different databases, one with my application (i.e. DB1), and the other with the designer installation (i.e.DB2).
    I want to get the Reverse Engineering of my app in DB1, and I know these steps:
    - Design Editor> DB Admin tab> Generate> Capture design of > Server Model.
    OK, but I get the "Create Database user" form, and the database and user name as "DEFAULT".
    What do I have to do?
    I just want designer to reverse engineer my DB1, and I think that it will store that meta info in the DB2. Am I correct?
    I have created a new workarea and container for that purpose, but should I create a "Oracle database" before capturing the server model? and that database, should be the DB1 or the DB2? both are already created, so I think that I need just the connection.
    thanks.

    You've basically got this right - DB1 is the database you are capturing from and DB2 contains the Designer repository into which the metadata is being captured.
    Designer wants to have a database definition and a schema definition in the repository to which it can attach your table definitions. In the Design Editor use the DB Admin tab to get to a place where you can create a database definition. Create an Oracle data definition for your application database (DB1) and create a schema definition (aka User) in that database to own your tables. Then those will appear as options in the Capture design of Server Model wizard.
    Yes, I know - a lot of steps for what seems to be a simple task - reverse engineer an existing database. That's Designer for you. This is one of the reasons that I say that if ALL you want is to see your database in a server model diagram, Designer is overkill. But Designer can do SO MUCH more than that - if you want to fully use it, the annoyances are worth it.

  • Installation type new/existing database

    Hi
    By accident, when we were doing an install of 10g r2 Oracle Enterprise
    Manager on AIX 5.2, mistakenly chose 'create new database' instead of
    'use existing database during the install. does anyone know how to
    change this to 'use existing database' without reinstalling?
    Thanks

    You could try export/import and then change the connection parameters in the emd.properties file to point to the existing database.

  • SharePoint Server 2010 can't connect to the Configuration Database

    Hi Techys,
    I have  a SharePoint Server 2010  Farm, and I have Installed SharePoint SP1 package,
    Then I,m trying to run the SharePoint configuration wizard, That time i have the below error.
    "Can't connect to the Configuration Database"
    I have checked all the services belongs to the sql server and SharePoint server.
    here i found, SharePoint Timer service is automatically Stopped while browsing the Central admin url.
    Please help me to resolve the above issue.
    Many Thanks,
    Madhu

    What you mean error in Config wizard, could you please share the complete error log?
    For Timer Services, check under which account it is running and check event log why its stoped?
    for CA error there are couple of possible reason for this:
    Make sure SQL related instances / services are running fine.
    Make sure your farm admin account have permission on config DB.
    Make sure Config Database Exist.
    Make sure you can connect to SQL server from your APP /WFE.
    If everything is running fine, then you may need to reconfigure the sharepiont products and technologies configuration wizard. The issues might be because of the update that might have installed some additional components for installation.
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • Migrate existing database to ASM.

    Hello all,
    I am currently working on stand alone database and i want to migrate my existing database to ASM.
    i am trying it via RMAN and i did the following changes in my database :-
    SQL>alter system set control_files='+data' scope=spfile;
    System altered.
    SQL>alter system set db_create_file_dest='+data' scope=spfile;
    System altered.
    SQL>alter system set db_recovery_file_dest='+data' scope=spfile;
    System altered.
    here "data" is the disk group
    than i shutdown the db and started in no mount mode
    so i can start the migration via RMAN
    in rman i did the following things:-
    D:\>RMAN target=orcl
    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 database Password:
    connected to target database: orcl (not mounted)
    RMAN> restore controlfile from 'D:\oracle\product\10.2.0\oradata\orcl\CONTROL01.
    CTL';
    Starting restore at 28-AUG-09
    using target database control file instead of recovery catalog
    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 restore command at 08/28/2009 01:14:40
    ORA-19504: failed to create file "+DATA"
    ORA-17502: ksfdcre:4 Failed to create file +DATA
    ORA-15001: diskgroup "DATA" does not exist or is not mounted
    ORA-15077: could not locate ASM instance serving a required diskgroup
    ORA-19600: input file is control file (D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\CO
    NTROL01.CTL)
    ORA-19601: output file is control file (+DATA)
    RMAN>
    according to me i guess i have not specified the disk group ="+data" properly or there is some other way to specify....
    please can any help me resolving this problem
    Thanks & Regards
    Pratik Lakhpatwala
    Jr Oracle DBA

    I am currently working on stand alone database and i want to migrate my existing database to ASM.
    i am trying it via RMAN and i did the following changes in my database :-
    SQL>alter system set control_files='+data' scope=spfile;
    System altered.It should be alter system set control_files='+data/control01.ctl' scope=spfile;
    See Metalink Doc ID 252219.1
    Rgds.

  • Installation issue in BOBJ XI 4.0 while specifing existing DATABASE for CMS

    Hi SDN users,
    we are in the process of installating SAP BOBJ XI 4.0 on windows 2003 and SQL 2008. We have created new datasource ( CMS and Audit database) and performed the necessary settings in system DSN in ODBC Data Source Administration.
    Test datasource connection was successful.
    During the installation, we have used the option use existing database ( microsoft SQL server using ODBC). the database which we have created are not populating to specify in the screen. we are not able to proceed.
    Could anyone let us know why the database are not apearing.
    Thanks & Regards,
    Ranadhir

    Not via a forum post.
    You may wish to open a support case with SAP.
    Note that the CMS database must be on the 64-bit, and not 32-bit, side with BI 4.x
    Sincerely,
    Ted Ueda

  • Generate ERD from Existing Database

    Hi,
    i need some help getting an ERD from an already existing database.... i'm pretty sure there are tools available... so if any one could suggest some, i'd really appreciate it.
    thanks

    user9285365 wrote:
    Sorry about the vague reply.... i created two different data sources... the first using the "Oracle in XE" driver and the second using the "Microsoft ODBC for Oracle driver" when i try connecting using the first i get the following error: _ODBC Error: 08004 [Oracle][ODBC][Ora]ORA-12154: TNS:could not resolve the connect identifier specified_So what you specified as the "server" was not found in the tnsnames.ora
    the second gives me the following: _ODBC Error: NA000 [Microsoft][ODBC driver for Oracle][Oracle]ORA-06413: Connection not open_
    Not familiar with that one
    i am using: Oracle 10g express and MS Visio 2007 my operating system is Windows 7
    Is your oracle product certified for windows 7?
    thanksFWIW, I once had an issue where two supposedly identical desktops, running the same access (odbc) file (same, as in same, from a shared server) and one had to use the oracle driver, the other the MS driver .... I avoid odbc every chance I get.

  • OEM Grid control 10.2.0.1 installation using existing database 10.2.0.3

    Hi,
    I am planning to install oem grid control 10.2.0.1 using existing database 10.2.0.3 for storing repository on HP_UX 64 bit PARISC.
    Can it be possible, If not whats the reason and what issues it may arise.
    If it possibel can anyone explain me the correct steps and is it compulsory to take full backup(we cant take ful backup bcoz space issues)

    Yes, you must download and install the 10.2.0.1 version and then patch it up to the 10.2.0.4 version.
    http://www.oracle.com/technology/obe/obe10gem/install/index.html
    The above link shows you the install routine when using a new database, the steps for the existing database are only slightly different, all you need are the connection details for that existing database and you should be ok.
    As for taking full backups of the Grid Control repository, I know many choose not to, space is always a big concern, but this depends on how critical your repository is to you. If you need it for the auditors, well then I'd suggest acquiring some more hard disks to up your space.

  • Is there any tools can check for existed database ?

    hi all, is there any tools that can check for that existed database after inserted a database to Ms access??

    Then you'll open a connection and then do a Select from table to retrieve information. (and close afterwards)
    /Y 
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

Maybe you are looking for