Redesign database - Create or copy existed forms

Hello all,
My company redesign the database. I have about 20 forms that work with the old database. what is the best way for me to make all my forms work with the new database? Create all the forms or just copy what I need for the forms?
Thank you for answering the question
Jenny

Hi,
As you said the database is redesigned, if you copy the forms in such situation, the forms will refer to the old schema.
So according to me creating forms would be better option in this case.
Regards,
Neha

Similar Messages

  • Syntax error in Logical database created by copying standard PGQ

    Hi guys.
    I created a logical database ZMPQ_PGQ using the copy option from SE36 with the input PGQ (logical database used by QA33).
    But it showing some syntax error Field "PGQ_SP" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement.
    How to resolve this?
    Thanks in advance.

    When checking the syntax of the LDB source code, go to the location of the syntax error (in include DBZMPQ_PGQSXXX), and change all internal table references of PGQ_SP to ZMPQ_PGQ_SP.

  • Is it possible to create a copy of entire database, not the data, but just database structure?

    Greetings community,
    This question is related to EXPRESS edition.
    Let’s say that I have MyDatabase2014 and I’ve been populating it with some data during the year 2014. Before the end of the year, I want to prepare another database named MyDatabase2015, which should be empty, but of course it should have
    all tables, relations, indexes and stored procedures just like MyDatabase2014. The idea is just to change a connection string and to continue using the same app for the same job.
    So in SSMS, I right-clicked the database, choose script database as / create to / new query, but I didn’t get what I wanted. In query window I’ve got just create database statement, and below that few dozen of alter database set ansi this
    or that statements, and set many other things. However, no table creation was scripted. Also, no stored procedures have been created, and about users, and other security objects better not to start to talk about.
    I could have achieved that simply by right-clicking databases node and select new database. So what’s the point of “script database as”?
    Does this work in SQL server editions other than EXPRESS?
    When it comes to express edition, what’s the best practice to get the empty copy of a database?
    Thanks for any help.

    For scripting out the users and their permissions you can use this script
    -- Capture permissions for all users in a DB
    SET NOCOUNT ON
    DECLARE @Database varchar(max)
    SET @Database = '<Db_Name>'-- set the database name here
    IF EXISTS (SELECT * FROM SYS.SYSDATABASES WHERE name = @Database)
    EXEC('USE ' + @Database + ';
    DECLARE @temp table(Extract Varchar(MAX))
    INSERT INTO @temp (Extract)
    SELECT ''EXEC( ''''USE ' + @Database + '; IF NOT EXISTS (SELECT * FROM sys.schemas WHERE name = N'''''''''' + name + '''''''''')IF EXISTS (SELECT *
    FROM sys.database_principals WHERE name = N'''''''''' + name + '''''''''') DROP USER ['' + name + '']''''); ''
    FROM sys.sysusers WHERE islogin = 1 AND hasdbaccess = 1 AND name NOT IN (''dbo'')
    INSERT INTO @temp (Extract)
    SELECT ''EXEC( ''''USE ' + @Database + '; IF NOT EXISTS
    (SELECT * FROM sys.database_principals WHERE name = N'''''''''' + dp.name + '''''''''')
    CREATE USER ['' + dp.name + ''] FOR LOGIN ['' + sp.name + '']''''); ''
    FROM sys.server_principals sp
    JOIN sys.database_principals dp ON (sp.sid = dp.sid)
    AND dp.name NOT IN (''dbo'')
    INSERT INTO @temp (Extract)
    SELECT ''EXEC( ''''USE ' + @Database + '; IF NOT EXISTS
    (SELECT * FROM sys.database_principals WHERE name = N'''''''''' + dp.name + '''''''''')
    CREATE USER ['' + dp.name + ''] WITHOUT LOGIN ''''); ''
    FROM sys.database_principals dp left
    JOIN sys.server_principals sp ON (sp.sid = dp.sid)
    where dp.principal_id between 5 and 16383
    INSERT INTO @temp (Extract)
    SELECT ''EXEC( ''''USE ' + @Database + '; EXEC sp_addrolemember '''''''''' + User_Name([groupuid]) + '''''''''', '''''''''' + User_Name([memberuid]) +
    FROM sys.sysmembers WHERE User_Name([memberuid]) NOT IN (''dbo'')
    INSERT INTO @temp (Extract)
    SELECT ''EXEC( ''''USE ' + @Database + '; ''
    + CASE [a].[state_desc] WHEN ''GRANT_WITH_GRANT_OPTION'' THEN ''GRANT '' ELSE [a].[state_desc] END
    + '' ''
    + [a].[permission_name] + CASE class WHEN 1 THEN '' ON [''
    + [c].[name]
    + ''].[''
    + Object_Name([a].[major_id]) + ''] '' ELSE '''' END + '' TO [''
    + User_Name([a].[grantee_principal_id])
    + ''] '' + CASE [a].[state_desc] WHEN ''GRANT_WITH_GRANT_OPTION'' THEN '' WITH GRANT OPTION'' ELSE '''' END
    + ''''''); '' COLLATE Latin1_General_CI_AS AS [SQL]
    FROM sys.database_permissions a
    inner join [sys].[all_objects] b
    ON [a].[major_id] = [b].[object_id]
    inner join [sys].[schemas] c
    ON [b].[schema_id] = [c].[schema_id]
    INSERT INTO @temp (Extract)
    SELECT ''EXEC( ''''USE ' + @Database + '; ''
    + [a].[state_desc]
    + '' ''
    + [a].[permission_name]
    + '' TO [''
    + USER_NAME([a].[grantee_principal_id])
    + ''] '''');''
    from sys.database_permissions a
    where a.class=0
    INSERT INTO @temp (Extract)
    SELECT ''EXEC( ''''USE ' + @Database + '; ''
    + [a].[state_desc]
    + '' ''
    + [a].[permission_name]
    + '' ON SCHEMA ::''
    + '' [''
    + SCHEMA_NAME([a].[major_id]) +
    + ''] TO [''
    + USER_NAME([a].[grantee_principal_id])
    + ''] '''');''
    from sys.database_permissions a
    where a.class=3
    SELECT Extract AS [Extract] FROM @temp
    GO
    ELSE
    SELECT '--NO'
    GO
     

  • SAPSCRIPT: Creating new Language for existing form

    Hi Guys,
    I need add an additional language for an existing form. Italian is not available for the this existing form. How can I add this language? do I need to copy the form with language EN? how can I include that form in the existing form? or there are other way to do this? Thanks in advance!
    Regards,
    Michael Nacionales

    There is a change in the standard code.The reason for the above problem was  because of a missing Enhancemnet point in a standard function module 'CV110_DOC_CREATE_WITH_TEMPLATE'.
    IS-ADEC-MPD  - Enhancement to copy MPD data
    ENHANCEMENT-POINT CV110_DOC_CREATE_WTEMPL_01 SPOTS ES_SAPLCV110.
    +*$*$-Start: CV110_DOC_CREATE_WTEMPL_01----------------------------------------------------------$*$*+
    +**ENHANCEMENT 1  ZSF_AD_MPD_SAPLCV110.    "active version**+
    +*** copy MPD relevant data from templ. doc to current doc**+
      +**CALL FUNCTION 'MPD02_COPY_MPD_DATA'**+
        +**EXPORTING**+
          +**is_draw = ls_draw**+
        +**TABLES**+
          +**ct_drad = lt_drad.**+
    +*ENDENHANCEMENT.**$*$-End:   CV110_DOC_CREATE_WTEMPL_01----------------------------------------------------------$*$*+
    Created a custom enhancement point similar to SAP ECC6.0 EHP 3.0 system.
    The reason was the buffer was not getting cleared previously.After inserting the above code the DIR's are getting created withot any issues.
    Regards,
    Prasad.B

  • Create a copy of active database using T-SQL.

    I have a requirement to create a copy of existing active (currently in use) database through code.
    I need to copy all objects which include tables, stored procs, triggers, functions, foreign keys, constraints, primary keys, etc... from source DB to new DB.
    Both databases can be in different servers where I have access to both the servers. I also need to copy data for some tables....
    It is exactly what copy database wizard is doing... but I want to do it through T-SQL code.....
    is it possible?

    This doesn't sound like too easy task. I tried to search, but the best I found so far was Freeware SQL Script Generate utility
    I do have a blog to generate all stored procedures
    How to script all stored procedures in a database
    but this is only a small part of the task. Brad Schulz has a blog to generate table creation/insert statements. I don't remember seeing the complete free T-SQL solution for all SQL Server database objects.
    Premature optimization is the root of all evil in programming. (c) by Donald Knuth
    Naomi Nosonovsky, Sr. Programmer-Analyst
    My blog

  • Error while creating connection pool "FATAL: database "null" does not exist

    Hi,
    Iam trying to create a XA connection pool using postgres driver (postgresql-8.3-603.jdbc3.jar) on Weblogic 8.1.6.0 from the Admin Console.
    I have provided the following info in the JDBC config
    Driver Class Name: org.postgresql.xa.PGXADataSource.
    JDBC URL: jdbc:postgresql://192.168.192.112:5432/sample1
    UserName: postgres
    Password: Postgres
    When i click Test Driver Configuration. Iam getting the following error
    "FATAL: database "null" does not exist"
    if i change the Driver Class Name to "org.postgresql.Driver", it is working fine. But as iam trying to create XA datasource i need to use the XA Driver class name.
    Can someone tell me how to resolve this issue ?
    The postgres version iam using is 8.3.1

    Hi Joe,
    The driver is in the classpath.
    Please find the stack trace.
    org.postgresql.util.PSQLException: FATAL: database "null" does not exist
    at org.postgresql.core.v3.ConnectionFactoryImpl.readStartupMessages(Conn
    ectionFactoryImpl.java:444)
    at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(Conne
    ctionFactoryImpl.java:99)
    at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactor
    y.java:66)
    at org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Conn
    ection.java:124)
    at org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Conn
    ection.java:30)
    at org.postgresql.jdbc3.Jdbc3Connection.<init>(Jdbc3Connection.java:24)
    at org.postgresql.Driver.makeConnection(Driver.java:386)
    at org.postgresql.Driver.connect(Driver.java:260)
    at java.sql.DriverManager.getConnection(DriverManager.java:512)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    at org.postgresql.ds.common.BaseDataSource.getConnection(BaseDataSource.
    java:83)
    at org.postgresql.xa.PGXADataSource.getXAConnection(PGXADataSource.java:
    47)
    at org.postgresql.xa.PGXADataSource.getXAConnection(PGXADataSource.java:
    32)
    at weblogic.management.console.utils.JDBC.testConnection(JDBC.java:185)
    at weblogic.management.console.actions.mbean.JDBCConnectionPoolTestActio
    n.prePerform(JDBCConnectionPoolTestAction.java:114)
    at weblogic.management.console.actions.mbean.DoMBeanWizardAction.perform
    (DoMBeanWizardAction.java:215)
    at weblogic.management.console.actions.internal.ActionServlet.doAction(A
    ctionServlet.java:182)
    at weblogic.management.console.actions.internal.ActionServlet.doPost(Act
    ionServlet.java:86)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
    (ServletStubImpl.java:1077)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:465)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:348)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
    n.run(WebAppServletContext.java:7047)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    121)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:3902)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:2773)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)

  • How to import database created in Excel to appropriate fields in a PDF form?

    I am trying to use Database created in Excel to fill multiple PDF Visa application forms.
    The fields in PDF forms are basically the same except the order of appearance on the
    form could be different. However the field names remain the same in all PDF Visa Application forms.
    Can anyone make me wiser?
    Appreciate all suggestions.
    Sajith Panduka

    If you export to a tab delimited format and the first row contains the exact field names of the fields in the form (order doesn't matter), then you can import a row of data into the form using Acrobat. You can also automate the process using JavaScript in Acrobat.

  • How do you create a custom button in LiveCycle to add a new form page to an existing form?

    Can someone tell me how to create a button to add a new form page to an existing form in Acrobat or Livecycle designer?

    Hi,
    You can use addInstance method to achieve your requiremnets.
    form1.#subform[1].instanceManager.addInstance()
    BR,
    Paul Butenko

  • Creating a copy of an existing JTable that does not have source code.

    Hi
    I am working on a java swing based application. We used a third party API for JTable for showing some data in a table format and also for printing function. As of now print button is printing the whole table being shown in the application. Our new requirement of printing is �Users don�t want to print all the columns being shown in the application and they wanted to have print of columns whatever they would like to see�.
    The above requirement can be fulfilled if I can have a copy of the existing table. Unfortunately we don�t have the source code of the table being shown in the application as we are using 3rd party libraries. Had the source code been there I could have implemented cloneable interface or proto type pattern.
    Can some body help me how can I create a copy of the existing table? Basically the high level approach I thought of is create a new object of the table class and copy the properties/attributes of the existing table to the new table object. But I don�t know what attributes should be copied so that I can have the copy of the original table and how to construct (code) this new table.
    I would be very grateful if some one could help me with this.
    Thanks & Regards
    Srini

    I understood your suggestion. But it would be very difficult to migrate as it requires lot of changes across different tabs of the existing application. This application was developed around 6 years ago. And this change would require lot of regression testing too.
    Do you have any idea of creating the copy of the available JTable object?

  • Help plss Should a cursor be created in database or program unit in forms l

    Where can i create a cursor should it be in database i.e isql plus using internet explorer or should i create the cursor in forms
    forms can i create the cursor so that i can use the cursor in the post item trigger of the userid item of login page
    Can i create the cursor in a package specification and how can i call that cursor into a post_text item trigger
    details below
    Iam working on a Online exam for students Dummy project using forms
    The student 1st comes to a WELCOME page i.e form which asks him if he is a new student or registered stud
    If he clicks registered pushbutton it takes him to a LOGIN page where there are two items userid and password.I am using a Validate_item OR Post_item trigger to fire after the student enters his userid.
    I need to compare the entered userid with the userid stored in the database STUDENTS table which i created which consists of the registered students details.
    Our project Guide suggested that we create a cursor and fetch each userid everytime into the cursor and compare the entered userid with the cursor.

    hi Sqlstar,
    Regarding to your all questions , i prefered that you search for a simple document or book in order to understand much more more about creating cursors.
    however since this forum made to help people and to make a integerated community i would be glad to offer my help and going with you step bt step with your answers.
    as for beginning
    1) when you create the user_exists function in database , if you want to call it in the form level you would wirte a code like this
    ----WHEN-VALIDATE-ITEM------------user_id item---------
    IF scheme_name.procedure_name(:block1.userid)!='TURE' then
       message('User Name is not correct');
       raise form_trigger_failure;
    end if;
    2) it's not a waste of recourse to make 2 validation of both userid and password
    and as same you create a procedure for useris you should create a procedure for password where the user id is the outcomming of userid item in the form.
    3)you have all choices to create the 2 procedures on database side or in the program unit at design time for the form it's up to you and as a small hint for you ,
    when you create them in the program unit and want to call the procedures in the WHEN-VALIDATE-ITEM  trigger you should denote the procedure name with the name of package first as following
    -------[Package Spec Code]-------
    PACKAGE user_validation IS
    function user_exists (p_user_id number) return boolean;
    end ;
    --------------[Package Body Code]------
    PACKAGE BODY user_validation IS
    function user_exists (p_user_id number) return boolean
    is
    user_number number;
    cursor c_user_id is
    select user_id from <user_table>
    where user_id=p_user_id;
    begin
    open c_user_id ;
    loop
    fetch user_id  into user_number ;
    return (true);
    exit when c_user_id%NOTFOUND;
    end loop;
    execption  when others then
    return(false);
    end user_exists;
    end;
    -----Calling at Validation level-----------
    IF (user_validation.user_exists(:block1.userid))!=TURE then
       message('User Name is not correct');
       raise form_trigger_failure;
    end if;
    i hope this could be helpful engouh to start your application
    Good Luck .
    Regards
    Omar                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How do you create a button to add a new form page to an existing form in Acrobat or Livecycle designer?

    Can someone tell me how to create a button to add a new form page to an existing form in Acrobat or Livecycle designer?

    In Acrobat forms you can use the 'template' object's 'spawn' metod. A Lesson in Templates for Adobe Acrobat by Dave Wrigtht

  • Creating New plant by copying Existing

    Dear All,
    I have to create a new plant by copying existing one, I want all the configuration that exists for existing plant in new plant.
    My query is by copying plant only all the configuration for new plant will get configured. Such as account determination etc or i have to configure it manually.
    Thanks
    Nitesh

    Hi
    no for account determination
    we have to put  valuvation gruoping code 0001 or any other which you want to use  manually
    in T-code OMWD
    for copying plant we van copy storage location ,assigement to companycode and oms2 setting also get automatically copy
    Regards
    Kailas

  • Calc Scripts run a lot faster after I copy existing database

    Hi,
    I have user being setup as the Application Designer of the application and each time when he run scripts of the database, it takes a lot longer than myself (I'm the Supervisor). The database was built up from scratch, so it is not database copy version. Could this be user specific problem?
    Today, I create another copy of the database within the same application, create a new Scenario, load data, run multiple similar scripts and the time to run all scripts were alot faster when I run from initial database. Is this a coincidence or the performance has indeed improved?
    Your advice is much appreciated!
    Between, Im running on Essbase 7.1.3.0
    Thank you

    So are you saying you are the one to run the scripts after initial DB load?
    What are the index and page size before and after you run the scirpts?
    It is somewhat normal for the inital dataload and agg to run faster than subsequent runs of the agg, this is because typically inital data load is level 0 only members. The agg of the database will then create blocks for upper level members, thereby increasing the DB size. So there are more index entries, as well as blocks to parse thru.
    That being said, if there is considerable increase in agg time, there may be more to address (fragmentation, block size, dynamic calc on sparse members, etc).
    Robert

  • Can I copy existing website (under Azure) and re deploy to create new one?

    I created website site with quick create /from gallery/WordPress, currently working and running under Azure.
    I would like to create additional websites and to use with the same files for the one is already running
    Meaning to copy all the files and re use them to deploy again as new website
    Can I copy existing website (under Azure) and re deploy to create new one?
    YCh7

    Yes you can.
    Install "Microsoft Web Matrix" on your Machine.
    Then go to the portal>web apps and select the one you want to copy. Then click on WebMatrix in bottom right. Your WebMatrix will pop up. Click "Edit a Local Copy".
    Thats the easy solution for creating a local copy and redeploying it.

  • How to create a copy of an existing statndad view

    Hi Experts,
    I have a requirement. I have to copy the view BP_DATA/AccountRelationshipsOV in the component BP_DATA and again use it in the component BP_HEAD. When i tried creating copy by right clicking on the view and selecting copy option its creating the copy of the view but when i am using the view in the component BP_HEAD by using the component interface of the copied view, its throwing some run time exception on the UI. Please help.
    Also is there any other way of copying the view other than the one i used above?
    Regards,
    Udit.

    Hi Udit,
    Unfortunately there is no way to copy a view from one component another the way we understand copy-paste. However, if your requirement is to reuse BP_DATA/AccountRelationshipsOV (or its copy you already created) in BP_HEAD, then you need to do the following:
    In BP_DATA component:
    1. Create a new window.
    2. Add the copy to this new window in runtime repository editor.
    3. Expose this new window from runtime repository editor.
    In BP_HEAD component:
    1. Declare a new usage for component BP_DATA, view (new window you create above)
    2. Add the usage view to the concerned view area.
    You also need to make sure that the context nodes are properly bound for the data flow.
    Regards,
    Shiromani
    P.S. What was the runtime exception?

Maybe you are looking for

  • Zone Alarm Issues

    +This isn't really a question, more of a suggestion.+ As of today (11-12-09) Apple hasn't solved this issue that deals with Zone Alarm software. Maybe in the near future they will, but who knows. Anyways, I'll start with the problem: A month or so ag

  • SMSY//Logical component definition - multiple roles for one system?

    Dear all, as our client has a divided system landscape (three-tier operational line as well as two-tier development line) some systems have more than one role to fill. The development system on development line is source system for all developments,

  • Smoke Patch Drop Zone Image disappears...

    Greetings: I am new to DVD pro and using the smoke patch drop zone against a video background (HD1080). When I first stated I could see the smoke and the video asset it contained. Later, after simulation, the drop zone outline is there, but not the s

  • 945P Neo Platinum IDE or bios problem

    Ive just fitted a maxtor diamondmax 10 160G hdd as a second drive to my pc, the hdd was previously in an external case, had no problems, now that it is connected to ide 2 on the mobo the transfer rate is incredibly slow, about 30 mins for a 4.5g DVD,

  • 2Gen iPod Shuffle Does Not Play .m4a Songs

    My 2Gen iPod Shuffle 1GB only plays songs that I purchased from iTunes (.m4p) and will not play any songs that I ripped to iTunes (.m4a). According to iTunes, I successfully transferred 80 songs on to my Shuffle. Under the Settings tab, it shows that