Sql insert in Java vs. sql dts package

Hi,
I was wondering the speed difference between inserting records to database from Java as oppose to inserting records using a sql server dts package. I'm talking about 3000+ records.
See Java when inserting records to database it looks something like this:
while (recordHasNext)
   String insertStr = "insert into table(item) values(" + valueVariable + ")";
   statement.executeQuery(insertStr);
}where as if I'm executing a dts package I would create a .bat file with the following commands:
DTSRUN.EXE /S ServerName /E /N PackageName /F FileName
And then have Java execute the batch file.
So my question is, which is faster for the amount of records I'm inserting?
thanks,

veryConfused wrote:
Hi,
I was wondering the speed difference between inserting records to database from Java as oppose to inserting records using a sql server dts package. I'm talking about 3000+ records.That's not many.
>
See Java when inserting records to database it looks something like this:
while (recordHasNext)
String insertStr = "insert into table(item) values(" + valueVariable + ")";
statement.executeQuery(insertStr);
}where as if I'm executing a dts package I would create a .bat file with the following commands:
DTSRUN.EXE /S ServerName /E /N PackageName /F FileName
And then have Java execute the batch file.
So my question is, which is faster for the amount of records I'm inserting?
thanks,Measure it for your situation and see.
My recommendation would be to go with DTS. They have a graphical way of mapping from one database to another, including transforms. You don't have to write code to do it. And I'd bet that DTS will do it faster, but I'm not certain.
%

