[SQL SERVER 2000] Generic table exporter

Hello every body.
First of all sorry for my bad english but I'm french ;-)
My internship consits into making a generic table exporter (with a table list). Export into csv files.
I have tried 2 solutions :
1 - Create a DTS with a Dynamic Properties Task. The problem is I can easily change the destination file but when I change the table source I don't know how to remap the transformations between source and destination (do you see what I mean ?). Any idea ?
2 - Use the bcp command. Very simple but how to do when tables contains the separator caracter ? for example : If a table line is "toto" | "I am , very happy" --> the csv file will look like this : toto, I am , very happy --> problem to get back the data ( to much comma ).
Does someone has a solution ?
Last point is how to export the table structure ? For the moment, using the table structure, I generate an sql query which creates a table (I write this query in a file). Isn't there any "cleaner" solution ?
Thanks in advance and have a nice day all

Answers,
1. Use ActiveX script to transform. Refer
http://technet.microsoft.com/en-us/library/aa933459(v=sql.80).aspx
2. Replace the pipe delimiter first with comma if it is a single column and use bcp command. Refer
http://technet.microsoft.com/en-us/library/aa174646(v=sql.80).aspx
3. Regarding generating script refer
http://stackoverflow.com/questions/4058977/exporting-tables-and-indexes-from-one-sql-server-2000-database-to-another
Regards, RSingh

