Save to Service-based Database

Hi,
After watching YouTube I managed to create a service-based database in VB.NET (VS2013). Then when I test my application after placing both datagridview and datadetails on to a form I could see and navigate through the data I already have in the database,
which I have manually added to the table while it's created, but data is not getting saved to the table/database when I try to add new data from the userform using the + sign and save button. It doesn't show any error while hitting save button, but when
I check my table it simply doesn't show the data I just added. When I hit the refresh button to update the table it shows an error as follows.
Can you tell me where I went wrong.
Sorry If my question is not clear.

The "Service Based Database" in Visual Studio is a SQL Express database file.  Adding one to the project will create a SQL Express database.  You don't need a full copy of SQL Server or the Mangement Studio (the database file is managed
from within Visual Studio's Database Explorer as you have shown in the screen shot).
The most common issue with "data not being saved" is that the project copies the source database to the output on every build.  So any changes you make during debugging are lost on the next debug session.  The fix is to select the database
file in the solution explorer then go to the properties grid and set the Copy to Output Directly property to "Copy if Newer".  That way the database file only gets overwritten during a build if you changed the layout of the database.
I'm not sure about the message dialog that you posted... I've never seen that one and I'm not sure what "refresh" button you are clicking.
There may have been a mistake in the "tutorial" as well, but you'd have to share the link for us to review the video.
Reed Kimble - "When you do things right, people won't be sure you've done anything at all"
I think we are getting close. I changed Copy to Output Directly property to "Copy if Newer" and while debugging
I could save it but when I check my database these are not saved into the database table. But when I refresh the table it didn't show the error message it showed earlier.
This is the refresh button I was talking about.