Similar Messages

  • Oracle equivalent of SQL DTS package

    In process of migrating SQL database to Oracle database what is Oracle equivalent of SQL DTS package???

    Data transformation services are something totally different, that have nothing to do with migration process. Can you please be more specific with your question? If you really want an answer, then you can consider the conversion phase....
    But, again, there is no reason to compare these two.
    If you want you can read about Oracle's data warehouse concepts, probably ETL is the true answer to your question

  • Has anyone used PS to Backup Sql 2005 DTS packages to individual files

     Looking for a backup script to store all of the SQL DTS packages in seperate files on a Network folder.
     Thanks.

    http://stackoverflow.com/questions/16309263/script-to-export-all-dts-packages-on-is-to-file-system
    Sam Boutros, Senior Consultant, Software Logic, KOP, PA http://superwidgets.wordpress.com (Please take a moment to Vote as Helpful and/or Mark as Answer, where applicable) _________________________________________________________________________________
    Powershell: Learn it before it's an emergency http://technet.microsoft.com/en-us/scriptcenter/powershell.aspx http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx

  • Execute sql server dts package

    Does anyone have sample code for executing MS sql server dts package in java application?
    The following parameters are required for executing the package:
    DTS package name="tranfer"
    login="uid"
    password="password"
    Thank you very much!

    Does anyone have sample code for executing MS sql
    server dts package in java application?Google might.
    http://www.google.com/search?q=ms+sql+server+dts+package+java+sample+code&sourceid=opera&num=0&ie=utf-8&oe=utf-8

  • Need to convert DTS packages to SQL Server 2012 environment.

    Hi Friends,
    As Part of the Project Requirement,we need to convert DTS packages to SQL Server 2012 environment.
    Please sugest me best approach.
    Thanks

    Best approach is to re-design the packages in SSIS 2012 directy if it is feasible. Because most of the DTS feaures are discontinued and also you will have to clean up all errors that you are going to get after migration.
    Discontinued Integration Services Functionality in SQL Server 2012
    Otherwise you need to migrate it first to 2008R2 and then 2012 version.
    Below ones would be helpful for you:
    Migrate DTS packages to SSIS (SSIS2008R2)
    Support of DTS packages in 2008 R2
    Known DTS Package Migration Issues
    Cheers,
    Vaibhav Chaudhari

  • Trying to install Support for DTS packages in SQL server 2008

    Hi all
    I am trying to follow the instructions in the following link...
    technet.microsoft.com/en-us/library/ms143755(v=sql.105).aspx
    ...to install support for DTS packages - when it says on the Feature Selection page, select Integration Services - none of the installs I have tried show this as an option - what should I be installing in order to see this and get this feature installed?
    I just need to be able to view some DTS packages - help!
    Thank you! James

    Hello James,
    as can be read in the article:
    Microsoft SQL Server 2008 Service Pack 2 Feature Pack => SQLServer2005_BC.msi  (BC
    = backward compatibilty).
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • SQL Agent job running DTS package running in SQL 2005 is unable to run if job onwer is not logged onto server

    I am currently working on a SQL Server upgrade project for a a client where I am converting old dts packages to SSIS. However for a few of the packages no conversion is allowed to be done. For these few packages I have to use dts legacy components in SQL
    2005 on a windows 2003 server to run them.
    These packages use CAPICOM via an Active X script in the package to envelope connection string data for security within the package. Consequently I have to register the capicom.dll for the job owner (which will execute the job via proxy) and install private
    and public key files via internet explorer. I also do this when I am logged in with my account so i can test the package.
    I have created a SQL Server Agent Job which is used to execute the package. We have a schedule account which is local admin on the server and sysadmin within SQL Server. This account is used to create a credential and then a proxy for the CmdExec subsystem
    is then created based on this credential. A CmdExec job step is then added to the job. The directory of  cmd file which calls the dts package is then entered in the command window.
    Finally a recurring schedule is added to execute the job every 5 minutes. 
    If i am logged in to the server using the scheduled account the schedule runs successfully. I am also able to run the command file manually by double clicking on it. The DTS package is run successfully. However once the schedule is set up and I log off the
    machine and log onto my development machine with my normal account and fire up  SQL Server. I connect to that instance with the schedule and see that the job is failing with and Active X error in the package. From experience with this package this Active
    X  error occurs when the user executing the package has not registered the capicom.dll. This has already been done for the scheduler account because the job runs when the scheduler account is logged in on the server. 
    It almost seems as though the job will only run if the Scheduler account is logged on. If i log directly on to the server with own user account I am able to manually execute the package via the cmd file which indicates that the capciom.dll is registered
    under my account. Yet if I try an run the job in SQL Server when I am logged in under my account (using the scheduler account proxy) then the job fails.
    Does anybody have any idea why this may be happening? Any ideas would be much appreciated

    Run the job SSIS step under a proxy account that is derived from the domain account, non-expiring password and has been set to have all the necessary rights.
    How to is here: http://www.mssqltips.com/sqlservertip/2163/running-a-ssis-package-from-sql-server-agent-using-a-proxy-account/
    Arthur
    MyBlog
    Twitter

  • SQL Server DTS packages migration

    How to move DTS packages from SQL Server 2000 to SQL server 2008 version 
    can you plz provide me step by step procedure
    if i migrated DTS packages by using of save as option what will happen, is it working properly 
    and i had migrated DTS packages from sql 2000 to sql 2008 version but while i'm click to open the DTS i got below error
    ERROR:Managing DTS packages in SQL Server Management Studio requires the SQL Server 2000
    Data Transformation Services (DTS) runtime. To install the DTS runtime, on your SQL Server 2008 R2 installation media, locate and run the Windows Installer package for SQL Server 2005 Backward Compatibility (SQLServer2005_BC*.msi). You can also download the
    DTS runtime from the SQL Server Feature Pack page on the Microsoft Download Center. (Microsoft.SqlServer.DtsObjectExplorerUI)
    Kamal

    Hello,
    Please read below article completely
    Migrate DTS packages to SSIS
    For the error you got because you need to install DTS runtime , which is not present
    Support of DTS packages in 2008 R2
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers
    My TechNet Wiki Articles

  • Custom DTS package migration from BPC 4.2 ,SQL 2000 to BPC 7.0 M , SQL 2005

    Is there any changes required in the custom dts package when migration from BPC 4.2 , sql 2000 Environment to bpc 7.0 , SQL 2005/2008  Environment.
    or
    Please suggest process for migrating  custom dts package from BPC 4.2 ,SQL 2000 Envirnment to BPC 7.0 ,SQL 2005/2008 Environment

    When you say "custom dts package" that can mean many different things. What type of customization has been done?
    There are a few BPC-related features which changed from 4.2, which must be manually adjusted, if you're using those features.
    But SQL itself also changed dramatically in moving from SQL 2000 to 2005. So if your customer's packages are heavily customized around SQL 2000, this may require substantial re-work.
    The only migration process for custom DTS packages -- that I'm aware of -- is to use the SQL 2005 migration tool in SSIS, see how much it messed up, and then fix everything else that's still broken.
    But there also may be opportunities to improve the package overall. SQL 2005 has a lot of great new features in SSIS, over what was there in SQL 2000.
    I haven't started working with SQL 2008 yet, so I can't say what complexity there is in upgrading DTS packages from 2005 to 2008. From what I read in the BPC 7 release notes, it sounds like it's a very minor upgrade, compared to the jump from 2000 to 2005.

  • Easiest way to search for a keyword in over 100 dts packages on a complex SQL 2000 server

    Hi,
    Can anyone tell me the easiest way to search for a keyword (e.g. myfilename.txt) in over 100 dts packages on a complex SQL 2000 server please. I've searched the internet for a solution, and there seem to be various third party tools available, etc. However
    ideally I would like to be able to run a block of code which returns the result within query analyser, since this SQL 2000 server is a production server and I'd rather not have to go through change management for investigation purposes.
    Kind Regards,
    Kieran.
    Kieran Patrick Wood http://www.innovativebusinessintelligence.com http://uk.linkedin.com/in/kieranpatrickwood http://kieranwood.wordpress.com/

    See if this helps
    http://www.sqlservercentral.com/Forums/Topic169278-19-1.aspx
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Remote execution of DTS packages from Java Stored Procedures

    I'm an Oracle 10G DBA and Linux/Unix Sysadmin looking for a Java guru to help me find a reusable template or locate a solid programming methodology (examples) that will enable me to connect via JDSI to SQL Server 2000/2005 and remotely execute DTS packages from within Oracle. I am working at office that's absolutely addicted to MicroSlop products and the DBA team cannot conceive of giving up their precious DTS packages. I've already converted their MS SQL Server 2000 database to Oracle 10G on RHEL4 via SQLDeveloper but I am unschooled in the art of java programming and would like to locate some sort of rudimentary template or examples or java class that can easily be loaded into the Oracle 10G database instance via the loadjava utility. These java classes/methods/stored procedures need to be executable from within embedded PL/SQL code and able to connect to SQL Server 2000 to execute DTS packages via passing dtsrun commands ... Any help or direction would be greatly appreciated.

    Hi Ilford:
    Sure you can use fully package notation in your Java classes.
    Look at this Java source code:
    http://dbprism.cvs.sourceforge.net/dbprism/cms-2.1/src/com/prism/cms/core/
    All of them are Java Stored procedures.
    Best regards, Marcelo.

  • How to trigger a report based on a event/stored proc or sql dts completion

    Post Author: Crystaldev
    CA Forum: Publishing
    I want to run/trigger a crystal report based on file existence or based on a stored proc/sql dts/a value present in a sql table. The way I want to do is schedule a crystal report in crystal enterprise and then run the report based on a event like file existence or based on a sql dts completion or a value existence in a sql table. We are using crystal reports v10.
    I am not sure how we can do this, any help is appreciated. Thanks.

    Hi
    When you click on View Data, at bottom click on Edit button
    It will prompt a connection details tab wherein you can view and modify the connections
    Nik

  • How to find type of PL/SQL in package

    Hi All,
    I want to find all procedures/ Functions in package specification along with their type.
    Eg. if there is procedure p1 and function f1 in package pk1 i want a query that will return
    Package Proc/Function_name Type
    pk1 p1 procedure
    pk1 f1 function
    from user procedures i can get only procedure/funtion name bur not its type.

    Hi,
    Yes, I think metzguar got one.
    Package dropped.
    SQL> create package p1
    as
       function f
          return number;
       procedure p;
       function f(x number)
          return number;
       procedure p(x number);
    end;
    Package created.
    SQL> select package_name, object_name, case min(position)
                                           when 0 then 'FUNCTION'
                                           when 1 then 'PROCEDURE'
                                        end
                                           method_type
        from user_arguments
       where package_name = 'P1'
         and nvl(overload, 1) = 1
    group by package_name, object_name
    PACKAGE_NAME                   OBJECT_NAME                    METHOD_TY
    P1                             P                              PROCEDURE
    P1                             F                              FUNCTION
    2 rows selected.Regards
    Peter

  • New install of SQL 2014 Std MSDN. Get "The SQL Server product key is not valid. To proceed, re-enter the product key values from the Certificate of Authenticity (COA) or SQL Server packaging."

    Trying to install a new version of SQL 2014 Std 64 or x86. Installing on Windows 8.1Pro 64bit machine.
    I get:
    "TITLE: SQL Server Setup failure.
    SQL Server Setup has encountered the following error:
    The SQL Server product key is not valid. To proceed, re-enter the product key values from the Certificate of Authenticity (COA) or SQL Server packaging.
    Error code 0x858C0017."
    I looked at the summary log and that is the only error.
    I made sure there were no other instances of SQL on this machine. Uninstalled all VS2013 and sql instances just in case. IF there is somewhere to check if a previous version or license is causing the issue, i would be glad to check.
    Any help would be appreciated.

    Hi,
    Please read this thread with similar issue
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/bdd94577-515c-49fa-be44-008eacece057/installing-sql-server-2012-on-a-new-vm-error-code-0x858c0017?forum=sqlsetupandupgrade
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Articles

  • Executing DTS packages thro Java

    Hi,
    Whether it is possible to execute a SqlServer DTS package thro Java api's
    or
    Any pointer towards this?
    Thnx
    Rgds
    Naga

    Excellent question!
    Better yet - does anyone know about a Java clone of DTS? It's a great package.
    I guess M$ got it from a couple of outsiders - MORE evidence of their "innovation".
    Maybe the outsider factor explains why it's so bloody good. - MOD

