Impact of migrating to a new database on the existing code

There is a java application that connects to postgreSQL as the database server. postgreSQL is installed under LINUX. I am planning to migrate the existing postgreSQL database to a SQL Server 2000 database under windows. In case of such an action will the application code need to be changed? If yes will it be a major change? Pls advise.

I left my crystal ball at home today; plus, I've never seen the code for the application in question,so it's kind of hard for me to say. Maybe this is a bit of a stretch, but isn't that what you, as a developer, should be determining? Based on the question(s) in your original post, do you truly believe someone is going to respond with a concrete answer? Do you think everyone but you knows if the application will need to be changed; and, if so, how big of a deal it will be? Come on, give me a break.
As for a few pointers that might help you come up with some answers:
- Is the SQL SQL-99 compliant (i.e. least common denominator kind of stuff) or is it postgreSQL-specific?
- Is the SQL fairly well contained within the code; or better yet in a separate file (.properties or XML)?
- Are you using any kind of persistence layer?
Jamie

Similar Messages

  • The documents didnt migrate to my new MacMini from the old one

    My documents didn't migrate to my new MacMini from the old one.  How do I get them back?

    connect the two Macs with a firewire cable, boot the source Mac in Target Disk Mode, and copy whatever you need to the new Mac.

  • How to create new or delete the existing row in the grid....

    hi my friends...
    i am developing report using Reuse_alv_grid_display...
    my requirement is... At runtime
              1.  i may create new row on the grid (empty row inwhich  i may enter the data).
              2.  i may delete a existing row in the grid
              3.  i may edit the existing data...
    then i have to trace the modification in the grid in one internal table...
    how can i get into this.....
    note:
    i have some idea to edit the existing record in the grid and trace those modification,
    but i don't know abt how to create new or delete the existing row....
    can you give me some idea...

    Hi deva,
    write a class which implemets these methods
    CLASS lcl_event_receiver DEFINITION.
      PUBLIC SECTION.
        METHODS:
    To handle the toolbar on alv
         handle_toolbar
           FOR EVENT toolbar OF cl_gui_alv_grid
              IMPORTING e_object e_interactive,
    To handle the buttons on the alv grid
         handle_user_command
           FOR EVENT user_command OF cl_gui_alv_grid
           IMPORTING e_ucomm.
    endclass.
    Now Implement these methods.
    CLASS lcl_event_receiver IMPLEMENTATION.
    To handle the toolbar on alv
      METHOD handle_toolbar.
       DATA ls_toolbar  TYPE stb_button.
        CLEAR gs_toolbar.
        MOVE 3 TO gs_toolbar-butn_type.
        APPEND gs_toolbar TO e_object->mt_toolbar.
        CLEAR gs_toolbar.
        PERFORM icon_create USING 'ICON_INSERT_ROW' gs_toolbar-icon.
        MOVE text-010 TO gs_toolbar-function.
        MOVE text-012 TO gs_toolbar-quickinfo.
        MOVE ' ' TO gs_toolbar-disabled.
        APPEND gs_toolbar TO e_object->mt_toolbar.
        CLEAR gs_toolbar.
        PERFORM icon_create USING 'ICON_DELETE_ROW' gs_toolbar-icon.
        MOVE text-011 TO gs_toolbar-function.
        MOVE text-013 TO gs_toolbar-quickinfo.
        MOVE ' ' TO gs_toolbar-disabled.
        APPEND gs_toolbar TO e_object->mt_toolbar.
      ENDMETHOD.
       METHOD handle_user_command.
    In this form, check the function code(e_ucomm has the function code), based on that do the required action.
    as i said yesterday(i.e for appending a row, deleting a row, modifying a row)
        PERFORM user_command USING e_ucomm.
      ENDMETHOD
    endclass.
    Before calling the alv method, create a object of this class.
    DATA :
          gref_event_receiver  TYPE REF TO lcl_event_receiver,
          gv_tables_alv          TYPE REF TO cl_gui_alv_grid.
          CREATE OBJECT gref_event_receiver.
          SET HANDLER   gref_event_receiver->handle_user_command
                        FOR gv_tables_alv.
          SET HANDLER   gref_event_receiver->handle_toolbar
                        FOR gv_tables_alv.
    check this program for event handling, it is the similar way
    demo_abap_objects_events
    Hope u understood this.
    Regards,
    Prasant
    reward if helpful

  • Need to add 2 new columns to the existing table control of C223 transaction

    Hi ABAP Gurus,
    I have to do a screen enhancement for transaction C223.
    Below is the requirement:
    need to add 2 new columns to the existing table control of C223 transaction.
    there is no customer exits, screen exit or user exit present for this transaction C223, i have found one enhancement spot for this transaction.
    i dont have any idea how to do this in standard transaction C223, the table control in C223 saves the data to MKAL table and the table control uses the structure MKAL_EXPAND in the screen program.
    i have created an append structure for  the 2 fields to the standard table MKAL.
    Can anyone please suggest me how this can be done in standard screen C223, will the enhancement spot can be used to do this....
    please sugest...
    Thanks & Regards

    Hi Santosh,
    Thanks for the reply. I have looked into this Enhancement Spot CPFX_SCREEN_SET , inside this there is only one method INPUT_DISABLED having below parameters
    IM_MKAL     Importing     Type     MKAL                                                                                Production Version
    EX_MSGID     Exporting     Type     SY-MSGID                                                                                Messages, Message
    EX_MSGTY     Exporting     Type     SY-MSGTY                                                                                Messages, Message
    EX_MSGNO     Exporting     Type     SY-MSGNO                                                                                Messages, Message
    EX_MSGV1     Exporting     Type     SY-MSGV1                                                                                Messages, Message
    EX_MSGV2     Exporting     Type     SY-MSGV2                                                                                Messages, Message
    EX_MSGV3     Exporting     Type     SY-MSGV3                                                                                Messages, Message
    EX_MSGV4     Exporting     Type     SY-MSGV4                                                                                Messages, Message
    EX_INPUT_DISABLE     Exporting     Type     CHAR1                                                                                Display Only if X Was Set
    the BADI definition present here is a SAP internal so we cant implement the BADI , but we can created a enhancement spot implementation for this. as per my understanding on this the enhancement spot is only for making the table control fields display / change .  i dont think this can be used to add two new coloumns to C223 table control.
    I am not sure thats why seeking your help/valuable sugestion on this.
    Please provide your sugestion on this , so that i can come to conclusion on this issue.
    Thanks & Regards
    Siddhartha Mishra

  • Can I add new job in the existing Job

    Hi Gurus,
    There is a job which loads data from 4 ODS to respective Infocubes. Now we are adding new infocube and new ODS to the existing layout so can we add 1 more job which loads data from that ODS to corresponding Infocube. If so how??? Can u give me detailed steps to add new job in the existing job...
    Thanks in advance

    is the previous loads done through a job or a process chains???
    Go to RSPC > check what process chains are there and in case if you find one > log you will see when it was last run and stuff.
    But if it is a job in SM37, it is a different story, u might have to create a variant of that job and create events to trigger the job in sequence depending on ur scenario..
    give more details. like when is that job triggered, if any events used.

  • HT2240 I purchase my QuickTime 7 Pro registration key via a friend in USA as it was not available to residents in South Africa. I now have a new iMac and the registration code doesn't want to activate PRO. It works fine on my MacBook Pro.

    I purchase my QuickTime 7 Pro registration key via a friend in USA as it was not available to residents in South Africa. I now have a new iMac and the registration code doesn't want to activate PRO. It works fine on my MacBook Pro. Do I have to buy a new registration code for my newiMac?

    i'm in SA and it say Apple Support not available at the moment or something like that.
    Just got the new iMac.
    Still using MacBook Pro.
    Files are on a external drive shared between these 2 mac platforms and I need to be able to
    edit in QT 7 Pro on both as well.
    The code was bought in August 2011.

  • How to add the new dep area in existing cod

    Dear all,
    how to add the new dep area in existing cod we are planing to implement the IFRS by using leading ledger and non leading ledger present we are using OL leading ledger
    present we are using dep area 01 ,15
    how to achive the parallel accounting in asset accounting how to add new dep area 30 in existing COD
    if any document plz refer me  

    Hi Bhayyapu,
    Please refer to the links given below.
    New Depreciation area
    Adding a New Depreciation Area to Existing Assets - Financial Accounting (FI) - SAP Library
    Hope this will help you.
    Regards
    Eugene

  • How can I write new objects to the existing file with already written objec

    Hi,
    I've got a problem in my app.
    Namely, my app stores data as objects written to the files. Everything is OK, when I write some data (objects of a class defined by me) to the file (by using writeObject method from ObjectOutputStream) and then I'm reading it sequencially by the corresponding readObject method (from ObjectInputStream).
    Problems start when I add new objects to the already existing file (to the end of this file). Then, when I'm trying to read newly written data, I get an exception:
    java.io.StreamCorruptedException
    at java.io.ObjectInputStream.readObject0(Unknown Source)
    at java.io.ObjectInputStream.readObject(Unknown Source)
    Is there any method to avoid corrupting the stream? Maybe it is a silly problem, but I really can't cope with it! How can I write new objects to the existing file with already written objects?
    If anyone of you know something about this issue, please help!
    Jai

    Here is a piece of sample codes. You can save the bytes read from the object by invoking save(byte[] b), and load the last inserted object by invoking load.
    * Created on 2004-12-23
    package com.cpic.msgbus.monitor.util.cachequeue;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.RandomAccessFile;
    * @author elgs This is a very high performance implemention of Cache.
    public class StackCache implements Cache
        protected long             seed    = 0;
        protected RandomAccessFile raf;
        protected int              count;
        protected String           cacheDeviceName;
        protected Adapter          adapter;
        protected long             pointer = 0;
        protected File             f;
        public StackCache(String name) throws IOException
            cacheDeviceName = name;
            f = new File(Const.cacheHome + name);
            raf = new RandomAccessFile(f, "rw");
            if (raf.length() == 0)
                raf.writeLong(0L);
         * Whne the cache file is getting large in size and may there be fragments,
         * we should do a shrink.
        public synchronized void shrink() throws IOException
            int BUF = 8192;
            long pointer = getPointer();
            long size = pointer + 4;
            File temp = new File(Const.cacheHome + getCacheDeviceName() + ".shrink");
            FileInputStream in = new FileInputStream(f);
            FileOutputStream out = new FileOutputStream(temp);
            byte[] buf = new byte[BUF];
            long runs = size / BUF;
            int mode = (int) size % BUF;
            for (long l = 0; l < runs; ++l)
                in.read(buf);
                out.write(buf);
            in.read(buf, 0, mode);
            out.write(buf, 0, mode);
            out.flush();
            out.close();
            in.close();
            raf.close();
            f.delete();
            temp.renameTo(f);
            raf = new RandomAccessFile(f, "rw");
        private synchronized long getPointer() throws IOException
            long l = raf.getFilePointer();
            raf.seek(0);
            long pointer = raf.readLong();
            raf.seek(l);
            return pointer < 8 ? 4 : pointer;
         * (non-Javadoc)
         * @see com.cpic.msgbus.monitor.util.cachequeue.Cache#load()
        public synchronized byte[] load() throws IOException
            pointer = getPointer();
            if (pointer < 8)
                return null;
            raf.seek(pointer);
            int length = raf.readInt();
            pointer = pointer - length - 4;
            raf.seek(0);
            raf.writeLong(pointer);
            byte[] b = new byte[length];
            raf.seek(pointer + 4);
            raf.read(b);
            --count;
            return b;
         * (non-Javadoc)
         * @see com.cpic.msgbus.monitor.util.cachequeue.Cache#save(byte[])
        public synchronized void save(byte[] b) throws IOException
            pointer = getPointer();
            int length = b.length;
            pointer += 4;
            raf.seek(pointer);
            raf.write(b);
            raf.writeInt(length);
            pointer = raf.getFilePointer() - 4;
            raf.seek(0);
            raf.writeLong(pointer);
            ++count;
         * (non-Javadoc)
         * @see com.cpic.msgbus.monitor.util.cachequeue.Cache#getCachedObjectsCount()
        public synchronized int getCachedObjectsCount()
            return count;
         * (non-Javadoc)
         * @see com.cpic.msgbus.monitor.util.cachequeue.Cache#getCacheDeviceName()
        public String getCacheDeviceName()
            return cacheDeviceName;
    }

  • Migrating reports to new database schema

    Hi,
    My company has numerous Crystal Reports .RPT files that work against the existing database schema, but we are moving to a new database with a significantly different schema.
    Rather than have to manually recreate new RPT files for all the reports, it would be nice if it would be possible to automate the process.
    I have looked through the documentation for the various Java APIs and am completely confused as to whether this is possible and, if so, the best way to do it.
    Any help would be appreciated.
    Thanks,
    Carl

    I did have Crystal Reports version 9 installed, as well as version XI, but I uninstalled everything and only reinstalled Crystal Reports XI release 2, and I still have the same problem.
    Here is the code I am running:
    package reporting;
    import com.crystaldecisions.sdk.occa.report.data.*;
    import com.crystaldecisions.sdk.occa.report.lib.*;
    import com.crystaldecisions.sdk.occa.report.application.*;
    import java.io.*;
    import java.util.*;
    public class TestReporting3 {
      public TestReporting3() {
      public static void main (String [] p_Args) {
        try {
          String path = "C:\\Samples\\Test3.rpt";
          ReportAppSession ra = new ReportAppSession();
          ra.createService("com.crystaldecisions.sdk.occa.report.application.ReportClientDocument");
          ra.setReportAppServer("inproc:jrc");
          ra.initialize();
          ReportClientDocument clientDoc = new ReportClientDocument();
          clientDoc.setReportAppServer(ra.getReportAppServer() );
         clientDoc.open(path, 0);
          ConnectionInfo info = new ConnectionInfo();
          info.setKind(ConnectionInfoKind.SQL);
          info.setPassword("client");
          info.setUserName("client");
          PropertyBag bag = new PropertyBag();
          bag.put("Server Type", "JDBC (JNDI)");
          bag.put("Database DLL", "crdb_jdbc.dll");
          bag.put("Connection String", "Use JDBC=b(true);Connection URL=s(jdbc:derby://localhost:6652/agency;create=true);Database Class Name=s(org.apache.derby.jdbc.ClientDriver);Server=;User ID=s(client);Password=;JDBC Connection String=s(!org.apache.derby.jdbc.ClientDriver!jdbc:derby://localhost:6652/agency;create=true!user={userid}!password={password})");
          bag.put("Use JDBC", "true");
          bag.put("Database Class Name", "org.apache.derby.jdbc.ClientDriver");
          bag.put("Server Name", "jdbc:derby://localhost:6652/agency;create=true");
          bag.put("URI", "!org.apache.derby.jdbc.ClientDriver!jdbc:derby://localhost:6652/agency;create=true!user={userid}!password={password}");
          info.setAttributes(bag);
          clientDoc.getDatabaseController().replaceConnection((IConnectionInfo)clientDoc.getDatabaseController().getConnectionInfos(null).get(0), info, null, 0);
          clientDoc.saveAs("NewTest3.rpt", "C:/Samples", 0);
          System.out.println("Done");
        } catch (Exception ex) {
          ex.printStackTrace();
    The exception is being thrown by the line clientDoc.getDatabaseController().replaceConnection(...);
    Regards,
    Carl

  • How to Create A new Database in the oracle 10g XE

    i have oracle 10g XE i tried to create a new database but its giveing me error when i execute the sql command that is create database testDatabase how to create a new database in oracle 10g XE

    Hi there 785434,
    (This is a generic SQL question relating to Database Triggers, please post future questions of this type into the relevant forum area.)
    Moderator, please move this if able
    I use Before Update and Before Delete Triggers to record a 'snapshot' of the row being changed in my applications.
    Example:
    CREATE TABLE TEST
    DATA VARCHAR2(64 CHAR),
    CREATING_USERID VARCHAR2(20 CHAR) DEFAULT user NOT NULL,
    CREATED_DATE DATE NOT NULL,
    CHANGED_BY_USERID VARCHAR2(20 CHAR),
    CHANGED_DATE DATE
    LOGGING
    STORAGE
    (MAXEXTENTS UNLIMITED);
    CREATE TABLE TEST_HISTORY
    DATA VARCHAR2(64 CHAR),
    CREATING_USERID VARCHAR2(20 CHAR) DEFAULT user NOT NULL,
    CREATED_DATE DATE NOT NULL,
    CHANGED_BY_USERID VARCHAR2(20 CHAR),
    CHANGED_DATE DATE,
    CHANGE_DESCRIPTION
    NOLOGGING
    STORAGE
    (MAXEXTENTS UNLIMITED);
    CREATE OR REPLACE TRIGGER TRG_BU_TEST
    BEFORE UPDATE ON TEST FOR EACH ROW
    BEGIN
    INSERT /*+ append */ INTO TEST_HISTORY
    (DATA, CREATING_USERID, CREATED_DATE, CHANGED_BY_USERID, CHANGED_DATE, CHANGE_DESCRIPTION)
    VALUES
    (:old.DATA, :old.CREATING_USERID, :old.CREATED_DATE, USER, SYSDATE, 'UPDATE');
    END;
    CREATE OR REPLACE TRIGGER TRG_BD_TEST
    BEFORE DELETE ON TEST FOR EACH ROW
    BEGIN
    INSERT /*+ append */ INTO TEST_HISTORY
    (DATA, CREATING_USERID, CREATED_DATE, CHANGED_BY_USERID, CHANGED_DATE, CHANGE_DESCRIPTION)
    VALUES
    (:old.DATA, :old.CREATING_USERID, :old.CREATED_DATE, USER, SYSDATE, 'DELETE');
    END;
    Using triggers like this will record who made an update or delete to the database and record the row before it was changed.
    Note that this method might not be suitable for very high transaction rates.
    You will need to 'clear' these history tables as part of routine maintenance.
    Hope that this Helps.
    Ronald.

  • How to create table(s)/indexes on a new database from an existing database

    Hello all - I need some help in finishing a task, quick response is really appreciated
    So, I have a new database that needs creation of tables including indexes and objects for two different tablespaces called CDS1 and CSD2. I have created these tablespaces and datafiles associated with them. I need some help just to create these tables and indexes from an existing database without copying any of its contents. How can I achieve this, these are 2 different servers at different locations. Can somebody give me step by step instruction - would greatly appreciate it !
    Thanks,
    Vikas

    9876543210 wrote:
    Hello all - I need some help in finishing a task, quick response is really appreciated
    So, I have a new database that needs creation of tables including indexes and objects for two different tablespaces called CDS1 and CSD2. I have created these tablespaces and datafiles associated with them. I need some help just to create these tables and indexes from an existing database without copying any of its contents. How can I achieve this, these are 2 different servers at different locations. Can somebody give me step by step instruction - would greatly appreciate it !
    Thanks,
    Vikas
    exp help=yes
    exp username/password rows=no
    How do I ask a question on the forums?
    https://forums.oracle.com/message/9362002#9362002

  • Migrating Oracle repository Database with the existing Database

    Hi
    I have a grid installed in a machine and is it possible to create the repository database in different machine using the existing database.
    Please help me in this

    Thanks for the reply i got the Solution. We can use the "Install Grid usisng Existing Database" option but when we are tyring this it is throwing the error that DBSPOOL Package has to be run but dodn't know how to run that.

  • Want to add new module in the existing Landscape

    Hi Friends,
    We have ECC 6.0 running with HCM and Finance, and this is for Phase I and it rolled out successfully last June, now we are going to add Merchandising for Phase II in the existing landscape.
    My question is we have in our DEV Systems we have Client 100,200,300 and 500. and in Quality the same and one client in Production.,
    Since we are going to add Merchandising in Phase II do we use the same existing clients in dev and qa or we need to have a seperate client in dev and qa,
    But end of the day we will have only one client in Prod.
    Please let me know we need to use different client or existing clients for realization.
    Thanks in advance
    Sathish

    Hi,
    I observe 4 clients in development, possibly my guess would be playpen, golden client, development and unit testing.
    For a new implementation I would preferably use another client for the project or use the existing clients based on impact to production support to current landscape.
    The clients in QA can be kept same to understand how the new changes integrate with the current landscape and if changes impact the current environment. This would ensure that any problems are fixed before transports are moved to production.
    I have assumed a 3 system landscape but there are many possibilities where you can have a separate project landscape for this new module implementation to ensure no impact to production support team.
    If your project can afford new servers then suggest buying two servers one with a copy of your development and another with a copy of production(project test system). This was you would start with all new developments happening in current landscape and also would be tested with a current copy of production data.
    Cheers Sam

  • Automated process to compare new data with the existing

    Below is the requested task and I am not sure if I can do this with only Database and ETL skill.
    "New customers access out site and I get a http:// request notifying me with new people accessing our website. I need to somehow take this new customer and compare with the existing customer table  and make sure that it is not an existing one.
    If it is new , I need to send a http:// notification back to a third party saying that this is new. Also, this all has to be done REAL TIME. "
    I am not sure if I can do all these real time by just using SSIS .
    Any input is much appreciated. Stay warm Folks!

    A new customer has to register, am I right? Then issue SELECT * FROM Customers WHERE Customerid=@CustomerID IF @@ROWCOUNT=0 that means it is a new one... You can use EXEC msdb.dbo.sp_send_dbmail to send a notification ....
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Adding New table to the existing page

    Hi,
    i have a task i.e i have to create a new UI(consista table structure) and add to the existing page.How can do this one.If any one knows please respond asap.
    This is urgent requirement.
    Thanks in advance.
    Bye
    Palakondaiah

    Hi,
    i have a task i.e i have to create a new UI(consista table structure) and add to the existing page.How can do this one.If any one knows please respond asap.
    This is urgent requirement.
    Thanks in advance.
    Bye
    Palakondaiah

Maybe you are looking for