Using SQL view From SQL Express in Flex

Hello All ,  i am new at Flex and yet searching for a basic answere to even more basic question...
i am currently looking for a way o extract and import SQL views from my SQL Express database ( on my local host) and present it with RIA on desktop, grpahs Charts etc.
my question is, which way is the best to do so ? 
need i to use Coldfusion For the Data ?  and then Flex3 For the design ( i.e Graphs)?
or maybe using another ODBC program for XML file and then Connect it as Data Resource into the flex3 project
as you must see , i am a bit confused....
thanks in advance

Hi,
         If you go for AIR you can directly connect to Database and you can get the data and can be shown graphically ,
         But if you Go for Webapplication(Flex ) then definately u should use some backend like CFC,PHP,JAVA,.Net............ in order to connect to DB and use Remote Objects/HttpService and show the Result Graphically..............

Similar Messages

  • Need command to run sql script from sql prompt

    Hi,
    I am beginner in sql i need a command to run sql file from sql prompt.In notepad i have write 10 to 15 tables creation and saved as .sql i want to run this file from sql promp pls some one help.I am very great full to all users in this forum.

    You can also use the 'start' command.
    You may also want to look in the SQLPlus User Guide and Reference (for your release) at the set command for commands to set the number of lines per page, turn headings on or off, and so on:
    http://download.oracle.com/docs/cd/E11882_01/server.112/e10823/toc.htm
    HTH -- Mark D Powell --

  • Help with translating SQL query from SQL Server syntax to Oracle syntax

    Hi,
    is it someone that can help me translate following SQL query from SQL Server syntax to Oracle syntax.
    SELECT ID,
    [LMT(MTR)] = MAX(case when TYPE = 'LMT' then VALUE end),
    [AAD(KGM)] = MAX(case when TYPE = 'AAD' then VALUE end),
    [VOL(MTQ)] = MAX(case when TYPE = 'VOL' then VALUE end)
    FROM yourtable
    GROUP BY ID
    Your help is highly appreciated, thanks in advance.

    Like this,
    SELECT ID,
    MAX(case when TYPE = 'LMT' then VALUE end) LMT_MTR,
    MAX(case when TYPE = 'AAD' then VALUE end) AAD_KGM ,
    MAX(case when TYPE = 'VOL' then VALUE end) VOL_MTQ
    FROM yourtable
    GROUP BY ID-Arun

  • Using relational data from SQL data source in Planning and Essbase

    Hi,
    How do I take sample data from a SQL data source and bring it into a Hyperion Planning application? I understand that when creating Planning applications, a link between a relational data source and Essbase must be established, because the relational database holds the metadata while the database outline is stored with Essbase. However, all I am currently able to do is load the data into Planning applicaitons via EAS, where I right-click on the Application database, hit load data, and select from either a .txt file or an excel file. Do I need Oracle Data Integrator? Any help or insight would be greatly appreciated, as well as corrections to any incorrect assumptions I may have made in this post. Thank you.

    When you import your file (Excel or text), you're importing it using a Load Rule in EAS. To load from SQL, you simply create a SQL load rule. You'll load data the exact same way (via EAS), but with a different type of load rule. The load rule will contain the SQL that queries the database. You can preview your data in the load rule the same way you would with a file.
    If your SQL is very complex, I'd recommend creating a view and loading from that view. But otherwise it's pretty straight-forward.
    The only catch is that you need to configure a database connection (to your relational database) on the Essbase server. The Essbase DBA guide will show you how to do this.
    You COULD use ODI, but I tend to only use it for loading metadata.
    Hope this helps,
    - Jake

  • Populate combobox grid view from sql server

    hello,
    is it possible to populate combo box from entries in sql server database
    also is it possible to populate grid view from entries in database including image files stored in binary format
    regards,

    Yes and yes.

  • Migration issue in SQL Developer (from SQL Server to Oracle)

    Dear All,
    I am using SQL Developer 3.0 to migrate data from SQL Server 2008 to Oracle 11gR2. I used Quick Migration Wizard for migrating and everything was Ok but when it was running migration process, I got this message: “Migration actions have failed. Check the migration reports for details. : null”
    But there was not any report to check. Does anyone know how I can do it without any problem?
    Thanks in advance.

    I am working on a project to migrate from SQL Server 2008 to Oracle 11gR2. It includes some tables, views, indexes, triggers and store procedures. At first I worked on SQL Developer 2.1.1.64 but it doesn’t support SQL Server 2008 (I had to use SQL Server 2005 in its offline options). I got a lot of error when I used the offline options. I know that I may be having some problem in table or view definition in my SQL Server but if I don’t have any log file I can’t solve them.
    Unfortunately, in SQL Developer 3.0 there isn’t any option to generate a SQL comments from objects (convert to Oracle) because I need to rewrite comments if they have problem. For example I have a filed named USER that it’s a reserved word in Oracle so I have to change this field name.
    I also can’t use “Translation Scratch Editor” because it has some error to convert. For example when I use it for the following code:
    CREATE TABLE [dbo].[Table1](
         [ID1] [int] IDENTITY(1,1) NOT NULL,
         [Name1] [varchar](50) NULL,
         CONSTRAINT [PK_Table1] PRIMARY KEY CLUSTERED
         [ID1] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    CREATE TABLE [dbo].[Table2](
         [ID2] [int] IDENTITY(1,1) NOT NULL,
    [Name1] [varchar](50) NULL,
         CONSTRAINT [PK_Table2] PRIMARY KEY CLUSTERED
         [ID2] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    I receive a wrong code like this:
    CREATE SEQUENCE Table1_ID1
    START WITH 1
    INCREMENT BY 1;
    CREATE TABLE Table1
    ID1 NUMBER(10,0) NOT NULL,
    Name1 VARCHAR2(50) ,
    CONSTRAINT PK_Table1 PRIMARY KEY( ID1 )
    CREATE OR REPLACE TRIGGER Table1_ID1_TRG
    BEFORE INSERT
    ON Table1
    FOR EACH ROW
    BEGIN
    SELECT Table1_ID1.NEXTVAL INTO :NEW.ID1
    FROM DUAL;
    END;
    CREATE SEQUENCE Table1_ID1
    START WITH 1
    INCREMENT BY 1;
    CREATE SEQUENCE Table2_ID2
    START WITH 1
    INCREMENT BY 1;
    CREATE TABLE Table2
    ID2 NUMBER(10,0) NOT NULL,
    Name1 VARCHAR2(50) ,
    CONSTRAINT PK_Table2 PRIMARY KEY( ID2 )
    CREATE OR REPLACE TRIGGER Table1_ID1_TRG
    BEFORE INSERT
    ON Table1
    FOR EACH ROW
    BEGIN
    SELECT Table1_ID1.NEXTVAL INTO :NEW.ID1
    FROM DUAL;
    ENDCREATE OR REPLACE TRIGGER Table2_ID2_TRG
    BEFORE INSERT
    ON Table2
    FOR EACH ROW
    BEGIN
    SELECT Table2_ID2.NEXTVAL INTO :NEW.ID2
    FROM DUAL;
    END;

  • Tuning: how distinguish PL/SQL timings from SQL in trace and/or tkprof output?

    Hi,
    we have a performance problem with one of our customer's databases and are trying to tune it out.
    The activity in question is a long-running PL/SQL stored procedure operating more-or-less in batch mode, calling many sub-procedures along the way. The PL/SQL code has been instrumented to take timings of execution of different operations, and we are running with tracing on, and analyzing the trace output using TKPROF.
    Oddly, even though we are running through 70+ pages of PL/SQL code, with bulk-collect into large tables and nesting of SQL in other SQL cursor loops, TKPROF is reporting SQL times which account for nearly all the elapsed time reported by our log messages. I mean, we're talking within one or two percent of elapsed time.
    How can I distinguish the time spent in PL/SQL operations from the time doing an execute or a fetch in SQL? Should I just believe TKPROF when it says all the time is going into SQL?
    Thanks in advance...

    A common problem with Oracle timings is the granularity of the clock can give misleading results when viewed over many itterations. That might not be your issue but it's worth noting. I would suggest you use DBMS_PROFILER if you want to get a more accurate picture of your codes performance. In most PL/SQL processes, the SQL will account for the vast majority of the processing time (maybe even 95%+). You really have to be doing some intense string or analytical processing for that percentage to change much.
    Richard

  • Calling SQL Loader from SQL Plus

    Hi everyone,
    I currently use both SQL Loader and SQL Plus to load data and to then carry out certain DML tasks and to reinstate indexes. That all works fine but of course I need to be present to start and to monitor the various scripts.
    What I would really like to do is to be able to incorporate the calls to SQL-Loader into my SQL-Plus scripts and am wondering if this is possible.
    At the moment I run some parts of the load in 'batch' (i.e. command line calls to SQL-Loader and to SQL-Plus) but this won't work for the whole load because the batch calls (from Windows) are not able to wait for particular processes to finish before they start the next. This works OK for the SQL-Loader scripts (because they can run in parallel) but will not work for the whole load because the load needs to be finished before the further processing starts.
    Or maybe there is a way (Windows .BAT files?) to set up batch processes which are intelligent enough to wait for one action to finish before starting the next action.
    Any thoughts or any links to HOWTOs on this would be a great help.
    Regards and thanks,
    Alan Searle

    Hi Alan,
    In SQL*Plus you have the HOST command.
    I would go for the .bat solution using [START /WAIT|http://www.computerhope.com/starthlp.htm]
    Regards
    Peter

  • Connecting to network SQL Server from SQL Developer

    Hi All,
    I am trying to connect to network SQL Server from SQLDeveloper but I am unable to connect( I am getting could not connect to SQL Server...). I have searched many sites but could not find the solution. I am giving HostName as MachineName\InstanceName and keeping the port as 1433.
    Can anyone explain how that connection string should be given.
    Thanks.

    From help with additional comments
    Host Name: Host system for the Microsoft SQL Server or Sybase Adaptive Server database.
    E.g., sybase.myCompany.org (DNS name or IP address)
    Port: TCP/IP Port on which Microsoft SQL Server or Sybase Adaptive Server will listen.
    As mentioned by others, need to know how server is configured. Common values: 1433, 5000
    Retrieve Database: Name of the Microsoft SQL Server or Sybase Adaptive Server database.
    Once the other data is correct, press this to populate list box and select which database you want associated with this connection. E.g., pixar, pubs2, etc.
    Brian Jeffries
    SQL Developer Team

  • Restoration at sql 2005 from sql 2000 backup.

    Hi experts,
    Is it possible to restore a backup taken from sql 2000 database to sql 2005 database?
    And how about attaching datafiles of sql2000 into sql 2005 server?
    Thanks and Regards,
    Amit Jana.

    > Is it possible to restore a backup taken from sql 2000 database to sql 2005 database?
    Yes its possible.
    > And how about attaching datafiles of sql2000 into sql 2005 server?
    Same method of attach/deattach.
    But recommanded you first install 2000 instance restore database and do inplace sql 2005 upgrade.
    Why you can't follow recommanded mothed ?
    Regards,
    Nikunj Thaker

  • SQL query from toplink expression

    Hi,
    I have a oracle.toplink.expressions.Expression object with me which has been created using oracle.toplink.expressions.ExpressionBuilder. I want to find its equivalent SQL query(say select emp.empname,emp.empId from employee emp) which will be fired in order to fetch data i.e. find its equivalent Statement/PreparedStatement or anything which will help me obtain the raw SQL statement about to be fired.
    Please let me know if there is any soln.
    Thanks,
    Adithya.

    You can create ReadAllQuery with the expression and get the query's SQL using query.prepareCall() and then query.getSQLString().
    James : http://www.eclipselink.org

  • Using values returned from SQL for Report column names

    I am building reports against our TFS development db.
    One of the reports tracks days spent (Dwell Time) in various status categories (eg: New, Assigned, In Development, Hold, etc) for a given "ticket".
    For a fixed list of values from {Work Item].System_State, I can send the results (days in Assigned) to the column named (Assigned) for each status for each event in the [Work Item History], and then sum them for each ticket as:
    Ticket ID      New          Assigned       InDev       etc
    1230001        2                  0                 0          ...
    1230001        0                  1                 2          ....      
    SUM            2                    1                2         ....            
    However, I have many different Projects, each of which use their own Status names.
    I don't want to duplicate the same basic report, if I can avoid it.
    How can I name and generate this data for the unique Status list for each Project?
    Simplest analog is:  name = First(Fields!Status.Value, "TFSdb")
    and allows value for a column name (category) as: =IIF(Fields!Status.Value = First(Fields!Status.Value, "TFSdb"), Fields!Days.Value, 0)
    However this fails beause:
    1. It only delivers the FIRST status value, and,
    2. I cannot SUM an expression which is itself an aggregate (using First).

    RRapport,
    Is this still an issue?
    Thanks!
    Ed Price, Power BI & SQL Server Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • How to call a Calculation View from Sql ?

    Hi All,
    I'm trying to test my calulation views. Now i'd like to call it through sql. How to do it ?
    Thanks
    Sakthivek

    Hi Sakthivek,
    After you activate your calculation view successfully, you will find it under schema "_SYS_BIC" -> Column Views in your Studio. Then you can use select sql statement to query the calculation view.
    Best regards,
    Wenjun

  • How can i configure an odbc using a database from sql to my excel

    Hi, i hope you can help me
    I have an excel sheet in wich i'm working, but i need to import data from a database used SQL, but i need the ODBC connection,... I try to used the administrator ODBC, but it has no driver for me to connect it to the SQL database, ... who knows wich tool can i use?
    best regards,
    Pamela

    As far as I know -you still can't do that with the mail app on a device. You can select each contact by tapping the blue + sign to open the contacts app and you have to add them one at a time.
    These are third party apps that will let you do this - Group Email ... And there are others in the app store.

  • Create sql view from linked server ?

    server1.database1.dbo.table1
    Table1 contains columns
    Name, Author, Date, Quantity
    server2.database2.dbo.table2
    Table2 contains columns
    Id, Author
    How can I create a view on server2 that cointains all data from
    server1.database1.dbo.table1, but instead of value of column Author,
    I need a value of column Id ?

    Try the below :Its a sample method, you can use it in your actual code.
    --My local server,I created tablecreate table statuses(filestatus int)
    Insert into statuses Select 1--Created a view locally to access the objects from other server.--You need to qualify the object as server-db-schema-objectname as below--join these two tables in the view.
    create view test_view
    as
    Select B.filestatus,A.filestatusdesc From <Linkedserver>.<DBName>.<schema>.<objectname> A
    Inner join statuses B on A.filestatus =B.filestatus
    --Execute the below to get the records from different server
    Select * From test_view

Maybe you are looking for