Similar Messages

  • How do I create a UDL for a Cloud-based Database like Amazon ?

    I have been using UDL connections to SQL Server without any issues.
    I was just asked to look in to Cloud-based databases, but I'm not sure ho to create a connection to the databases once they have been created.
    Has anyone done anything like this?
    If so, do you have an example the you can share?
    Keith

    Unless the cloud based database you are interested in does provide an ODBC and/or OLE/ADO driver there is no way to connect to this database through the LabVIEW Database Toolkit or any other of the Database Toolkits out there that can use an UDL.
    However if you talk specifically about a service like Amazon RDS then this is based on a database engine of MySQL, SQL Server, Oracle SQL or PostgreSQL depending what the client chose when setting up the DB in the Amazon cloud and as such you simply would have to use the according database driver and get the correct internet address to connect to. What address that would need to be should be most likely visible in the setup console program or as Amazon calls it the AWS Management Console.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Reporting Services 2012 - "Database is up to date, but some sites are not completely upgraded"

    Running SharePoint 2010 SP1 (Feb-Mar 2012 CU)
    Is there any official word from Microsoft regarding the issue with SQL Server Reporting Services 2012 for SharePoint where 2 of the reporting service application databases show "Database is up to date, but some sites are not completely upgraded".
    ReportingServiceDB  -  Database is up to date, but some sites are not completely upgraded
    ReportingServiceDB_Alerting  -  Database is up to date, but some sites are not completely upgraded
    I'm building the new Reporting Services into a new DEV environment and I'd like to know what the official word is from Microsoft.  Is Reporting Services 2012 ready for production?
    Thanks!

    Hi mikea730,
    Thanks for your psot.
    Based on my research, I found a similar thread about this issue at Microsoft Contect site. For more information, please see:
    http://connect.microsoft.com/SQLServer/feedback/details/721067/database-is-up-to-date-but-some-sites-are-not-completely-upgraded
    It might be a known issue of SQL Server 2012. I would suggest opening a case with Microsoft Customer Support Services (CSS) (http://support.microsoft.com), so that a dedicated Support Professional can assist you
    in a more efficient manner.
    Regards,
    Bin Long
    Bin Long
    TechNet Community Support

  • Starting and Stopping Services Based on Network

    Hi everyone,
    This is something I've been playing with and I'd like to share it with you and get your thoughts.
    The services I want to run at any given point depend on what network I'm attached to. For example, if I'm at home, I'll want avahi-daemon and cupsd started but I won't need iptables, since I'm behind my router's firewall. On the other hand if I'm at an internet cafe I need iptables but not the other two.
    What I've done is set up a script in /etc/NetworkManager/dispatch.d which starts services based on the UUID of each connection (extracted from that connection's file in /etc/NetworkManager/system-connections.
    I'm currently using the following script:
    #!/bin/bash
    IF=$1
    STATUS=$2
    function start_service {
    for i in "$@"
    do
    if [ `/usr/bin/systemctl show "$i".service | grep -c "ActiveState=inactive"`=1 ]
    then
    /usr/bin/systemctl start "$i".service
    fi
    done
    function stop_service {
    for i in "$@"
    do
    if [ `/usr/bin/systemctl show "$i".service | grep -c "ActiveState=active"`=1 ]
    then
    /usr/bin/systemctl stop "$i".service
    fi
    done
    if [ "$IF" = "wlan0" ] && [ "$STATUS" = "up" ]; then
    UUID=`nmcli --nocheck -t --fields UUID con status`
    case $UUID in
    f5320fcd-43e2-4cc1-ba1a-9606f66b5332)
    start_service avahi-daemon cupsd
    logger "M5DKQ (home network) up"
    5bfff3c5-c349-436b-953b-90de15c854d7)
    start_service iptables
    logger "EVO (4G hotspot) up"
    40d74743-f809-41ce-821c-71f9f40b8513)
    logger "GuestAccess (office guest network) up"
    start_service iptables
    logger "Starting cafe-specific services"
    esac
    fi
    if [ "$IF" = "wlan0" ] && [ "$STATUS" = "down" ]; then
    stop_service avahi-daemon cupsd iptables
    logger "Stopped location-specific services"
    logger "wlan0 down"
    fi
    Is there a better way to do this, like maybe a systemd custom target? Is there a cleaner way to script this?
    Thanks in advance,

    Hi Ranga,
    The services dealing with SAP and database(Ex: Oracle in this case) are:
    SAP<SID>_<Instance No.>  (For ex: SAPECC_01)
    SAPOsCol
    Oracle<SID><No>Listener
    OracleCSSservice
    OracleService<SID>
    Reward points if it is helpful##
    Thanks & Regards,
    Santhosh P
    Please change the status to answered if you got the solution...
    Message was edited by:
            Santhosh Kumar P

  • A service based on a procedure to insert records in ESB

    Hi all,
    I have the following requirement:
    I have a service that is based on a PL/SQL procedure that returns n number of records (pl/sql table type). I want to be able to pass the output of this service to another service based on a pl/sql procedure that will process them and insert them into various tables.
    The problem is (I think) that any database adapter service based on a procedure is an outbound service- and, therefore, I can't define a route between the two.
    Diagrammatically (sort of), what I want is:
    {dbAdapterProducingRecords} -> {routingServiceInbound} -> {routingServiceOutbound} -> {dbAdapterInsertingRecords}
    I would have thought that this would be a fairly normal scenario - maybe I'm just missing something blindingly obvious.
    Any help would be greatly appreciated (and apologies if it is obvious).
    Regards,
    T.

    Load balancing using pre-defined headers is supported. Not sure if load balancing using user defined fields is possible. You could refer to the following document.
    http://www.cisco.com/univercd/cc/td/doc/product/webscale/css/css_710/bsccfggd/httphead.htm
    We would appreciate it if someone could share their experience if they know more about this.

  • Service Based Revenue Recognition - Prov Account Missing when using WBS

    Hi,
    I´ve activated RR functionality using service based and aceptance date.
    I've followed the intructions from the best practices documents and the notes:
    Note 820417 u2013 IMPLEMENTATION GUIDE FOR REVENUE RECOGNITION
    Note 1172799 u2013 NEW VERSION OF BEST PRACTICES FOR REVENUE RECOGNITION
    Note 678260 CONSTRAINTS
    Note 777996 u2013 ACCOUNT SETTINGS FOR  REVENUE RECOGNITION PROCESS     
    Note 779366 u2013 REVENUE RECOGNITION IN THE SD MODULE
    Note 1166848 u2013 CUSTOMIZING SETTINGS
    Note 782758 u2013 PREREQUISITS FOR USING REVENUE RECOGNITION
    Note 835367 - Activating SAP ERP SD revenue recognition
    Note 1000830 - Revenue recognition through incoming invoice (third-party
    Note 1025066 - Revenue recognition by proof of delivery (POD)
    Note 1120297 - Revenue recognition by acceptance date
    Note 1125456 - Revenue recognition due to customer-specific event
    We are implementing SD, FI (using New Gral Ledger), PS, CO and MM in a company that sells projects. Therefore we're posting everything to the WBS elements.
    We need to post the revenue values to the WBS elements too.
    The problem is that when we create a sales order for RR indicating a WBS element and try to save it, the system activates the incompletion log saying that the provision account is missing, despite the account is in VKOA.
    The strange thing is that if we use a material with profit center (without any WBS or order indication in the sales order) all the revenue recognition process runs perfectly (we save the order, VBREVK is fullfiled, VF44 is run and the invoice is done correctly).
    Does anybody know why when using a WBS element in the sales order, SAKN2 field is not fullfiled and the incompletion log is activated???
    Is it a program error? Or are we doing something wrong?
    Quick responses will be apreciated since we need to move on within two weeks!
    Thanks in advance!
                                     María del Valle Pintor.
    Moderator: This thread has been locked due to crossposting.
    Please do not post the same question in different forums.

    sap note 883544

  • How to create a Service based on complex query

    Hi,
    I'm using JDev 11.1.2.2.0 for developing fusion based application based on EJB3.0 and JPA. I search on net and got a link for sample application as shown below:
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/jdev/obe11jdev/ps1/ejb/ejb.html#t2s1
    But above application is based on "Entities based on Tables" but my requirement to build a service based on query which contains multiple tables which means I want to create a generic one...
    please let me know what I need to change or please provide any link for docs.

    Hi Desmukh,
    I want to create a wsdl for complex queries based on ADF fusion applicaiton using EJB3.0 and JPA...!
    the link which you provided 'entity with tables' which is restricting for my requirement but I want similar implementation for complex queries :(

  • How to save pdf file in database

    Dear All,
    my application is forms 6i and database is 8i,requirement is that how to save pdf file in database and users can view through forms

    I'll apologize up front for the length of this post. I have a few database procedures I created that write a file to a BLOB column in a table as well as retrieve the BLOB from the column after it stored there. I have successfully stored many different types of binary file to the database using these procedures - including PDF files. I have not used these procedures in a Form so I can confirm that they will work, but theoretically they should work. I'm including the code for each procedure in this posting - hence the apology for the long post! :-)
    Also, since these procedures reside on the database you will need to use Forms TEXT_IO built-in package to write your file to the server before you can use these procedures to store and retrieve the file from the database.
    These procedures reads and writes a binary file to a table called "LOB_TABLE." You will need to modify the procedure to write to your table.
    -- Author :  Craig J. Butts (CJB)
    -- Name   :  load_file_to_blob.sql
    --        :  This procedure uses an Oracle Directory called "IN_FILE_LOC".  If you
    --           already have a directory defined in the database or would prefer to use
    --           a different Directory name, make sure you modify line 21 to reflect the
    --           new Directory name.
    -- ==================================================================================
    -- History
    -- DATE        WHO         DESCRIPTION
    -- 12/11/07    CJB         Created.
    CREATE OR REPLACE PROCEDURE load_file_to_blob (p_filename IN VARCHAR2) IS
       out_blob    BLOB;
       in_file     BFILE;
       blob_length INTEGER;
       vErrMsg     VARCHAR2(2000);
    BEGIN
       -- set the in_file
       in_file := BFILENAME('IN_FILE_LOC',p_filename);
       -- Get the size of the file
       dbms_lob.fileopen(in_file, dbms_lob.file_readonly);
       blob_length := dbms_lob.getlength(in_file);
       dbms_lob.fileclose(in_file);
       -- Insert a new Record into the tabel containing the
       -- filename specified in P_FILENAME and a LOB_LOCATOR.
       -- Return the LOB_LOCATOR and assign it to out_blob.
       INSERT INTO lob_table (filename, blobdata)
          VALUES (p_filename, EMPTY_BLOB())
          RETURNING blobdata INTO out_blob;
       -- Load the file into the database as a blob.
       dbms_lob.open(in_file, dbms_lob.lob_readonly);
       dbms_lob.open(out_blob, dbms_lob.lob_readwrite);
       dbms_lob.loadfromfile(out_blob, in_file, blob_length);
       -- Close handles to blob and file
       dbms_lob.close(out_blob);
       dbms_lob.close(in_file);
       commit;
       -- Confirm insert by querying the database
       -- for Lob Length information and output results
       blob_length := 0;
       BEGIN
          SELECT dbms_lob.getlength(blobdata) into blob_length
            FROM lob_table
           WHERE filename = p_filename;
       EXCEPTION WHEN OTHERS THEN
          vErrMsg := 'No data Found';
       END;
       vErrMsg := 'Successfully inserted BLOB '''||p_filename||''' of size '||blob_length||' bytes.';
       dbms_output.put_line(vErrMsg);
    END;
    -- Author   :  Craig J. Butts (CJB)
    -- Name     :  write_blob_to_file.sql
    -- Descrip  :  This procedure takes a BLOB object from a database table and writes it
    --             to the file system
    -- ==================================================================================
    -- History
    -- DATE        WHO         DESCRIPTION
    -- 12/11/07    CJB         Created.
    CREATE OR REPLACE PROCEDURE write_blob_to_file ( p_filename IN VARCHAR2 ) IS
       v_blob      BLOB;
       blob_length INTEGER;
       out_file    UTL_FILE.FILE_TYPE;
       v_buffer    RAW(32767);
       chunk_size  BINARY_INTEGER := 32767;
       blob_position INTEGER := 1;
       vErrMsg     VARCHAR2(2000);
    BEGIN
       -- Retrieve the BLOB for reading
       BEGIN
          SELECT blobdata
            INTO v_blob
            FROM lob_table
           WHERE filename = p_filename;
       EXCEPTION WHEN OTHERS THEN
          vErrMsg := 'No data found';
       END;
       -- Retrieve the SIZE of the BLOB
       blob_length := DBMS_LOB.GETLENGTH(v_blob);
       -- Open a handle to the location where you are going to write the blob
       -- Note:  The 'WB' parameter means "Write in Byte Mode" and is only
       --          available in the UTL_FILE pkg with Oracle 10g or later.
       --        USE 'W' instead for pre Oracle 10q databases.
       out_file := UTL_FILE.FOPEN('OUT_FILE_LOC',p_filename, 'wb', chunk_size);
       -- Write the BLOB to the file in chunks
       WHILE blob_position <= blob_length LOOP
          IF ( ( blob_position + chunk_size - 1 ) > blob_length ) THEN
             chunk_size := blob_length - blob_position + 1;
          END IF;
          dbms_lob.read(v_blob, chunk_size, blob_position, v_buffer );
          UTL_FILE.put_raw ( out_file, v_buffer, TRUE);
          blob_position := blob_position + chunk_size;     
       END LOOP;  
    END;Hope this helps.
    Craig...
    -- If my response or the response of another is helpful or answers your question please mark the response accordingly. Thanks!

  • Calling Web Service from Database

    Hello,
    we want to call a Web Service from Database. What will we need or what must we install to do this. We're using a 10g Database.
    Best regards ,
    Goronja

    Hello,
    This feature is called "Database Web Services Call Out" and documented in:
    - Developing a Web Service Client in the Database
    Regards
    Tugdual Grall

  • SErvice based invoice using bapi

    Hi Gurus,
    I am creating an invoice for a services based PO.
    PO contains 1 item with 2 services.
    A Service entry sheet is also created for the same.
    now I want to post the invocie for this service entry sheet.
    but it says an error "Enter a reference to a valid goods receipt (line 000001) ".
    Pleaes let me know how should I give the inputs to the BAPI.
    Regards,
    Renuka

    Hi Renuka,
    Which BAPI are you using?
    Regards,
    Ajay

  • Shared Services Configuration : Database type

    Hi all,
    i installed essbase and couldn't connect to sql to load the data into essbase( though it works fine with excel and text file)
    after numerous pondering on the forums I could not find a solution to my probelm
    why i could not connect to sql from essbase ?
    I decided to retry the installation . I have come to a point within installation where i need to select
    Shared Services Configuration : Database type
    unfortunately oracle is not available here though I have installed oracle 11g on my machine and setup users to be used in the epm system ( version 11.1.2)
    the only type available is the oracle jdbc driver .
    Any suggestion as to how i can get oracle database type here ?
    OR am i missing something prior to installation.

    To connect to load data or metadata follow steps
    1. Create a system DSN in the machine which is hosting Essbase Server.
    2. Select Create Rule file.
    3. Go To File and select Open SQL.
    4. Select Application and Application
    5. Select DSN and provide user credentials.
    Hope this helps.
    Database Type - Is the database Type which you want to use i.e. IBM DB2 / MS SQL Server / Oracle...
    Hope this helps.
    Regards,
    Manmohan Sharma

  • How to save a FORM as DATABASE

    Hello everyone
    I am using forms 9i with Database 9i and 9iAS . I want to save a form as database . In previous version we had the option so save as file or database . We were able to set it under tools- preferences . But in forms 9i I don't find it anywhere we can set save as Database.
    Can anyone help me.
    Thanks

    I think you will need to use a layer in between.  For instance with LC, you can make a process that takes in your data and stores it in your database.  Your form can submit to that process through SOAP and REST.

  • Calling a business service based on operation-soap action in Proxy service

    Hi,
    I have a requirement in which I have to call a business service based on operation-soap action defined in Proxy service wsdl.
    Like in below mentioned wsdl GetPartCostDelta and GetCurrencyList operations are there.But which ever operation I select,It just goes to one business service.
    Is there any way,I can route to some another business service based on the soap action
    proxy service WSDL
    <?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ewopcd="urn:com:gm:gpd:schema:ewopartcostdelta" xmlns:gen="urn:com:gm:gpd:schema:genericfault" xmlns:tns="urn:com:gm:gpd:services:ewopartcostdeltaservice" targetNamespace="urn:com:gm:gpd:services:ewopartcostdeltaservice">
         <wsdl:types>
              <xs:schema>
                   <xs:import namespace="urn:com:gm:gpd:schema:ewopartcostdelta" schemaLocation="ewocostdelta.xsd"/>
                   <xs:import namespace="urn:com:gm:gpd:schema:genericfault" schemaLocation="servicefault.xsd"/>
              </xs:schema>
         </wsdl:types>
         <wsdl:message name="EWOCurrencyListRequest">
              <wsdl:part name="CurrencyListRequest" element="ewopcd:EWOCostDeltaInput"/>
         </wsdl:message>     
         <wsdl:message name="EWOCurrencyListResponse">
              <wsdl:part name="CurrencyListResponse" element="ewopcd:EWOCurrencyList"/>
         </wsdl:message>     
         <wsdl:message name="EWOPartCostDeltaRequest">
              <wsdl:part name="PartCostDeltaRequest" element="ewopcd:EWOCostDeltaInput"/>
         </wsdl:message>
         <wsdl:message name="EWOPartCostDeltaResponse">
              <wsdl:part name="PartCostDeltaResponse" element="ewopcd:EWOCostDeltaResult"/>
         </wsdl:message>
         <wsdl:message name="EWOPartCostDeltaServiceFault">
              <wsdl:part name="PartCostDeltaServiceFault" element="gen:ServiceFault"/>
         </wsdl:message>
         <wsdl:portType name="EWOPartCostDeltaPortType">
              <wsdl:operation name="GetCurrencyList">
                   <wsdl:input name="EWOCurrencyListRequest" message="tns:EWOCurrencyListRequest"/>
                   <wsdl:output name="EWOCurrencyListResponse" message="tns:EWOCurrencyListResponse"/>
                   <wsdl:fault name="EWOPartCostDeltaServiceFault" message="tns:EWOPartCostDeltaServiceFault"/>
              </wsdl:operation>
              <wsdl:operation name="GetPartCostDelta">
                   <wsdl:input name="EWOPartCostDeltaRequest" message="tns:EWOPartCostDeltaRequest"/>
                   <wsdl:output name="EWOPartCostDeltaResponse" message="tns:EWOPartCostDeltaResponse"/>
                   <wsdl:fault name="EWOPartCostDeltaServiceFault" message="tns:EWOPartCostDeltaServiceFault"/>
              </wsdl:operation>          
         </wsdl:portType>
         <wsdl:binding name="EWOPartCostDeltaBinding" type="tns:EWOPartCostDeltaPortType">
              <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
              <wsdl:operation name="GetCurrencyList">
                   <soap:operation soapAction="GetCurrencyList" style="document"/>
                   <wsdl:input>
                        <soap:body use="literal"/>
                   </wsdl:input>
                   <wsdl:output>
                        <soap:body use="literal"/>
                   </wsdl:output>
                   <wsdl:fault name="EWOPartCostDeltaServiceFault">
                        <soap:fault name="EWOCostDeltaServiceFault" use="literal"/>
                   </wsdl:fault>
              </wsdl:operation>
                        <wsdl:operation name="GetPartCostDelta">
                   <soap:operation soapAction="GetPartCostDelta" style="document"/>
                   <wsdl:input>
                        <soap:body use="literal"/>
                   </wsdl:input>
                   <wsdl:output>
                        <soap:body use="literal"/>
                   </wsdl:output>
                   <wsdl:fault name="EWOPartCostDeltaServiceFault">
                        <soap:fault name="EWOCostDeltaServiceFault" use="literal"/>
                   </wsdl:fault>
              </wsdl:operation>
         </wsdl:binding>
         <wsdl:service name="EWOPartCostDeltaService">
              <wsdl:port name="EWOPartCostDeltaPort" binding="tns:EWOPartCostDeltaBinding">
                   <soap:address location="https://localhost/EWOPartCostDelta"/>
              </wsdl:port>
         </wsdl:service>
    </wsdl:definitions>

    Did you try using the Operational branching node of OSB?
    You have copy the operation name from the inbound variable and populate the SOAP Header with that value into the SOAPAction tag.I think this will work.
    Thanks,
    Prabu

  • Service-Based Invoice Verification indicator setup automatically

    Hi,
    How to get the Service-Based Invoice Verification indicator setup automatically when a user tries to create a PO. There is no service master being setup for the sevices carried out.
    Bascially the requisiitons are created through Projects based on the services performed and when the PO is created for the same the users forgets to have this indicator checked because of which there are problems which arises going ahead.
    We would like to have this indicator setup automatcially so that even if the user - Buyer forgets we dont get problems going ahead.
    Answers for this question will be highly appreciated.
    regards,
    Andy

    Hi
    You need to set this indicator in vendor master, however if you do not enter item category as D, it will not come default in purchase order. Checking the service based IV in vendor master indicates IV can be done for that vendor with reference to services.
    Thanks
    Edited by: Praveen Raghavendra on Jan 9, 2009 1:17 PM

  • Firefox requires clicking "Allow" to view one screen in cloud-based database

    When using Firefox (but not Windows) in a cloud-based database (SaaS) for facility scheduling, one particular screen (in a series of screens needed for each reservation) will not load until I click the "Allow" button every time. This is enough of a nuisance that I want to tell Firefox to trust everything on the url, my.serviceu.com/. I'd like to know how to do this. I only have this problem when using the system on Firefox, not MS Explorer, but the system is written to run best on Firefox.

    Do you mean this?
    *Firefox > Options/Preferences > Advanced > General Accessibility [ ] "Warn me when web sites try to redirect or reload the page"
    The setting in "Options > Advanced > General" is meant as an accessibility feature, as you can see by the label of that section, so that people with disabilities or people who use screen readers do not get confused and is not meant as a safety protection to stop redirecting.
    See also:
    *https://support.mozilla.org/kb/settings-network-updates-and-encryption#w_general-tab
    *http://kb.mozillazine.org/accessibility.blockautorefresh
    *http://kb.mozillazine.org/Accessibility_features_of_Firefox

Maybe you are looking for