Similar Messages

  • Cant export worksheet when connected to MS SQL Server 2000

    SQL Developer version: 1.5.1
    Hello,
    I have a connection to an SQL Server 2000 database. I can select data with an "order by" clause but I receive an error when I attempt to do an "Export --> xls" on the worksheet data. I dont think this was a problem prior to SQL Developer 1.5.
    No export error occurs if the "order by" cluase is removed.
    Here is an example of a select stmt that generates the error.
    select LastName, FirstName, EmployeeID
    from northwind.dbo.employees
    order by LastName, FirstName
    Here are the error details:
    First dialog box error text: The ORDER BY clause is invalid in views, inline functions, derived tables, and subqueries, unless TOP is also specified.
    Second dialog box error text (after clicking Details button):
    java.lang.NullPointerException
         at oracle.dbtools.raptor.dialogs.export.ColumnPanel.addColumnsToTree(ColumnPanel.java:85)
         at oracle.dbtools.raptor.dialogs.export.ColumnPanel.showPanel(ColumnPanel.java:61)
         at oracle.dbtools.raptor.dialogs.export.ColumnPanel.<init>(ColumnPanel.java:45)
         at oracle.dbtools.raptor.dialogs.actions.TableExportAction.showPanels(TableExportAction.java:297)
         at oracle.dbtools.raptor.dialogs.actions.TableExportAction.launchDlg(TableExportAction.java:197)
         at oracle.dbtools.raptor.format.ui.ExportContextMenuListener$1.actionPerformed(ExportContextMenuListener.java:137)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
         at java.awt.Component.processMouseEvent(Component.java:5488)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
         at java.awt.Component.processEvent(Component.java:5253)
         at java.awt.Container.processEvent(Container.java:1966)
         at java.awt.Component.dispatchEventImpl(Component.java:3955)
         at java.awt.Container.dispatchEventImpl(Container.java:2024)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
         at java.awt.Container.dispatchEventImpl(Container.java:2010)
         at java.awt.Window.dispatchEventImpl(Window.java:1774)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    The table selected from is not a view, inline function, derived table, or subquery (as the error suggests). I can work around the problem by adding "TOP nnnn" to the select statement but this shouldn't be required.
    Any suggestions?
    Thanks.

    I confirmed that this is not a problem in SQL Developer 1.2.1.32.13. It started with 1.5. In 1.5.1.5540 I can successfully run the query and see the output in the Results tab. Only the Export has the error.

  • Query Locks Table in SQL Server 2000!!

    Hi all!
    I am facing a strange problem. I am using MS SQL Server 2000.
    I have a JDBC program.It executes a query on a table (STUDENT) and fetches some record from it.
    The query gets executed fine for the first time but when the SELECT query is executed on the same table (i.e. STUDENT) from some other block of code within the same program the program hangs at the location where resultset is pointed to the first record i.e. RS.next();
    When I try to execute the SELECT query on the same table (i.e. STUDENT) from a query tool when the program is running it also gets hanged!!!
    It seems that after running the query for the first time on the STUDENT table from the next time its getting hanged....i believe the Table gets locked for some reason!!
    Is that normal with SQL Server 2000.....The same code works fine with other database!
    Please suggest...wht has to b done to gt it fixed!
    Thankz a loadz bforehand!
    Arun

    By default (transaction isolation level TRANSACTION_READ_COMMITTED ), SQL Server applies a shared read lock when you do a SELECT. This is should not prevent other selects on the same row / page but it will prevent updates / deletes.
    I found a link that explains SQL Server locking: http://databasejournal.com/features/mssql/article.php/3289661

  • How to use create-default-dbms-tables in SQL Server 2000

    Hi everyone,
    I'm new in EJB development. I'm trying to deploy a CMP to Weblogic 8.1 SP1 using
    JBuilderX. I configured a ConnectionPool and DataSource to allow the CMP to access
    the SQL Server 2000. However, I cannot deploy the CMP if I didn't create the table
    in SQL Server manually. Does anyone know how to use the create-default-dbms-tables?

    Refer to
    http://e-docs.bea.com/wls/docs81/ejb/DDreference-cmp-jar.html#1162249
    "Keith" <[email protected]> wrote:
    >
    Hi everyone,
    I'm new in EJB development. I'm trying to deploy a CMP to Weblogic 8.1
    SP1 using
    JBuilderX. I configured a ConnectionPool and DataSource to allow the
    CMP to access
    the SQL Server 2000. However, I cannot deploy the CMP if I didn't create
    the table
    in SQL Server manually. Does anyone know how to use the create-default-dbms-tables?

  • Exceptions thrown while importing tables from SQL Server 2000

    Hi all,
    <MyProblem:
    I cannot import the tables defined in my local SQL Server. An exception is thrown --oracle.jdeveloper.cm.ds.db.ValidationException: Columns of type varchar cannot have a size specified.
    />
    <What I have done:
    In Oracle JDev 10g, Created a new DB connection called "SQLServerConnection" to connect to the SQL Server and it works fine. I am able to see all tables by expanding the connection.
    During the creation of a new partner link named "DBAdapter", I use the adapter wizard to select DB Adapter and then select the "SQLServerConnection" DB connection I have created. I select Perform an Operation on a Table and then check Select. After I pressed OK button on the[i] Import Tables  dialog, a Error messege box emmerged indicating the Exception: Columns of type varchar cannot have a size specified.
    I try to change the data type of the columns of the tables to char, there is still similar exception (Columns of type char cannot have a size specified).
    />
    I got the stack trace from the prompt by using jdev.exe.
    <StackTrace:
    oracle.jdeveloper.cm.ds.db.ValidationException: Columns of type varchar cannot h
    ave a size specified.
    at oracle.jdeveloper.offlinedb.OfflineDBTableValidator.validateObject(Of
    flineDBTableValidator.java:116)
    at oracle.jdeveloper.cm.ds.db.AbstractDBObjectProvider.validateObject(Ab
    stractDBObjectProvider.java:601)
    at oracle.jdeveloper.offlinedb.OfflineDBObjectProvider.updateObject(Offl
    ineDBObjectProvider.java:952)
    at oracle.tip.tools.ide.pm.wizard.adapter.db.DBAdapterDescriptorGenerato
    r.generate(DBAdapterDescriptorGenerator.java:274)
    at oracle.tip.tools.ide.pm.wizard.adapter.db.DBAdapterSelectTablePage.ac
    tionPerformed(DBAdapterSelectTablePage.java:451)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:17
    86)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Abstra
    ctButton.java:1839)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
    .java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL
    istener.java:245)
    at java.awt.Component.processMouseEvent(Component.java:5100)
    at java.awt.Component.processEvent(Component.java:4897)
    at java.awt.Container.processEvent(Container.java:1569)
    at java.awt.Component.dispatchEventImpl(Component.java:3615)
    at java.awt.Container.dispatchEventImpl(Container.java:1627)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
    at java.awt.Container.dispatchEventImpl(Container.java:1613)
    at java.awt.Window.dispatchEventImpl(Window.java:1606)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
    read.java:201)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
    ad.java:151)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
    ad.java:141)
    at java.awt.Dialog$1.run(Dialog.java:540)
    at java.awt.Dialog.show(Dialog.java:561)
    at java.awt.Component.show(Component.java:1133)
    at java.awt.Component.setVisible(Component.java:1088)
    at oracle.bali.ewt.wizard.WizardDialog.runDialog(Unknown Source)
    at oracle.tip.tools.ide.pm.wizard.adapter.techAdapterWizard.display(tech
    AdapterWizard.java:151)
    at oracle.tip.tools.ide.pm.bpelgraph.editors.PartnerLinkEditPage.handleA
    dapterWizard(PartnerLinkEditPage.java:311)
    at oracle.tip.tools.ide.pm.bpelgraph.editors.PartnerLinkEditPage.actionP
    erformed(PartnerLinkEditPage.java:893)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:17
    86)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Abstra
    ctButton.java:1839)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
    .java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL
    istener.java:245)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:2
    31)
    at java.awt.Component.processMouseEvent(Component.java:5100)
    at java.awt.Component.processEvent(Component.java:4897)
    at java.awt.Container.processEvent(Container.java:1569)
    at java.awt.Component.dispatchEventImpl(Component.java:3615)
    at java.awt.Container.dispatchEventImpl(Container.java:1627)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
    at java.awt.Container.dispatchEventImpl(Container.java:1613)
    at java.awt.Window.dispatchEventImpl(Window.java:1606)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
    read.java:201)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
    ad.java:151)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
    ad.java:141)
    at java.awt.Dialog$1.run(Dialog.java:540)
    at java.awt.Dialog.show(Dialog.java:561)
    at oracle.tip.tools.ide.pm.bpelgraph.editors.PartnerLinkDialog.create(Pa
    rtnerLinkDialog.java:90)
    at oracle.tip.tools.ide.pm.bpelgraph.collaxalaf.BPELGraphPane.createPart
    nerLink(BPELGraphPane.java:324)
    at oracle.tip.tools.ide.pm.bpelgraph.collaxalaf.BPELDNDDropHandler.handl
    eDrop(BPELDNDDropHandler.java:77)
    at oracle.tip.tools.ide.common.graph.DefaultGraphPaneDropTargetListener.
    routeToDropHandler(DefaultGraphPaneDropTargetListener.java:212)
    at oracle.tip.tools.ide.common.graph.DefaultGraphPaneDropTargetListener.
    handleDrop(DefaultGraphPaneDropTargetListener.java:200)
    at oracle.tip.tools.ide.pm.bpelgraph.collaxalaf.BPELGraphPaneDropTargetL
    istener.handleDrop(BPELGraphPaneDropTargetListener.java:75)
    at oracle.tip.tools.ide.common.graph.DefaultGraphPaneDropTargetListener.
    drop(DefaultGraphPaneDropTargetListener.java:260)
    at java.awt.dnd.DropTarget.drop(DropTarget.java:398)
    at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(SunDropTarget
    ContextPeer.java:542)
    at sun.awt.dnd.SunDropTargetContextPeer.access$800(SunDropTargetContextP
    eer.java:52)
    at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEven
    t(SunDropTargetContextPeer.java:805)
    at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(Su
    nDropTargetContextPeer.java:743)
    at sun.awt.dnd.SunDropTargetEvent.dispatch(SunDropTargetEvent.java:29)
    at java.awt.Component.dispatchEventImpl(Component.java:3494)
    at java.awt.Container.dispatchEventImpl(Container.java:1627)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483
    at java.awt.LightweightDispatcher.processDropTargetEvent(Container.java:
    3269)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3123)
    at java.awt.Container.dispatchEventImpl(Container.java:1613)
    at java.awt.Window.dispatchEventImpl(Window.java:1606)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
    read.java:201)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
    ad.java:151)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    />
    <Oracle:
    Oracle JDeveloper 10.1.2.0.0 (Build 1811)
    Oracle IDE     10.1.2.17.84
    Business Components Version     10.1.2.17.96
    UML Modelers Version     10.1.2.16.71
    Versioning Support     10.1.2.16.71
    WebDAV Support Version     10.1.2.16.71
    Struts Modeler Version     10.1.2.6.15
    BPEL Designer     10.1.2.0.0 (Build 050504)
    Designer Generators Framework     10.1.2.7.56
    ADF UIX     2.2.16
    java.version     1.4.2_06
    java.home     E:\OraBPELPM\jdk\jre
    java.vm.name     Java HotSpot(TM) Client VM
    java.vm.vendor     Sun Microsystems Inc.
    java.vm.version     1.4.2_06-b03
    user.language     zh
    user.region     <no value assigned>
    user.name     Administrator
    user.home     C:\Documents and Settings\Administrator
    user.dir     E:\OraBPELPM\integration\jdev\jdev\bin
    os.name     Windows 2003
    os.version     5.2
    os.arch     x86
    http.proxyHost     jproxy.nju.edu.cn
    http.proxyPort     8080
    />
    <SQL Server:
    Microsoft SQL Server 2000 with the Microsoft SQL Server 2000 Driver for JDBC Service Pack 3 installed
    />
    By the way, I have read the thread Thread: DB Adapter not importing SQL Svr tables and take some of their advises but the problem still exist.
    Any help would be greatly appreciated.
    Thanks!
    And Merry Christmas to all!

    Hi, ronen!
    Thank you.
    I followed the steps and the there were no exceptions then.
    However, new runtime error emerged.
    The BPEL PM Server cannot build Toplink Session. But I do not know why.
    The messeges from the "Start BPEL PM Server" console about this project (named "TryDB") is as following (DoSelect is the service name of the DB Adapter):
    <::Outbound><oracle.tip.adapter.db.ox.TopLinkXMLProjectInitializer initialize> I
    nitializing an existing toplink project for use by the database adapter.
    <::Outbound><oracle.tip.adapter.db.ox.TopLinkXMLProjectInitializer initialize> I
    nitializing an existing toplink project for use by the database adapter.
    <2006-01-10 16:03:02,656> <INFO> <default.collaxa.cube.compiler> &#27491;&#22312;&#39564;&#35777; "E:\Or
    aBPELPM\integration\orabpel\domains\default\tmp\.bpel_TryDB_1.0.jar\TryDB.bpel"
    <2006-01-10 16:03:05,156> <INFO> <default.collaxa.cube.engine.deployment> <CubeP
    rocessFactory::generateProcessClass>
    &#27969;&#31243; "TryDB" (&#20462;&#35746; "1.0") &#32534;&#35793;&#25104;&#21151;&#12290;
    <2006-01-10 16:03:05,765> <INFO> <default.collaxa.cube.engine.deployment> &#27969;&#31243; "
    TryDB" (&#20462;&#35746;&#26631;&#35760; "1.0") &#24050;&#25104;&#21151;&#21152;&#36733;&#12290;
    06/01/10 16:03:34 Tutalii: E:\OraBPELPM\integration\orabpel\lib\orabpel.jar arch
    ive
    <2006-01-10 16:03:34,500> <INFO> <default.collaxa.cube.ws> <AdapterFramework::Ou
    tbound> file:/E:/OraBPELPM/integration/orabpel/domains/default/tmp/.bpel_TryDB_1
    .0.jar/DoSelect.wsdl [ DoSelect_ptt::DoSelectSelect(DoSelectSelect_inparameters,
    AirlineTableCollection) ] - Using JCA Connection Pool - max size = <unbounded>
    <2006-01-10 16:03:35,093> <ERROR> <default.collaxa.cube.ws> <Database Adapter::O
    utbound> <oracle.tip.adapter.db.DBManagedConnectionFactory acquireClientSession>
    unable to build the TopLink Session
    <2006-01-10 16:03:35,125> <ERROR> <default.collaxa.cube.ws> <Database Adapter::O
    utbound> <oracle.tip.adapter.db.DBInteraction executeOutboundRead> unable to exe
    cute the NamedQuery: TryDB.AirlineTable.DoSelectSelect
    <2006-01-10 16:03:35,125> <ERROR> <default.collaxa.cube.ws> <AdapterFramework::O
    utbound> file:/E:/OraBPELPM/integration/orabpel/domains/default/tmp/.bpel_TryDB_
    1.0.jar/DoSelect.wsdl [ DoSelect_ptt::DoSelectSelect(DoSelectSelect_inparameters
    ,AirlineTableCollection) ] - Could not invoke operation 'DoSelectSelect' against
    the 'Database Adapter' due to:
    ORABPEL-11622
    &#26080;&#27861;&#21019;&#24314;/&#35775;&#38382; TopLink &#20250;&#35805;.
    &#27492;&#20250;&#35805;&#29992;&#20110;&#36830;&#25509;&#21040;&#25968;&#25454;&#23384;&#20648;&#12290;.
    &#26377;&#20851;&#29305;&#23450;&#24322;&#24120;&#38169;&#35823;, &#35831;&#21442;&#38405;&#26681;&#24322;&#24120;&#38169;&#35823;&#12290;&#24744;&#21487;&#33021;&#38656;&#35201;&#22312; j2ee/home/application-deploymen
    ts/default/DbAdapter/oc4j-ra.xml &#20013;&#37197;&#32622;&#36830;&#25509;&#35774;&#32622;&#24182;&#37325;&#26032;&#21551;&#21160;&#26381;&#21153;&#22120;&#12290;&#30001; $J2EE_HOME/a
    pplication-deployments/default/DbAdapter/oc4j-ra.xml &#23548;&#33268;&#12290;
    <2006-01-10 16:03:35,125> <INFO> <default.collaxa.cube.ws> <AdapterFramework::Ou
    tbound> Change logging level for Logger 'default.collaxa.cube.ws' to DEBUG to se
    e full error stack
    <2006-01-10 16:03:35,125> <ERROR> <default.collaxa.cube.ws> <AdapterFramework::O
    utbound> file:/E:/OraBPELPM/integration/orabpel/domains/default/tmp/.bpel_TryDB_
    1.0.jar/DoSelect.wsdl [ DoSelect_ptt::DoSelectSelect(DoSelectSelect_inparameters
    ,AirlineTableCollection) ] - Rolling back JCA LocalTransaction
    And in the Audit part of the BPEL Console, I got the following "details"
    <remoteFault xmlns="http://schemas.oracle.com/bpel/extension">
    <part name="code">
    <code>4003</code>
    </part>
    <part name="summary">
    <summary>file:/E:/OraBPELPM/integration/orabpel/domains/default/tmp/.bpel_TryDB_1.0.jar/DoSelect.wsdl [
    DoSelect_ptt::DoSelectSelect(DoSelectSelect_inparameters,AirlineTableCollection) ] - WSIF JCA Execute of operation
    'DoSelectSelect' failed due to: ????/?? TopLink ??. ?????????????. ; nested exception is: ORABPEL-11622 ????/??
    TopLink ??. ?????????????. ????????, ??????????????? j2ee/home/application-deployments/default/DbAdapter/oc4j-ra.xml
    ????????????????? $J2EE_HOME/application-deployments/default/DbAdapter/oc4j-ra.xml ???</summary>
    </part>
    <part name="detail">
    <detail>??????: ????????? [com.microsoft.jdbc.sqlserver.SQLServerDriver]?</detail>
    </part>
    </remoteFault>
    My oc4j-ra.xml has the following content (SQLServerConnection is the name of the connection of SQL Server database):
    <connector-factory location="eis/DB/SQLServerConnection" connector-name="Database Adapter">
         <config-property name="driverClassName" value="com.microsoft.jdbc.sqlserver.SQLServerDriver"/>
         <config-property name="connectionString" value="jdbc:microsoft:sqlserver://localhost:1433;SelectMethod=cursor;databasename=lxbpel"/>
         <config-property name="userName" value="bpel"/>
         <config-property name="password" value="bpel"/>
         <config-property name="minConnections" value="5"/>
         <config-property name="maxConnections" value="5"/>
         <config-property name="minReadConnections" value="1"/>
         <config-property name="maxReadConnections" value="1"/>
         <config-property name="usesExternalConnectionPooling" value="false"/>
         <config-property name="dataSourceName" value=""/>
         <config-property name="usesExternalTransactionController" value="false"/>
         <config-property name="platformClassName" value="oracle.toplink.internal.databaseaccess.SQLServerPlatform"/>
         <config-property name="usesNativeSequencing" value="true"/>
         <config-property name="sequencePreallocationSize" value="50"/>
         <config-property name="tableQualifier" value=""/>
    </connector-factory>
    I think this configuration in this oc4j-ra.xml is fine
    So please help me again. I owe you so much.
    Thank you!

  • SQL Server 2000 auditing on DML changes on user tables to user databases

    Please let me know if you know if there is any procedure or steps to determine DML changes on user tables in database.

    Hello,
    You can use triggers as shown in the following article:
    http://sqlserver2000.databases.aspfaq.com/how-do-i-audit-changes-to-sql-server-data.html
    You may also consider third party tools that may still support SQL Server 2000. The following tool supported SQL Server 2000 a few years
    ago, not sure about today:
    http://www.apexsql.com/sql_tools_comply.aspx
    Server side traces may be another option:
    http://msdn.microsoft.com/en-us/library/cc293613.aspx
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • How to migrate sql server 2000 user defined function returns table

    Hi,
    How do I capture the SQL Server 200 user defined function that returns table? Is this supported in the current version of Oracle Migration Workbench? I am using the latest version - Release 9.2.0.1.0 with SQL SERVER 2000 plug-in.
    I was able to capture the SQL Server 2000 user defined function that returns string and smalldatetime but not the functions return table during the migrate data source stage.
    Thanks in Advance,
    Susan

    Susan,
    This is not currently supported. The next release of the Oracle Migration Workbench (due very soon), will do a better job of catching this mad reporting an error. We are looking into a suitable mapping and have created bug # 2355073 - TABLE DEFINITIONS NOT ACCEPTED FOR TABLE FUNCTIONS to track this issue.
    Once possible solution we are looking into is using the object type to emulate. Here is an example from the bug:
    Original table
    SQL> create table tabela (a number, b number, c number, d number);
    SQL> insert some values...
    SQL> select * from tabela;
    A B C D
    1 1 1 1
    2 2 2 2
    3 3 3 3
    4 4 4 4
    SQL Server 2000 code
    CREATE FUNCTION FUNCRETORNATABELA()
    RETURNS TABLE
    AS
    RETURN SELECT A,B,C,D FROM TABELA
    SELECT A,B,C,D
    FROM FUNCRETORNATABELA()
    ORDER BY A
    Oracle code (workaround)
    SQL> create or replace type MyObjType as object (
    2 a number, b number, c number, d number);
    3 /
    Type created.
    SQL> create or replace type MyTabType as table of MyObjType;
    2 /
    Type created.
    SQL> create or replace function teste return Mytabtype pipelined as
    2 aa MyObjType := MyObjType(null, null, null, null);
    3 cursor c1 is select a,b,c,d from tabela;
    4 begin
    5 open c1;
    6 loop
    7 fetch c1 into aa.a, aa.b, aa.c, aa.d;
    8 exit when c1%NOTFOUND;
    9 pipe row (aa);
    10 end loop;
    11 close c1;
    12 return;
    13 end;
    14 /
    Function created.
    SQL> select * from table(teste);
    A B C D
    1 1 1 1
    2 2 2 2
    3 3 3 3
    4 4 4 4
    SQL> select a, c from table(teste) order by c desc;
    A C
    4 4
    3 3
    2 2
    1 1
    Donal

  • How to transfer database tables from sql server 2000 to oracle 10g

    Hi,
    I have a database and tables in sql server 2000. I have to transfer those data to Oracle 10g. I have installed Oracle warehouse Builder ETL Tool. Using this how can i transfer data. Any help is vary helpful for me.
    Thanks in advance.

    you have to do it using ODBC HS.
    1. Configure ODBC connection through gateway.
    2. Create a initxxx.ora file with HS config.
    restart gateway listener services
    3. on target o/s add entries to your tnsnames.ora
    4. On your target o/s create a db link
    restart listener on target
    cheeck this out.Non-Oracle connection through HS issue
    Edited by: Darthvader-647181 on Jan 29, 2009 2:02 AM

  • SQL Server 2000 auditing/tracking DML changes on specific tables.

    Hello,
    We would like to audit/track all DML activities on couple of tables which reside on SQL Server 2000. Triggers are an option we think but thought that would impact performance because of activity on those tables. Could someone please suggest any other best
    options that are possible with SQL Server 2000 to capture these changes.
    Thanks,

    Hello,
    You may consider third party tools that may still support SQL Server 2000. The following tool supported SQL Server 2000 a few years
    ago, not sure about today:
    http://www.apexsql.com/sql_tools_comply.aspx
    Server side traces may be another option:
    http://msdn.microsoft.com/en-us/library/cc293613.aspx
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • How can I export image column from SQL Server 2000

    Hi everybody,could someone tell me how can I export an entire column( pictures type) to a folder on disk?I've tried the textcopy.exe under the SQL installation's binn folder,it can only export one picture a time,I'm trying to find an automated way to export
    the whole colum's images to a folder,I'm using SQL Server 2000.

    Vishal,thanks for the replay,I've tried the BCP method but it seems does not work on my Sql Server 2000,also the SSIS package method is demonstrated with Sql Server 2008 R2 and my machine does not have the visual application to try it.In the BCP method,I
    got prompt  indicating me that I wrote something wrong in the grammer,and I'm pretty sure that maybe I made something wrong in the below part,the grammer makes me confused
    INSERT
    INTO @sqlStatements
    SELECT 'BCP "SELECT Photograph_Data FROM [ALBSCH_Trial].[dbo].[Photograph] WHERE Photograph_ID = '''
    + CAST(Photograph_ID AS VARCHAR(500)) + '''" queryout ' + @OutputFilePath
    + CAST(Photograph_ID AS VARCHAR(500)) + '.jpg -S localhost\SQLEXPRESS2008 -T -f C:\SQLTest\Images.fmt'
    FROM dbo.Photograph

  • Replication of table from Oracle 10g to sql server 2000

    Could i replicate table from Oracle 10g to sql server online. we have tables with same configuration and if any change happen in oracle 10g or sql server in that table we need to replicate that change to other database.
    What is the solution for this two way replication between sql server and Oracle 10g

    But the tutorial is saying that i will have to install Oracle database on the server already having sql server, is it client or whole database, if it is then it will acquire lot of resource.
    I want to find out that for Heterogenous Service ODBC, we need third party software for ODBC Driver of SQL SERVER for Linux and secondly if we use Transparent Gateway then what are the steps for its configuration.
    I could not find steps of configuration of Transoparent gateway, when i am trying to install Transparent gateway from Universal installer, it is not there. where do i find it , Do i need to purchase it too.

  • Problem of Teststand3.1 database and microsoft SQL Server 2000 personal edition

    I have a problem when using teststand database function with Microsoft sql server 2000. the error(seen in attached screenshot3.jpg) is:
    "An error occurred calling 'LogResults' in 'ITSDBLog' of 'DBLog 1.0 Type Library'
    An error occurred executing a statement.
    Schema: Generic Recordset (NI).
    Statement: UUT_RESULT.
    [Microsoft][ODBC SQL Server Driver][SQL Server]unable to insert NULL value to column "ID", table "test.dbo.UUT_RESULT";This column is not alowed to be blank. INSERT Failed. Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.
    [Microsoft][ODBC SQL Server Driver][SQL Server]terminated.
    Source: TSDBLog"
     Here I listed my proceess.
    1, Configure in SQL Sever, please see attached screenshot0.jpg
       a, Open SQL
       b, build a new database with the name of test
       c, import the data from "C:\Program Files\National Instruments\TestStand 3.1\Components\NI\Models\TestStandModels\Database\TestStand Results.mdb"
    2, Configure Microsoft SQL sever: please see attached screenshot1.jpg
       a, Open windows Control Panel and select "Data Sources (ODBC). Under system DSN tab, add a SQL server data source
    3, Configure teststand database option, see attached screenshot2.jpg
       a, configure logging option, enable
       b, configure datalink
       c, select schemas of "Generic recordset (NI)
       d, No change on the tabs of "statements" and "Columns/Parameters"
    4, run an seqence file with the proess model of SequentialModel.Seq.
    Attachments:
    Screenshot.zip ‏425 KB

    Thanks Scott,
      The database function is OK now after I changed imported tables in SQL Sever.
      Actually, I once tried anothor method that you refered by using the scripts
    located at: <TestStand>\Components\NI\Models\TestStandModels\Database\SQL Server Create Generic Recordset Result Tables.sql. Attached is the error screenshots, please help me on this.
    Thanks
    Jacky
    Attachments:
    Error.jpg ‏59 KB

  • How to load decimal values into a file using bcp in SQL Server 2000?

    Hi everyone,
    I'm trying to load data from a database table to a text file using bcp on SQL Server 2000. When I'm loading the decimal values, the values before the decimal are not being loaded into the file. How could I load the values before decimals?
    Here are the DDLs and DMLs of what I'm trying to run:
    CREATE TABLE [dbo].[Product_Sales](
    [Year_of_Sale] [smallint] NOT NULL,
    [Product_Type] [varchar](25) NOT NULL,
    [Product_Group] [varchar](25) NOT NULL,
    [Category_Type] [varchar](25) NOT NULL,
    [Category_Group] [varchar](10) NOT NULL,
    [Product_Count] [bigint] NOT NULL,
    [Product_Amount] [decimal](19, 2) NOT NULL,
    [Category_Count] [bigint] NOT NULL,
    [Category_Amount] [decimal](19, 2) NOT NULL,
    CONSTRAINT [PK_Product_Sales] PRIMARY KEY CLUSTERED
    [Year_of_Sale] ASC,
    [Product_Type] ASC,
    [Product_Group] ASC,
    [Category_Type] ASC,
    [Category_Group] ASC
    ) ON [PRIMARY]
    ) ON [PRIMARY]
    INSERT INTO [Yearly_Sales].[dbo].[Product_Sales]
    VALUES(2010, 'Online', 'Web', 'Cameras', 'Electronics', 547, 0.00, 0, 0.00)
    EXEC [master].[dbo].[xp_cmdshell] 'bcp "SELECT * FROM [Yearly_Sales].[dbo].[Product_Sales]" queryout D:\Yearly_Sales\Product_Sales.dat -c -T -S'
    And the output I see in the file is:
    2010 Online Web Cameras Electronics 547 .00 0 .00
    The values before decimals are being truncated.
    Thanks,
    Bangaaram
    Known is a DROP, Unknown is an OCEAN.

    You can modify the decimal column(s) in the table to varchar type before export. But it does not look good.
    alter table [dbo].[Product_Sales]
    Alter column [Product_Amount] varchar(20)
    alter table [dbo].[Product_Sales]
    Alter column [Category_Amount] varchar(20)
    Does that make any sense?
    Known is a DROP, Unknown is an OCEAN.
    Basically you modify the decimal column to a varchar type before you run the bcp command for export. You can modify your source table or you can modify them on the fly. It is just a workaround.
    Modifying the source wouldn't be a good idea. Never do that if you can't get your desired output.
    Known is a DROP, Unknown is an OCEAN.

  • Reg. Migrating data from SQL Server 2000 to Oracle

    Hi All,
    I need to migrate a same data from SQL Server 2000 to Oracle 9i.In sql server Export option is there, but the problem is some 30 tables have More than one LONG datatype column in a table. That's why oracle not allow to import.
    Could you guys find any tool for the same.
    Please do the needful.
    Thanks & Regards,
    Prathap

    hi dermot,
    it's very urgent now. Can you please give any solution for this.
    and also i tried the SQL developer tool. But i got an below error,
    Error starting at line 2 in command:
    CREATE USER dbo_testdatalatest IDENTIFIED BY dbo_testdatalatest DEFAULT TABLESPACE USERS TEMPORARY TABLESPACE TEMP
    Error at Command Line:2 Column:45
    Error report:
    SQL Error: ORA-01031: insufficient privileges
    01031. 00000 - "insufficient privileges"
    *Cause:    An attempt was made to change the current username or password
    without the appropriate privilege. This error also occurs if
    attempting to install a database without the necessary operating
    system privileges.
    When Trusted Oracle is configure in DBMS MAC, this error may occur
    if the user was granted the necessary privilege at a higher label
    than the current login.
    *Action:   Ask the database administrator to perform the operation or grant
    the required privileges.
    For Trusted Oracle users getting this error although granted the
    the appropriate privilege at a higher label, ask the database
    administrator to regrant the privilege at the appropriate label.
    Error starting at line 3 in command:
    GRANT CREATE SESSION, RESOURCE, CREATE VIEW TO dbo_testdatalatest
    Error report:
    SQL Error: ORA-01031: insufficient privileges
    01031. 00000 - "insufficient privileges"
    *Cause:    An attempt was made to change the current username or password
    without the appropriate privilege. This error also occurs if
    attempting to install a database without the necessary operating
    system privileges.
    When Trusted Oracle is configure in DBMS MAC, this error may occur
    if the user was granted the necessary privilege at a higher label
    than the current login.
    *Action:   Ask the database administrator to perform the operation or grant
    the required privileges.
    For Trusted Oracle users getting this error although granted the
    the appropriate privilege at a higher label, ask the database
    administrator to regrant the privilege at the appropriate label.
    Error starting at line 4 in command:
    CREATE USER epm_testdatalatest IDENTIFIED BY epm_testdatalatest DEFAULT TABLESPACE USERS TEMPORARY TABLESPACE TEMP
    Error at Command Line:4 Column:45
    Error report:
    SQL Error: ORA-01031: insufficient privileges
    01031. 00000 - "insufficient privileges"
    *Cause:    An attempt was made to change the current username or password
    without the appropriate privilege. This error also occurs if
    attempting to install a database without the necessary operating
    system privileges.
    When Trusted Oracle is configure in DBMS MAC, this error may occur
    if the user was granted the necessary privilege at a higher label
    than the current login.
    *Action:   Ask the database administrator to perform the operation or grant
    the required privileges.
    For Trusted Oracle users getting this error although granted the
    the appropriate privilege at a higher label, ask the database
    administrator to regrant the privilege at the appropriate label.
    Error starting at line 5 in command:
    GRANT CREATE SESSION, RESOURCE, CREATE VIEW TO epm_testdatalatest
    Error report:
    SQL Error: ORA-01031: insufficient privileges
    01031. 00000 - "insufficient privileges"
    *Cause:    An attempt was made to change the current username or password
    without the appropriate privilege. This error also occurs if
    attempting to install a database without the necessary operating
    system privileges.
    When Trusted Oracle is configure in DBMS MAC, this error may occur
    if the user was granted the necessary privilege at a higher label
    than the current login.
    *Action:   Ask the database administrator to perform the operation or grant
    the required privileges.
    For Trusted Oracle users getting this error although granted the
    the appropriate privilege at a higher label, ask the database
    administrator to regrant the privilege at the appropriate label.
    Error starting at line 6 in command:
    CREATE USER lportal_testdatalatest IDENTIFIED BY lportal_testdatalatest DEFAULT TABLESPACE USERS TEMPORARY TABLESPACE TEMP
    Error at Command Line:6 Column:49
    Error report:
    SQL Error: ORA-01031: insufficient privileges
    01031. 00000 - "insufficient privileges"
    *Cause:    An attempt was made to change the current username or password
    without the appropriate privilege. This error also occurs if
    attempting to install a database without the necessary operating
    system privileges.
    When Trusted Oracle is configure in DBMS MAC, this error may occur
    if the user was granted the necessary privilege at a higher label
    than the current login.
    *Action:   Ask the database administrator to perform the operation or grant
    the required privileges.
    For Trusted Oracle users getting this error although granted the
    the appropriate privilege at a higher label, ask the database
    administrator to regrant the privilege at the appropriate label.
    Error starting at line 7 in command:
    GRANT CREATE SESSION, RESOURCE, CREATE VIEW TO lportal_testdatalatest
    Error report:
    SQL Error: ORA-01031: insufficient privileges
    01031. 00000 - "insufficient privileges"
    *Cause:    An attempt was made to change the current username or password
    without the appropriate privilege. This error also occurs if
    attempting to install a database without the necessary operating
    system privileges.
    When Trusted Oracle is configure in DBMS MAC, this error may occur
    if the user was granted the necessary privilege at a higher label
    than the current login.
    *Action:   Ask the database administrator to perform the operation or grant
    the required privileges.
    For Trusted Oracle users getting this error although granted the
    the appropriate privilege at a higher label, ask the database
    administrator to regrant the privilege at the appropriate label.
    Error starting at line 8 in command:
    connect dbo_testdatalatest/dbo_testdatalatest;
    Error report:
    Connection Failed
    Commit
    Regards,
    Prathap.R

  • Creating Database link from Oracle9i to SQL server 2000

    Pls how do I create connectivity from Oracle9i database to query a table in an SQL server 2000 database.
    Pls I need the necessary steps to take.
    Thanx

    There are 2 solutions that you can use:
    1) Transparent Gateway for SQL Server
    2) Generic Connectivity
    Generic Connectivity is free with the database but has less features than the Gateway. For Generic Connectivity you will need to obtain an ODBC driver.
    The steps for using the gateway are available in the gateway manual and the steps for using Generic Connectivity is available in Chap 7 of the Heterogeneous Connectivity Administrator's Guide.

Maybe you are looking for

  • Depriciation key and useful life periods in asset master should in display mode only

    Hi all At the time of creation asset master AS01 we are given the Asset class, company code and similar of asset (1) then we click enter button we will get Create asset: master data screen here in general tab we enter the description and in time depe

  • Restart not working on MacBook Pro?

    - screen goes grey with a circular timer and nothing happens, it stays like this until I hold the start key - the mac shuts down and then I press it again to turn on...? - I need to do a proper restart.... Why won't it do it?

  • Open new browser window  and session

    My application A is launched from other application B. User first login to B, B has a link to A, when user clicks on link to A I open a new browser with the url for A , A creates a new session etc.surprisingly when user logs out in A session in B als

  • MAPVIEWER-00011: Error creating a map data source

    Getting the above error when trying to create a data source connection. Any ideas? I am able to create the JDBC data source on weblogic console but not on Mapviewer console.. thanks

  • Server question

    I have a developmentment environment that is like this: Windows 2008R2 and IIS7.5 w/ColdFusion9 There are about 20 sites that I work with on this server. c:\inetpub\wwwroot\cfide c:\inetpub\wwwroot\site1 c:\inetpub\wwwroot\site2 c:\inetpub\wwwroot\si