How to use database without wizard

Can anyone help me to use recordsets without using the appwizard at the creation of my project?
the purpose is to input on the database values from a form without using a database project, so in my MFC project I do the following and then I faced problems :
In the class which I use the database I add the member variable
CDatabase m-Mydatabase;
on an "OnButton" function of this class I do :
m_Mydatabase.Open(NULL,FALSE,FALSE,stringconnect)
I have many dialog boxes, each dialog has a form from which I get data and put them on the database and vice versa.
I create fo each dialog box a RecordSet, and I include the .h file of the record set in the dialog class in which I'm going to use it.
So now how to use this recordset and put the values from controls to database ?
thank's in advance.

MFC? CDatabase?
Hmmmm.....are you aware that this forum is for Java (a programming language) and you are asking a question about MFC (Microsoft C++ windows framework.)
Perhaps if you could clarify the exact problem that you are having with java, jni or one of the other java libraries?

Similar Messages

  • How to use database look up table function in xsl mapping

    Can anybody tell me how to use database look up table function while mapping xsl between 2 nodes.
    I have an XML file coming in and depending on one of XML elements we need to decide which further path to take. But, using this XML element, we need to query database table, get metadata and accordingly take appropriate path. I have written lookup function which returns metadata value.
    Now, the issue is how do I pass the XML element valu as input to look up function? When I tried to drag it to the input node of lookup function, it throws an error like "Maximum number of parameters exceeded"
    Thanks,

    If the lookup table is always going to remain the same (e.g. a character generator or something similar) you can place the values in a 2D array constant on your diagram, with the input value as one column, the equivalent as the other. When you need to perform the lookup you use an index array to return all the values in the "input column", search it using "search 1D array" and use the resulting index number to index the other column's data. If the values may change, then it would probably be best to load an array control with your equivalent values from a file.
    P.M.
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

  • How to use Database views in XI

    Hi Folks,
    Any idea about how to use Database views for sending and receiving messages in XI ?
    Regards,

    Farooq,
    My doubt is do i have work in the same fashion as if i am working on a Database Table...?
    For Ex :
    Creating Source and Target Data structure for JDBC adapter in the same format....etc
    Regards.

  • HT5457 How to use facetime without wifi, I use Iphone 4S

    How to use facetime without wifi, I use Iphone 4S

    Only if your iPhone is 4S and your carrier supports it.
    Read this: http://support.apple.com/kb/TS4400

  • How to use Database adapter as inbound adapter without having polling strategies?

    Hi All,
    I have a requirement wherein I have to use Database adapter to retrieve the data for every half an hour from one(X app) database and update that data into another application(Y app) .That database adapter will be along with BPEL process.My Flow would be like this:
    Database Adapter( In 'exposed services' section) ----->   BPEL (in 'Components') -----> Y app service( in 'External References' section)
    My questions for each step are below
         1) I have to retrieve the data from database(x app database) for every half an hour.So I have to schedule my whole process such that it should execute for every half an hour.
    Means I have to get  whatever the data is updated in the last half an hour in that database.
          The database adapter should be inbound in SOA composite editor(in 'Exposed services' section).
    But in order to have inbound adapter,we have select the 'Poll for New or Changed Records in a Table' option in turn we have to select one of polling operations below:
             Delete the Row(s) that were Read
    Update a Field in the [Table_Name] Table (Logical Delete)
    Update a Sequencing Table
    Update an External Sequencing Table on a Different Database
    Control Table Strategy
    But the problem is I don't have any control on the database(X app database) ,So (I can't update any data on that table,because that table may not have a field or table to update the processed rows)I can't choose any of the above operations.
    How can I achieve what I want that is to retrieve the data and schedule the process?
    Thanks in advance.

    Hi Heckler,
      Thank you very much for your answer that I can proceed further somehow.
    I still need to have some clarifications.
    In order to have a process which retrieves the data (Inbound operation) and updates the data into other application, the data(from X app)  should be the request(through DB adapter) of the BPEL process.
    X app does not do anything to send.We have(the BPEL process) to receive the data (or) no event is triggered.
    The flow :
    Database Adapter( In 'exposed services' section to retrieve data) ----->   BPEL (in 'Components') -----> Y app service( in 'External References' section)
    How can we ensure the data will be  request to BPEL process(means it will be in 'exposed services' section in SOA composite editor) for every half an hour if we use pick activity and database adapter as first activity?
    When we use ''Poll for New or Changed Records in a Table' ,then only adapter becomes inbound and comes into the 'exposed services' section.I can't use it as I don't have any control on the source table.
    I have this confusion before starting the process.Please help me to clear out the doubts.
    And this whole process should be executed automaticallly for every half an hour(means it creates instance for every half an hour)  Once we build the BPEL process.
    How to schedule it?
    And where do I need to create control table ?You mean I have to use some different database where in I have to create the table?

  • How to use Database Adapter in BPEL

    I want to use Database Adapter in BPEL to transfer data from one table to other table and the data is still hold in the read table?
    I can find a example from http://download.oracle.com/docs/cd/B31017_01/integrate.1013/b28994/adptr_db.htm#BDCIGDCB.
    And the general design of my BPEL is as following:
    1. Add a "status" column to the read table. And alter the value of status column of all data in read table to "unreaded".
    2. Then create a empty BPEL (BPELAdapter) Project.
    3. Add a Database Adapter:
    (1) In step 1 of Adapter Configuration Wizard, configure the Service Name to datain.
    (2) In step 2, configure the database connection.
    (3) In step 3, choose "Poll for New or Changed Records in a Table".
    (4) Then click Import Tables button, and choose the read table.
    (5) In step 5, choose a column.
    (6) Don’t do anything in step 6 and 7.
    (7) In step 8, choose "Update a Field in the [Datain] Table (Logical Delete)".
    (8) In step 9, configure Logical Delete Field to STATUS, configure Read Value to readed and configure Unread Value to unreaded.
    (9) Don’t do anything in step 10 and 11.
    4. Add a receive activity to connect to above database adapter.
    5. Add another Database Adapter. Then configure this database adapter service WSDL:
    (1) In step 1 of Adapter Configuration Wizard, configure the Service Name to dataout.
    (2) In step 2, configure the database connection.
    (3) In step 3, choose Perform an Operation on a Table (and all items under it).
    (4) Then click Import Tables button, and choose the write table.
    (5) In step 5, choose a column.
    (6) Don’t do anything in step 6, 7 and 8.
    6. Add a invoke activity to connect to above database adapter.
    7. Add a assign activity between the receive activity and invoke activity. And configure the assign copy operation.
    But after I deploy this BPEL project to the BPEL server and invoke this project, I get following error. Meanwhile, this BPEL don't take effect.
    The following exception occured while processing this request:
    Can't find partnerLinkType 2.
    in
    "file:/D:/soft/SOASuite/product/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.bpel_BPELAdapter_1.0_e82210b05e4d3e997eed581d0d220293.tmp/_BPELAdapter.wsdl" WSDL to find PartnerLinkType "{http://xmlns.oracle.com/pcbpel/adapter/db/datain/datain_plt"。
    How to resolve?
    Thanks,
    Melody

    Now, I can insert data into the table through Database Adapter.
    But still can't select data from the table through Database Adapter.
    Above error still happen when invoke the read database table with Database Adapter project:
    Can't find partnerLinkType 2.
    in
    "file:/D:/soft/SOASuite/product/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.bpel_BPELAdapter_1.0_e82210b05e4d3e997eed581d0d220293.tmp/_BPELAdapter.wsdl" WSDL to find PartnerLinkType "{http://xmlns.oracle.com/pcbpel/adapter/db/datain/datain_plt"。

  • How to recover database without archive files

    Hello,
    I've a test database without archive files and I need to know how to recover it without using archive files.
    What is SQL command to recover database wthout archives?
    Thanks in advance for your help.
    Regards,
    Carles

    There are serveral information missing in this posting and as a support personnel, I would like to find out more when I see postings like this.
    1. This person wants to "Test" his backup and recovery in NOARCHIVELOG mode.
    2. He/She did not say his database had already crashed or had a problem.
    3. He/She did not give any indication the kind of scenario he wants to recover from.
    4. He/She did not mention the state of his database at the time of he posting.
    5. He/She did not mention the Release of his Oracle Server or Platform.
    6. He/She did not mention the type of backup he already has in place (although provided later as Full COLD Backup). How "genuine" is the back?
    7. What actions has already been taken to attempt recovery.
    In my support experience, I normally would go through a list of questions witht he use/client to get the full picture of the current status of the database before I give answers that would worsen situations, especially in a Disaster Recovery sitaution.
    Personaly, I would suggest you have a look at the list above. One of the most important is number 3 (The Recovery Scenario), then number 4, number 6 and 7. Number 7 will determine the situation of your database. So, when you ask for SQL commands to use, there are different commands for different kind of recovery depending on what has gone wrong or what kind of file is damaged (Datafiles, Logfiles, Control Files, one tablespace, one table, entire database gone, etc).

  • How to use Aggregate Persistance Wizard in OBI EE 11g (11.5)

    Dear All,
    I am trying to use Aggregate Persistance wizard from BI admin tool (11.5).
    I created a repository based on SH schema (oracle 11.2) , and then from Tool->Utilities-> menu tried to invoke Aggregat persisatnce wizard.
    Very first time I was able to click 'Execute' button by selecting this wizard from the list, but now , no matter wht I can not invoke the same as 'Execute' buttion is permanently disabled.
    Please tell me what it the reason for this. Why execute buttion is disableed. IF I select , any other wizard from the list, this button is enabled, but as soon as I select aggregate persistance from the list, the button disables, and I am not able to move forwred.
    I ws trying to learn to create aggrages using this wizard, but can not go further as this buttion is disabled. I thought it might have happend due to some problem, so I stoped the BI services , shutdown the laptop, and rstared the BI services, and tried to recreated th rpd from scratch, which I could , but as soon as I go to Tools-Utiities and select aggragate persistance , I can not do it as the exectue buttion is diableed. What is the issue, and how to enable this again.? AM I doing somthing wrong or missing some step.?
    Please help me to understand the issue so that I can resolve..
    Thanks and Regards
    Santosh

    Before I read that blog I use another vo for sum but after that blog decide to use analytic fuction becuase we have some page that have to many dvt graph and table and know we use seperate vo for them and it has not good performance and too many query must run in database ,I want to have 1 vo with some analytic function for graph and tables

  • Using database without ODBC

    It's possible to use a database without ODBC in Labview??

    IDILIO wrote:
    Hi Rolf,
    At this moment I m using the Microsoft ODBC driver for Oracle and it works ok, but my problem is when i do several reads at the database it reflects in a big delay for the Front Panel.
    As i know that the ODBC driver is a very slow method to access database i m searching for a faster way to do it. Do you have any suggestions?
    It's not ODBC that is necessarily slow. It is usually the way you retrieve data that has a lot more influence on the speed of the data retrieval. In the case of the Microsoft ODBC driver it might be that this driver is not specifically optimized for speed for various reasons.
    First implementing someone elses protocol is always difficult (not sure how well Oracle documents their protocol) and the temptation to stop when it is working rather than when it is working perfect is much bigger. Also it is of course not in Microsofts interest to provide you with a solution for Oracle that outperforms their own SQL Server interface so that is even one more incentive to stop when it is working rather than when it is working perfect.
    Have you tried to use the Oracle ODBC drivers? They might be more optimized so that retrieving data through ADO can be faster.
    Very important is how you retrieve the data however. The classical and simple way of retrieving data element for element is very slow. For this ADO/OLE DB has introduced rowsets which query several rows of a query result at once in one single driver request and then later allow the client to retrieve the elements locally into the native data. This is for remote databases always a huge performance improvement, since the bottle neck here is the network communication and not the memory manager or IO interface.So requesting one whole bunch of rows at once instead of element by element reduces the network traffic substantially and increases the performance at the cost of some extra memory usage for local caching. And the best thing is that the ADO rowsets can be mapped to ODBC cursor sets if the ODBC driver supports cursor sets and the ADO ODBC bridge does that transparently for you. Accessing ODBC directly you could also use cursor sets, but the API for doing that is really not for the faint hearted. ADO rowsets in comparison are very simple to use.
    Try to read a bit about ADO database query optimizations on the web to get an idea of the techniques used and they usually can be quite simply translated to ADO methods as used in the Database Connectivity Toolkit or any of the other ADO based toolkits out there.
    Rolf Kalbermatter
    Message Edited by rolfk on 01-26-2007 04:14 PM
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How to use forfiles= without recreating over and over?

    I’m struggling trying to get some file testing done and can’t figure what the right combination of commands should be. The goal is to have a number of files created (64, for example), then run different tests on those files, varying the number of files tested (from 4 doubled to 64, for example).  Things work fine if I have the rd section of the script set as:
    rd=f4,fwd=fwd4,files=4,format=yes
    rd=f8,fwd=fwd8,files=8,format=yes
    rd=f16,fwd=fwd16,files=16,format=yes
    rd=f32,fwd=fwd32,files=32,format=yes
    rd=f64,fwd=fwd64,files=64,format=yes
    The problem with this is that if I want to repeat the test or run a different test, the files will be recreated, taking much longer than necessary, as well as possibly causing storage specific issues. If I use “format=restart” or “format=no”, I end up with an error message such as:
    old depth=1; new depth=1
    old width=1; new width=1
    old files=64; new files=4
    I’ve tried using”forfiles=(4-64,d)”, but that also gives me errors similar to the above. The overall goal is to have a directory with a specific number of files of the specified length (files=64,format=only on a special rd line?), then run multiple tests, varying the number of files to be tested without having to recreate them every time. I’ve tried all combinations of forfiles, format=, and most other keywords I can think of, but just can’t seem to be able to get things to work without vdbench telling me that I can’t test ’n’ files if the directory contains a number of files other than ’n’. Same file sizes in all cases; just want to test a different number of them.
    The real question is how I can use the forfiles= command in a script that will be run many times without having to create the files each and every time. I’m clearly missing an important concept, but after a week of trying, I can’t figure out what it is.
    Any ideas?

    Correct me if I am wrong: You want to have 64 files created, and then test using, then 8, then 16, etc.
    'forfiles' won't do this; the file count is an integral part of of a file system structure and can not be changed without starting all over with a complete format.
    How about using for 'workingsetsize' parameter? This won't allow you to directly specify the amount of files, but if your file sizes are all the same then you'll just have do do a little math.
    I just ran this:
    fsd=default,depth=1,width=1,files=100,size=10k
    fsd=fsd1,anchor=r:\junk\fsd1
    fwd=fwd1,fsd=fsd1,xfersize=4k,fileio=random,fileselect=random,threads=1
    rd=default,elapsed=3,interval=1
    rd=rd1,fwd=*,operations=(read),fwdrate=100,format=once,forwss=(20k,40k,60k)
    Note the use of 'format=once'.
    This is the result:
    C:\vdbench504\output>grep -i created logfile.html
    10:31:59.151 FILE_CREATES        Files created:                               100     100/sec
    10:31:59.152 DIRECTORY_CREATES   Directories created:                           1       1/sec
    10:31:59.235 localhost-0: Created workingset=20k subset for anchor=r:\junk\fsd1 using 2 of 100 files.
    10:32:03.405 localhost-0: Created workingset=40k subset for anchor=r:\junk\fsd1 using 4 of 100 files.
    10:32:07.297 localhost-0: Created workingset=60k subset for anchor=r:\junk\fsd1 using 6 of 100 files.
    Hope this helps,
    Henk.

  • How to use BI Integration Wizard ?

    When I click BI Integration Wizard tag,error message is : warning 2003:Zoom the current diagram is to a level of as iview or a service?
    what's wrong with it?
    Anyone know?
    Thanks!

    Hi,
    the error clearly saying the solution.
    if you want to work with BI integration wizard ,creat a model and drag a iview to it them drill down to the iview level then clcik on BI integration wizard then it will work.
    reason is why we are using BI integration wizard ? to get the queries from BI right
    but to drag the query or BI service to VC design board we should be in Iview level.
    hope it helps you
    Regards,
    Govindu

  • How to use Time series Wizard.

    It is Table (Month Ago Fact) in paint.rpd
    It is not use Ago function.
    Loot at Month Ago Fact`s Properties,
    It is use Time series wizard.
    But I don`t know where it is.
    Please~~Help me~~~
    I need to use Time series wizard...T.T
    글 수정:
    user626249
    글 수정:
    user626249

    I think the following link will help you
    http://www.rittmanmead.com/2007/04/30/obi-ee-time-dimensions-and-time-series-calculations/

  • How to use database control to execute sql queries which change at run time

    Hi all,
    I need to execute sql queries using database controls , where the sql changes
    at run time
    based on some condition. For eg. based on the condition , I can add some where
    condition.
    Eg. sql = select id,name from emp where id = ?.
    based on some condition , I can add the following condition .
    and location = ?.
    Have anybody had this kind of situation.
    thanks,
    sathish

    From the perspective of the database control, you've got two options:
    1) use the sql: keyword to do parameter substitution. Your observation
    about {foo} style sbustitution is correct -- this is like using a
    PreparedStatement. To do substitution into the rest of the SQL
    statement, you can use the {sql: foo} substitution syntax which was
    undocumented in GA but is documented in SP2. Then, you can build up
    the filter clause String yourself in a JPF / JWS / etc and pass it into
    the DB control.
    For example:
    * @jc:sql statement="select * from product {sql: filter}"
    public Product[] getProducts(String filter) throws SQLException;
    This will substitute the String filter directly into the statement that
    is executed. The filter string could be null, "", "WHERE ID=12345", etc.
    2) you can use the DatabaseFilter object to build up a set of custom
    sorts and filters and pass that object into the DB control method.
    There have been other posts here about doing this, look for the subject
    "DatabaseFilter example".
    Hope that helps...
    Eddie
    Dan Hayes wrote:
    "Sathish Venkatesan" <[email protected]> wrote:
    Hi Maruthi,
    The parameter substituion , I guess is used like setting the values for
    prepared
    statements.
    What I'm trying to do , is change the sql at run time based on some condition.
    For example ,
    consider the following query :
    select col1,col2 from table t where t.col3 > 1
    At run time , based on some condition , I need to add one more and condition.
    i.e. select col1,col2 from table t where t.col3 > 1 and t.col4 < 10.
    This MAY not address your issue but if you are trying to add "optional" parameters
    you may try including ALL the possible parameters in the SQL but send in null
    for those params that you don't want to filter on in any particular case. Then,
    if you word your query
    as follows:
    select col1, col2 from table t where t.col3 > 1 and (t.col4 = {col4param} or
    {col4param} is null) and (t.col5 = {col5param} or {col5param} is null) ...
    you will get "dynamic" filters. In other words, col4 and col5 will only be
    filtered if you send in non-null parameters for those arguments.
    I have not tried this in a WL Workshop database control but I've used
    this strategy dozens of times in stored procedures or jdbc prepared statements.
    Good luck,
    Dan

  • How to use SQLExec without the ODBC error

    When I execute the query using SQLExec it gives alarm on Excel ODBC driver.Please provide detailed instructions on how to use this object.

    Mani,
    I have found an example that you can use to help you in your development of your Lookout application. This example will eventually be found in the resource Library of the Developer Zone.
    Attachments:
    sqlexcel.zip ‏132 KB

  • How to Use XMLHttp without using AJAX in JAVA

    Hi...
    Can any one tell me how to use XMLHttp using Java( not with AJAX or JavaScript). I have one requirement to post one Request to another vendor. that vendor is supporting XMLHttpRequest (developed in ASP). when i try to post request using HttpURLConnection connection it is giving wrong response. But when am posting same request by using VB standalone tool which is using XMLHttp which is provided by vendor it giving correct response.
    please any one tell how to use XMLHttp in JAVA

    Your code will respond to changes in selection.
    To do the same for a JButton you can do:
    JButton button = new JButton("hello world");
    button.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            // say hello
    //or you could do
    button.addActionListener(al);
    ActionListener al = new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            // hi
    // or use an inner, nested class that implements ActionListener
    // or an inner Action class
    button = new JButton(action);
    private Action action = new AbstractAction("mahbuhi") {
        public void actionPerformed(ActionEvent e) {
            // yes
    // or you could use an outer class that implements ActionListener...
    MyListener l = new MyListener();
    button.add(l);

Maybe you are looking for

  • Java sun Application Server  9 error

    When trying to deploy an application i get sql error. Using Netbeans 5.5. The database is mysql. Using Create Entity from Database wizard Any idea what i can do to fix this? Deploying application in domain failed; Internal Exception: java.sql.SQLExce

  • IBook screen stays black at reboot no matter what keys I hold down

    Hi, I posted a very similar issue a while back and was able to resolve it with some people's help: http://discussions.apple.com/message.jspa?messageID=13196227#13196227 This time, I had to force shutdown cause the finder wasn't responding when I was

  • I have no sound on FireFox, or IE, But I do have sound on Chrome and PC

    Hello. Yesterday, (9/9/14) I was watching videos on my PC, using FireFox, in the evening I went and had a shower, I got back and without any apparent reason, FireFox stopped producing sound. I installed Chrome after checking all the basics, and Chrom

  • Is there a way to track the origin of an iMessage?

    I've been receiving messages from an email address through iMessage and was wondering if there's any way to locate where the messages are coming from? Not to a specific degree.. finding out the country the messages are coming from would be useful.

  • Variant Problem in Web Template Precalculation IMP

    I am having a peculiar issue with Reporting Agent in Precalculation of Web Template. I created a web template for my query, had all relevant options set in Reporting Agent and scheduled the package. I also created a variant(ZVARIANT_1) for  the main