Storing data in database

create a table called "details" in MS SQL.create a DSN named userdsn that connects to the details table
create an app that has 5 text fields and a submit button . when the user clicks on the submit button, a connection should be made to a DSN
named "userdsn". The txt in the text fields should be stored in the "details" table.
need help with the code for this program.

Do you want us to do this for you?
We arent here to do it for you, ask specific problems related to your code, and then we will help

Similar Messages

  • BPM: write to DB, BPM error, rollback of stored data in database possible??

    hello together,
    i will have following problem:
    i will send information from outside through XI over BPM and RFC to a SAP r/3 system. if the bpm process has an error after the storing information into the database all changes in the database have to be make undo. but how can i do this? how can i handle a rollback in the database regarding to BPM?
    thanks a lot
    alex

    Hi Sravya,
    it is not a specified error. i just want to know how to handle an error or exception if data are stored in a database (rollback and so on).
    the next question i have: when a bpm will be stopped by an exception handling or an error and i have the possibility to restart it (haven't i??) at which point of the bpm the restart will begin? at the point of error or at the start point of the bpm??
    thanks a lot
    alex

  • LCDS 2.5.1: Problems storing Date() in database

    Hi all!
    I hope someone is able to help me with with this:
    I've got a [Managed] [RemoteClass] public class Project, that is stored and updated just fine on Microsoft SQL Server, using msbase.jar and mssqlserver.jar from Microsoft.
    However, as I include a Date(), the LCDS complains about not recognizing the data type:
    [Flex 3] 08/07/2008 13:52:30.525 [DEBUG] [Service.Data.Transaction] Started transaction using jndi name: java:comp/UserTransaction
    [Flex 3] 08/07/2008 13:52:30.540 [DEBUG]
    [Service.Data.SQL] SQL Assembler jdbc exception on operation=update-item error=java.sql.SQLException:
    [Microsoft][SQLServer 2000 Driver for JDBC]Unable to determine the type of the specified object.
    at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
    at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
    at com.microsoft.jdbc.base.BasePreparedStatement.setObject(Unknown Source)
    at flex.data.assemblers.SQLAssembler.setSQLParameters(SQLAssembler.java:1342)
    at flex.data.assemblers.SQLAssembler.updateItem(SQLAssembler.java:1206)
    at flex.data.adapters.JavaAdapter.doUpdateItem(JavaAdapter.java:1659)
    I've tried playing the RemoteClass, extending Date(), trying variations the data-management-config.xml without any success.
    Anyone worked with dates and MSQL?
    Are there newer versions of msbase.jar and mssqlserver.jar? Other ways?
    Regard,
    Vegard

    This is a bit similar to a problem I had about a year ago... I believe my error may differ slightly because I was using the SQL Server 2005 edition of the driver:
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60&catid=583&threadid =1289201&messageid=4664480
    The workaround I ended up using was not something I was happy with, but this was for a small internal project so it was good enough for me. As I said at the time the solution is "a bit dodgy", and I offered the diffs for the jTDS source but nobody has asked to date. I may still have these somewhere, but they will be for an out of date version of the driver by now.
    I'd suggest contacting Adobe support if you have an agreement in place, perhaps there is a patch or better workaround than I could come up already available.
    Altering the database driver is really not ideal, and if the source to SQLAssembler was available I believe it should be fairly simple to implement a workaround there.
    It may also be worth confirming this still occurs in version LCDS 2.6.

  • How to store data into database by reading sql statements from text file

    how to write java program for storing data into database by reading sql statements from text file

    Step 1: Create a property file to add various queries.
    Step 2: Read the properties file using ResourceBundle
    Step 3: Use the jdbc to execute the query read from the property file.
    So in future if you need to change query no need do any modifications in java program. But depends on how you use the property file.

  • How to get values/data stored in the database into a list-item.

    how to get values/data stored in the database into a list-item.
    i tried to make a list item without any values assigned to it...but i got the below error.
    FRM-30191: No list items defined for required poplist.
    or
    FRM-32082: Invalid value for given item type.
    List EMPNO
    Item: EMPNO
    Block: EMP
    Form: MODULE5
    FRM-30085: Unable to adjust form for output.
    then according to some docs, i tried the the following for the trigger
    when-new-form-instance
    declare
         rg_name varchar2(40) := 'emp_rec';
         status number;
         groupid recordgroup;
         it_id item;
    begin
         it_id := Find_Item('empno');
         groupid := create_group_from_query(rg_name, 'select empno from emp');
         status := populate_group(groupid);
         populate_list(it_id, groupid);
    end;
    but yet didnt work... :(
    so how the heck do i get values fetched from the database table into the list item?

    for list items you need to values in the record group, one is the shown value and one is the returned value.
    Check out the online help for the populate_list built-in.
    You'll need something like select ename,ename from emp as the record group query.

  • Data encryption within Azure website storing in Azure database

    I am wondering what the best way to encrypt/decrypt my documents (which will be stored within my database) while at rest. My web app will allow user to upload document and share them with other people so they can download them.
    I want the encryption keys/intial vectors to be generated from code so there is no user input. Here is my current thought which is a hybrid of AES/RSA.
    Create a new table called keys within my database which will look like the following...
    ID | Key | Vector
    then when a document is uploaded the Key/Vector is generated and used to encrypt the document and then the document is saved into the document table returning the document ID, which will be stored within the new table in the ID field along with the key and
    vector.
    Then i somehow need to protect the keys as anyone who grabs my database will have access to all the doucments still as the keys are there!
    So i was thinking i would upload a private certificate into Azure storage and store the public certificate inside my web app so before the key/vector is saved my application will encrypt them with the public certificate.
    Then when a user downloads a document, the app will connect to my Azure storage account and grab the private key, it will grab the row from key table associated with the document id they are trying to download and then it will use the private key to decrypt
    the key/vector then it will use the key/vector to decrypt the document.
    Does this seem the best way forward for how to do it, am i way off, or is there a security hole within this solution?

    All your keys are still the same so long as you use one cert to do the work. (and they're all still in one place).  If the app downloads the private key, well - the app and anyone in the middle has the key to figure out the rest and decrypt all the
    data.  You'll  struggle to make good security just by adding levels of effort or middle steps like that.
    What you're doing is kind of like storing the key to your house in your car, and the car's key is in the car's door lock.  You've just added a single step to get inside your home. 
    If I have your DB, I probably have your code, which means I know how to do the rest, and since everything is public, so is the resultant data.
    What I'd do is have Azure Storage holding the encrypted data, and a key share table.  Use the DB as an index if you feel you need, but it's cheaper to go with just storage.
    Each app would create, have, and hold privately, an AES private key. The app would somehow initially upload the public key for the user to the key share table via your service.
    When user A wanted to send to user B, they would get B's public key from the key share.  The App would encrypt A's Document and only then send the encrypted data to B's 'mailbox'. Later, B would come along and see a file was waiting.  They'd download
    the encrypted data and then decrypt it with their private key which has never left their app/device/wherever.
    Think about making every private key 'private' to the entity owning it.  Don't ever store/share/transmit a private key where any public entity can get it.  That's the only way it'll work.
    To make things even harder, you can do things to the data before document encryption, (and after) but never mess with the one golden rule of AES:
    Keep "private" private, private!
    Darin R.

  • Storing Text, Document, PDF Kind of Data inside Database

    Hello All
    Please Provide me any Document where I will get Information Regarding the Above
    One (Storing Text, Document, PDF Kind of Data inside Database)
    The BFILE Concept is Not USED HERE
    The data should be stored in the BLOB field within the Database.
    Regards
    Madhu

    The following can u a fair idea....
    http://www.dba-oracle.com/t_storing_ms_word_docs_database.htm
    Re: How do we store this.
    http://www.databasejournal.com/features/oracle/article.php/3305771

  • How is the data of Oracle BPM stored in the database

    Hi,
    I am new to Oracle BPM and I want to know where are the activity of my published processes stored in the database, if you have some articles or tips I will thank you a lot, I was looking for something in the internet but without sucess.
    Thanks

    Have a look at the WF tables under the SOA Infra schema.

  • Getting an Error While Retrieving a Blog Data From Database

    Hi,
    I am trying to make a blog. I  have successfully instered the blog into the database. Now I have displayed the stored blog on the main page and tried linking it to the database to open the blog on the seperate page.
    Now when the data is linked to the destination in the data base, it should open what ever is stored in the database. But instead I am getting a strange error. It gives me an error of PAGE NOT FOUND along with the data stored in the database. It does retreive the data but also displays the PAGE NOT FOUND error. The image of dataset displayed on main page is given below:
    The error which is displayed when I click the link is displayed below:
    Can anyone please tell me how can I remove this error and get only data stored in the database?
    Any material or help will be very much appreciated.
    Regards,
    Bilal A. Khan

    Hi,
    Thank you very much for the reply. I have made a seperate table of Blog in the database with several fields in it. I then made a simple text boxes, text field and a submit button and with insert command I insterted it in the database. The insertion works fine.
    After that, I recorset of blog was made in the dreamweaver on the main page and simple repeat region was put on the table along with the data fields. After that I linked the data field with the data base like in the picture given above.
    All the data is stored in the root folder and all data is stored in the database. I am using PHP and MYSQL for develpment and using WAMP Server.
    I hope I have explained about how I have made the blog. If I have not answered what you had asked, please tell me again, I will provide you with more information.
    Regards,
    Bilal A. Khan

  • Image not storing in SQLite Database

    Hi All
    I am creation an application in WPF C# in which i have created an Ink Canavs 
    now i want to insert the InkCanvas  Data or stockes in SQLite Database for that i hv created an folder in my application
    and on"btnSaveCanvasImg" button Clicked i am saving the image of InkCanvas in a folder and on "btnSaveImgInDatabase" button clicked The saved image stored in the database 
    But when i clicked on"btnSaveCanvasImg" button image saved in folder , but when clicked on "btnSaveImgInDatabase" button the image doesn't store in the database.
    following is my code
    XML:-
    <Window x:Class="InkCanvasInDatabase.MainWindow"
            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            Title="MainWindow" Height="800" Width="600">
        <Grid>
            <InkCanvas Name="MainInkCanvas" HorizontalAlignment="Left" Height="500" VerticalAlignment="Top" Width="595">
                <InkCanvas.Background>
                    <ImageBrush ImageSource="C:\Testimonial_Project\Assets\Images\notePaper.png"/>
                </InkCanvas.Background>
            </InkCanvas>
            <Button x:Name="btnSaveCanvasImg" Content="Save Canvas Image" HorizontalAlignment="Left" Margin="33,599,0,0" VerticalAlignment="Top" Width="200" Height="51"
    FontSize="20" Click="btnSaveCanvasImg_Click"/>
            <Button x:Name="btnSaveImgInDatabase" Content="Save Image In Database" HorizontalAlignment="Left" Margin="281,599,0,0" VerticalAlignment="Top" Width="238" Height="51"
    FontSize="20" Click="btnSaveImgInDatabase_Click"/>
        </Grid>
    </Window>
    C# Code:-
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows;
    using System.Windows.Controls;
    using System.Windows.Data;
    using System.Windows.Documents;
    using System.Windows.Input;
    using System.Windows.Media;
    using System.Windows.Media.Imaging;
    using System.Windows.Navigation;
    using System.Windows.Shapes;
    using System.Windows.Ink;
    using System.Windows.Ink.AnalysisCore;
    using Microsoft.Win32;
    using System.IO;
    using System.Data.SQLite;
    namespace InkCanvasInDatabase
        /// <summary>
        /// Interaction logic for MainWindow.xaml
        /// </summary>
        public partial class MainWindow : Window
            string imagename;
            public MainWindow()
                InitializeComponent();
            public void loadInkAnalyzer()
                InkAnalyzer theInkAnalyzer = new InkAnalyzer();
                theInkAnalyzer.AddStrokes(MainInkCanvas.Strokes);
                AnalysisStatus status = theInkAnalyzer.Analyze();
                if (status.Successful)
                    saveInkCanvasBitmap();
                else
                    MessageBox.Show("Recognition Failed");
            public void saveInkCanvasBitmap()
                RenderTargetBitmap rtb = new RenderTargetBitmap((int)MainInkCanvas.Width, (int)MainInkCanvas.Height, 0,0, PixelFormats.Default);
                rtb.Render(MainInkCanvas);
                BmpBitmapEncoder encoder = new BmpBitmapEncoder();
                encoder.Frames.Add(BitmapFrame.Create(rtb));
               // FileStream fs = File.Open(@"C:\inkCanvas_Images\test.jpg", FileMode.Create);
                FileStream fs = File.Open(@"C:\Users\xeniun1\Desktop\24.02.2015 Xenium_Project\23.02.2015 InkCanvas\InkCanvasInDatabase\InkCanvasInDatabase\InkCanvas_Images\.jpg", FileMode.Create);
                encoder.Save(fs);
                fs.Close();
            public void insertImgInDatabase()
                byte[] signature;
                using (MemoryStream ms = new MemoryStream())
                    MainInkCanvas.Strokes.Save(ms);
                    signature = ms.ToArray();
                string stConn = @"Data Source=inkCanvas_DB.db;Version=3";
                SQLiteConnection sqliteConn = new SQLiteConnection(stConn);
                sqliteConn.Open();
                string sql = "INSERT INTO User_Details (User_Text) VALUES (@Sig)";
                SQLiteCommand comm = new SQLiteCommand(sql, sqliteConn);
                comm.Parameters.AddWithValue("@Sig", signature);
                comm.ExecuteNonQuery();
           private void btnSaveCanvasImg_Click(object sender, RoutedEventArgs e)
                loadInkAnalyzer();
                //MainInkCanvas.Strokes.Clear();
                MessageBox.Show("Ink Canvas Save as Image");
            private void btnSaveImgInDatabase_Click(object sender, RoutedEventArgs e)
                insertImgInDatabase();
                MainInkCanvas.Strokes.Clear();
                MessageBox.Show("Ink Canvas Image saved in Database");
    Plz provide solution for this 
    Regards

    Please close your previous threads by marking helpful posts as answer before you start a new one.
    The type of the image columns should be BLOB. And make sure that you are looking at the inkCanvas_DB.db in the output folder of your .exe ([your_project_foder]/bin/Debug or [your_project_foder]/bin/Debug) because it is this database that the data gets written
    to unless you specify an absolute path in the connection string:
    string stConn = @"Data Source=C:\Your_Project_Folder\inkCanvas_DB.db;Version=3";
    Please upload a reproducable sample of your issue to OneDrive and post the link to it here for further help.
    And please remember to close your threads by marking helpful posts as answer.

  • How to query data from database and store it into Managed Bean ?

    Hi all,
    In our application we have requirement to store information within Managed Bean to be accessed by ADF pages.
    The information is stored in database tables.
    The question is :
    What is the efficient / recommended way to do that ?
    I do not use apps module to query the data because the information is required in View layer not the model layer
    Thank you for your help,
    xtanto

    Xtanto,
    if the information is stored in the database then the question is if there is a database connect open already. If yes, then why not using this connection to query for the data you want to access and store. Alternatively you can directly open a JDBC connection in a managed bean or access an EJB session bean. However, this comes with the price of an extra database connection.
    Make sure the managed bean is in session scope if you want to share the information without re-fetching it
    Frank

  • Where is the value of report repository stored in the database?

    Hi all,
    One of our developers is trying to write a code that would send the output report (pdf)of a process through mail, typical work flow stuff.But the problem is that we are not supposed to hard code the value of report repositiry from where the report has to be picked.can anybody suggest a table in the database from where the value of report repository can be queried.
    we tried using
    select reportrepositorypt from pswebprofile.
    but this doesnt return the correct path. we went to PIA->peopletools->webprofile ->webprofie configuration
    here we updated the value in report repository field and saved it and queried again.
    But this didnt solve our problem.
    Its showing the previous value which is different from the actual report repository path.
    all the servers are in solaris box.
    please suggets.
    Thanks!

    Right now, I am trying to send a PDF (XML Publisher report) as an email to our vendors (it is their ACH Advice).
    What I have done so far is: Created an App Engine, one step to populate a state record with run control information and the second step that runs XML Publisher and creates PDF report(s) which are published to the Report Repository and saved to a file on our network. Now I think I just need to create a third step to recall the PDF(s) and send the PDF(s) out as emails to our vendors.
    I have found that the PDF information from Report Repository is stored in the Database in the CDM_LIST_VW record (this is a view and the main underlying table is CDM_LIST, but this contains what I need for now, so I'm going to try using it first). The Report ID is stored in the CONTENTID field and the Report Description (description shown on the Report Repository -- which in our case contains the email address) is stored in the CONTENT_DESCR field. So I am going to try over the next week to write the logic to query the CDM_LIST_VW for the data needed for the email address and the ReportID to go and grab the file....The hardest part is finding the actual file but I am hoping that I can also find a URL on that table. I'd pull the file from the network, but XML Publisher writes them out into numbered folders where all the PDFs are named the XML Report Defn - thus same name). I have not tried any of this yet, but am hoping I'm on the right path.
    I hope this helped answer your question.
    Good Luck!
    Jennifer

  • What else are stored in the database buffer cache?

    What else are stored in the database buffer cache except the data blocks read from datafiles?

    That is a good idea.
    SQL> desc v$BH;
    Name                                                                                                      Null?    Type
    FILE#                                                                                                              NUMBER
    BLOCK#                                                                                                             NUMBER
    CLASS#                                                                                                             NUMBER
    STATUS                                                                                                             VARCHAR2(10)
    XNC                                                                                                                NUMBER
    FORCED_READS                                                                                                       NUMBER
    FORCED_WRITES                                                                                                      NUMBER
    LOCK_ELEMENT_ADDR                                                                                                  RAW(4)
    LOCK_ELEMENT_NAME                                                                                                  NUMBER
    LOCK_ELEMENT_CLASS                                                                                                 NUMBER
    DIRTY                                                                                                              VARCHAR2(1)
    TEMP                                                                                                               VARCHAR2(1)
    PING                                                                                                               VARCHAR2(1)
    STALE                                                                                                              VARCHAR2(1)
    DIRECT                                                                                                             VARCHAR2(1)
    NEW                                                                                                                CHAR(1)
    OBJD                                                                                                               NUMBER
    TS#                                                                                                                NUMBERTEMP      VARCHAR2(1)      Y - temporary block
    PING      VARCHAR2(1)      Y - block pinged
    STALE      VARCHAR2(1)      Y - block is stale
    DIRECT      VARCHAR2(1)      Y - direct block
    My question is what are temporary block and direct block?
    Is it true that some blocks in temp tablespace are stored in the data buffer?

  • How to download Data from Database directly into excel

    I have a requirement to download very large quantity of data from database into Excel file.
    But condition is excel file should have only 65,536 rows in a single spread sheet(that's the limit i suppose),if i have more data points(rows) than it should be stored into different spreadsheet.......this continues so there can be many spread sheets in a single excel file.
    Data size can be 1 GB or more.
    Also specific naming conventions need to be followed for giving name to excel as well as different spread sheets in it.
    Please see if someone could help me out.

    Thanks for ur reply,
    But my requirement is to call "download to excel" method,in a java program on click by user for downloading an excel sheet on his machine.
    This is be done as part of a web application which is to be made (so can't open the excel first)

  • Load interactive pdf with data from database

    I am trying to understand our options for loading database data into an interactive pdf..?   Some of the data is not stored in the database and needs to be manually entered by the user in the interactive pdf.
    Here is the interactive pdf I'm working with:
    http://www.dcma.mil/dcman/NPP/files/dd1149.pdf
    As I understand it, there are 2 options:
    1.  Create an xml file from the database data.   Users can manually import this xml file into this existing interactive pdf and then manually add the additional data, and save the interactive pdf.
    Would users need to use Adobe acrobat Standard or Pro edition to import the xml data?
    2.  Create a XFA PDF form that's made with LiveCycle Designer.   Can this method create an interactive pdf so that users can enter additional data later and save the pdf?  
       What adobe products are required to use this method?
    thanks for any assistance..
    -D

    Yes,using LiveCycle you could accomplish this easily.Once you have your invoice form ready based on predefined XSD, you can easily update the form data by fetching the values from database using JDBC operation.Also you could email this updated form using Email service.
    Thanks,
    Wasil

Maybe you are looking for

  • My 3rd gen iPod touch won't let me buy albums just tracks.

    When I go on iTunes and try to buy an album the price button doesn't work but the individual track buttons do. Any ideas I bought an album yesterday by buying each track indidually thinking I would be charged the album price. I was wrong. Can't affor

  • How to set servlet properties in JDeveloper 3.1?

    Hello, I am using JDeveloper 3.1 and try to develop some servlets, however, when I cannot locate any servlet.properties file to configure my serlvet (basically some init param). For other web server, I know that there are either a servlet.properties

  • Number of records in Cube and in report

    Hi, Is it possible to have less number of records visible in InfoCube and in reporting report has to show all the records?i.e., if cube contains 100000 records while using InfoCube--->manage and checking the data it has to show only 90000 records,whi

  • External hard Drive Invisible on Mac Mini used as a file server

    We're using a Mac Mini as our small office file server. There are multiple external Hard drives connected. All of the drives show up and are accessable on the networked computers but on the Mini itself, some are only accessable through Disk Utility.

  • How did I lose all my passwords that automatically filled in? Can I get them back?

    I used to have all my passwords stored, so it automatically filled them in. Now it has lost them all, and it doesn't have a popup from firefox where it asks if I want the word stored. I need my OLD passwords back..I don't have them and now can't get