Maybe you are looking for

  • Opening a PDF in Acrobat via an AIR application

    Hey, I'm creating my first AIR application. The application needs to be able to launch Acrobat to view a PDF file. I have done a lot of searching and can't seem to find anything, could someone point me in the right direction? I read a response here:

  • Battery replacement IPod

    I always thought that I could return my Ipod to Apple to have the battery replaced.  Now I'm reading that if you send it to Apple, they will send you a replacement IPod and not transfer any of your songs.  Is that true?  I just want a new battery!  C

  • Process chain Logic for this scenario

    HI,   We have a typical requirement that need to be implemented using a Process chain. We need to Load data from R/3 to PSA, then Load the data from the PSA into ODS1, then execute an ABAP program, then load the data from PSA into ODS2 (we cannot rep

  • Http servlet error

    Hi all, Could u please help me how to solve the error D:\>javac myservlet.java myservlet.java:1: package javax.servlet does not exist import javax.servlet.*; ^ myservlet.java:2: package javax.servlet.http does not exist import javax.servlet.http.*; ^

  • Etheret connected but no internet?

    I usually connect to internet via an etheret cable (and I have to use an additional adapter, because Air doesn't have an etheret port). Last week i updated my Macbook Air to Moutain Lion and could no longer connect to internet and my computer didn't