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.

Similar Messages

  • Connection problem to SQL Server 2000

    I have a local installation of MSSQL 2000, that doesn't seem to use any port as a listener. when checking the log I can see that even though I said it should use a TCP/IP connection, it says it uses a shared memory (I guess the reason is that the installation I did is not for a server but only for running on my machine).
    How can I define through BPEL the connection to this kind of MSSQL? can I define a connection that will run on the named pipes of the SQL server?
    Thanks in advance.

    Hi Ophir,
    I tried this exercise of connecting to SQL Server myself via jdbc and I wrote a new section for the developer's guide based on it. It was not completely painless. For your specific question the SQL Server Express install sets up connectivity by either 'shared memory' or 'named pipes' by default, but you can easily add a TCP/IP listener (for me via the SQL Server Configuration Manager), which is mandatory for jdbc access. Please see the section 'TCP Port' below.
    Not sure if you have it, I am cutting and pasting from the 10.1.2.0.2 DBAdapter guide:
    (Oracle® Application Server Adapters for Files, FTP, Databases, and Enterprise Messaging User's Guide
    10g Release 2 (10.1.2))
    Using a Microsoft SQL Server Database
    When using a Microsoft SQL Server database, follow the database connection steps in Chapter4, "Design Time" and use the following information:
    MS JDBC Driver
    URL: jdbc:microsoft:sqlserver://localhost\NAME:1433;SelectMethod=cursor;databasename=???
    Driver Class: com.microsoft.jdbc.sqlserver.SQLServerDriver
    Driver Jar: .\SQLServer2000\msbase.jar, msutil.jar, mssqlserver.jar
    DataDirect Driver
    URL: jdbc:oracle:sqlserver://localhost
    Driver Class: com.oracle.ias.jdbc.sqlserver.SQLServerDriver
    Driver Jar: .\DataDirect\YMbase.jar, YMoc4j.jar, YMutil.jar, YMsqlserver.jar
    Note the following when connecting to a SQL Server database:
    User name and password
    o
    SQL Server 2005 installs with Windows authentication as the default. Therefore, you do not log in with a user name and password; rather, your Windows user account either has privilege or does not. JDBC requires you to provide a user name and password.
    According to support.microsoft.com, "Microsoft SQL Server 2000 driver for JDBC does not support connecting by using Windows NT authentication." See
    http://support.microsoft.com/default.aspx?scid=kb;en-us;313100
    However, the DataDirect driver specification states that it does.
    If you use your Windows user name and password, you may see something like the following:
    [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Login failed for user
    'DOMAIN\USER'. The user is not associated with a trusted SQL Server
    connection.[Microsoft][SQLServer 2000 Driver for JDBC]
    An error occured while attempting to log onto the database.
    You must select mixed mode authentication on a clean installation.
    o
    On a Microsoft SQL Server 2000 Express Edition installation, the system username is su and the password is whatever you provide.
    Connect string
    From the sqlcmd login, you can infer your connect string, as in the following examples:
    Example 1:
    sqlcmd
    1>
    jdbc:microsoft:sqlserver://localhost:1433
    Example 2:
    sqlcmd -S user.mycompany.com\SQLExpress
    1>
    jdbc:microsoft:sqlserver://user.mycompany.com\SQLExpress:1433
    Example 3:
    sqlcmd -S user.mycompany.com\SQLExpress -d master
    1>
    jdbc:microsoft:sqlserver://user.mycompany.com\SQLExpress:1433;databasename=
    master
    A full URL is as follows:
    jdbc:microsoft:sqlserver://serverName[\instanceName]:tcpPort[;SelectMethod=cursor][;databasename=databaseName]
    Database name
    If you must explicitly supply the database name, but do not know it, go to
    C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data
    If you see a file named master.mdf, then one of the database names is master.
    TCP port
    Make sure that SQL Server Browser is running and that your SQL Server service has TCP/IP enabled and is listening on static port 1433. Disable dynamic ports. In SQL Native Client Configuration/Client Protocols, make sure that TCP/IP is enabled and that the default port is 1433.
    JDBC drivers
    You must download the JDBC drivers separately. From www.microsoft.com, click Downloads and search on jdbc. You can also try using the DataDirect driver.
    Thanks
    Steve

  • Creating a connection pool using SQL Server 2000, Sun ONE Application Serve

    Has any one succesfully configured SQL Server 2000 to work with Sun ONE Application Server 7 on Windows 2000 server service pack 4? I am embarking on a new J2EE project and I need to configure it as soon as possible.
    The problem I am having is that, when I ping the data souce name, there is a connection error.
    I have set the data source name and other details as follows:
    Under JDBC, I have set the parameters for the connection pool as follows:
    Data Source Name:      com.microsoft.jdbc.sqlserver.SQLServerDriver
    Database Name:          jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=Test
    User:               test
    Password:          test
    In the JVM settings page, I have set the prefix class path as follows for the location of the Microsoft JDBC
    drivers that I downloaded as follows:
    c:\microsoft\drivers/lib/msbase.jar
    c:\microsoft\drivers/lib/msutil.jar
    c:\microsoft\drivers/lib/mssqlserver.jar
    Under JVM Options, there is a strange setting which I don't understand: perhaps this is the cause of the
    connction error?
    -Djdbc.drivers=com.pointbase.jdbc.jdbcUniversalDriver
    Please help????

    I'm in a similar boat...
    Trying to setup AS7 JDBC and followed the instructions on the link you provided and get the following exception. I kept the case the same, thinking 'setpassword" was incorrect, so I tried changing the property to "Password", but get the same exception but it points to "setPassword" instead.
    SEVERE: RAR5041:Cannot get jdbc connection
    com.sun.enterprise.repository.J2EEResourceException
    java.lang.NoSuchMethodException: setpassword
    at com.sun.enterprise.repository.JdbcConnectionPool.createDataSource(JdbcConnectionPool.java:243)
    at com.sun.enterprise.resource.JdbcUrlAllocator.createResource(JdbcUrlAllocator.java:80)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.createSteadyResources(IASNonSharedResourcePool.java:856)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.initPool(IASNonSharedResourcePool.java:416)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.internalGetResource(IASNonSharedResourcePool.java:625)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.getResource(IASNonSharedResourcePool.java:520)
    at com.sun.enterprise.resource.PoolManagerImpl.getResourceFromPool(PoolManagerImpl.java:263)
    at com.sun.enterprise.resource.JdbcXAConnection.<init>(JdbcXAConnection.java:74)
    at com.sun.enterprise.resource.Jdbc10XaAllocator.createResource(Jdbc10XaAllocator.java:94)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.createSteadyResources(IASNonSharedResourcePool.java:856)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.initPool(IASNonSharedResourcePool.java:416)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.internalGetResource(IASNonSharedResourcePool.java:625)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.getResource(IASNonSharedResourcePool.java:520)
    at com.sun.enterprise.resource.PoolManagerImpl.getResourceFromPool(PoolManagerImpl.java:263)
    at com.sun.enterprise.resource.PoolManagerImpl.getResource(PoolManagerImpl.java:170)
    at com.sun.enterprise.resource.JdbcDataSource.internalGetConnection(JdbcDataSource.java:241)
    at com.sun.enterprise.resource.JdbcDataSource.getConnection(JdbcDataSource.java:98)
    at com.rvi.database.jdbcConnection.getConnection(jdbcConnection.java:93)
    at com.webapp.database.ArticlesDAO.selectByYear(ArticlesDAO.java:102)
    at com.webapp.actions.ArticleAction.list(ArticleAction.java:96)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
    at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:216)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
    at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
    at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
    at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)

  • How can i connect to a SQL Server 2000 database usgin JSP?

    I need (URGENT) to connect to SQL Server 2000 databse using JSP. I do not know how to program using JSP, so if anyone has any code snippet please let me see it. What i need is to give my site some login/password security.
    Anyone?
    Thx.

    just create an ODBC of your database from control pannel -> administrative tools -> data sources (ODBC) ,double click it .....
    go to the tab SYstem DSN , click on ADD button. select the driver for your connection. it will be the last one in the list "SQL Server".
    click Next then give ur DSN name there, description and Server Name , on next give your username and password of SQL server. when it will be connected to the server celect your database from there and hence there will be an ODBC bridge same as in case of MS Access.
    code for connecting to ODBC is
    // DSN-NAME same as in System DSN.
    // username and password are of your databse
    try
              url = "jdbc:odbc:DSN-NAME";
              Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver" );
              connect = DriverManager.getConnection( url,"username","password" );
              catch ( ClassNotFoundException cnfex ) {
                        setErrorMsg( cnfex.getMessage() );
              catch ( SQLException sqlex ) {
                        setErrorMsg( sqlex.getMessage() );
              catch ( Exception ex ) {
                        setErrorMsg( ex.getMessage() );
    Now you are connected to the SQL Server ..... use connect object for further processing .........

  • Connecting to MS SQL server 2000 with SSMS 2008

    Hello
    I have been trying to solve this problem for months now and searched lots of threads, but no success.
    Our office has sql server 2000 database, which is installed on Windows XP. I am given 'sa' password. On my computer, which is Windows 7, I have SSMS 2008. I am able to connect to mentioned server using Windows ODBC data source and with MS Access.
    The problem is no matter what I tried, I could not connect with SSMS. When I go to "Server Connection" > "Server Name" > > "Network Servers" in SSMS, the needed server is found automatically, but I still fail to connect.
    I know that SSMS 2008 should be able to connect to server2000 (or maybe I am wrong?).
    Please help.

    TITLE: Connect to Server
    Cannot connect to SOFODB.
    ADDITIONAL INFORMATION:
    Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding. (Microsoft SQL Server, Error: -2)
    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=-2&LinkId=20476
    BUTTONS:
    OK
    I am not sure but this type of issue can be resolved by increasing time out.Time out sec is 15 by default change it to 60 or 120 and see if you can connect if not please revert.
    When you are connecting using SSMS click on option button...In connection properties page see for connection timeout...change it to 60 or 120 .See if this works
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • Creating a connection to MS SQL Server 2000...

    Hi ,
    Using the :
    1)Oracle SQL Developer 1.1.3 and 1.2.1 ,
    2)MS SQL Server 2000 - both db and agent are running ,
    I cannot create a connection to MS SQL Server (error: "Failure - Network Error IO Exception : Connection refused : connect").
    Both software - and Oracle DB , as well- have been installed on the same server(Win XP) and i have deactivated the firewall , without the desired result....
    Also the server is standalone and does have a static IP Address....
    What can I do ...????
    Thanks....
    Sim

    I have also downloaded and installed the SQL Developer 1.5.0.53.
    When i declare the same settings to SQL SERVER DB - as in the other SQL Developer versions(1.1.3 and 1.2.1)- I get a different error message..:
    "Failure - Cannot connect to SQL Server on localhost" - whereas in the other versions i get[i] "Failure - Network Error IO Exception : Connection refused : connect".
    When i declare another host name (one that does not exist , for example "localhost1") then the error message is :"Failure : Unknown host name localhost1".
    So ,the above tests may show that the error seems to be in the port setting....however , i cannot verify it since the port setting is 1433 - the one i declare in the connection.
    Do you have an idea....????
    I would be grateful if somebody could provide some 'light'.....!!!!
    Sim

  • Connect to MS SQL Server 2000 data warehouse

    Hi,
    I use a MS SQL Server 2000 database for my web application where I use JSP. I suppose to create data warehouse using MS SQL Server's Data Transformation Service. But I don't know it's possible to connect to a MS SQL Server's data warehouse using JSP. So I want to know is it possible to connect to data warehouse using JSP and if it is how to do it? Thank you.

    You can certainly connect to M$ SQL Server using the JDBC driver:
    http://www.microsoft.com/downloads/details.aspx?FamilyID=4f8f2f01-1ed7-4c4d-8f7b-3d47969e66ae&displaylang=en
    Connecting to a data warehouse is no different from any relational database. (My understanding is that a data warehouse usually means a star schema implemented in a relational database.) This will connect you.
    If you're not familiar with JDBC, you might need the tutorial:
    http://java.sun.com/docs/books/tutorial/jdbc/

  • Connecting to an SQL Server 2000 Database

    Hi!
    I am trying to make a connection to a database created from SQL Server 2000. However, I don't know how to do it. Can anyone please help? How would the Java code different from the code we use to connect to a database created from MS Access?
    jt

    Hi Hartmut,
    I have a program which inserts a date into a table.
    I use a dsn configured to a database (as you've
    suggested). In my case, it's MS Access:
    private boolean writeToMSAccess(Hashtable ht) {
        // Build sql statement;
        // we use of # around the date, for MS Access.
        String sql =
            "INSERT INTO Broadcast (Author, BroadcastTime, Title, Length, BroadcastGroup,Link) " +
            "VALUES ('" + (String)ht.get("author") + "', " +
            "#" + date + "#, " +
            .... + "')";
            // Connect to the database, execute the sql.
            // dsn is passed into the program
            Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
            String url = "jdbc:odbc:" + dsn;
            Connection conn = DriverManager.getConnection(url, login, password);
            Statement  stmt = conn.createStatement();
            stmt.executeUpdate(sql);
            stmt.close();
            conn.close();
            return true;
        }Now if I point my DSN to SQL Server for example,
    it won't work b/c of the # marks. I'd have to change:
        String sql =
            "INSERT INTO Broadcast (Author, BroadcastTime, Title, Length, BroadcastGroup,Link) " +
            "VALUES ('" + (String)ht.get("author") + "', " +
            "#" + date + "#, " +
            .... + "')";to:
        String sql =
            "INSERT INTO Broadcast (Author, BroadcastTime, Title, Length, BroadcastGroup,Link) " +
            "VALUES ('" + (String)ht.get("author") + "', " +
            "'" + date + "', " +
            .... + "')";My question is, is there a way to detect which database
    my dsn points to, so that I can determine at run-time
    whether or not to use the # marks?
    Or is there another way around this problem?
    Any help is greatly appreciated!
    -alex

  • How to connect to Ms SQL Server 2000 with forms9i......

    hi,
    how do i connect my forms9i to the database in the Ms SQL Server 2000 on the same machine ?
    please give a code example also
    thanks
    regards
    monty

    See
    http://www.oracle.com/technology/products/forms/pdf/275201.pdf
    Also search the forum and you will find discussions on this topic.

  • Connection with MS SQL Server 2000

    Our Application server is in UNIX and we need to select data from a MS SQL Server 2000 table and this non SAP server is in Windows OS. Is it possible to establish a connection from  our application server which is in UNIX to Non SAP server MS SQL Server 2000 which OS is Windows ? Again, how to call a MS SQL stored procedure from Oracle ?
    Please help me.

    Hi there;
    I am a starter with Java and need your help with this little program.
    Create a console application project named Payroll that stores an employee's hourly pay rate and hours worked. Compute gross pay (hours times rate), withholding tax, and net pay (gross pay minus withholding tax). Withholding tax is computed as a percentage of gross pay based on the following:
    Gross Pay: Withholding percentage :
    0 to 300.00 ::::: :::::: Withholding percentage 10%
    300.00 to 400.00:::::: Withholding percentage 12 %
    400.01 to 500.00 :::::: Withholding percentage 15 %
    500.01 and over ::::::: Withholding percentage 2 0 %
    Thank you
    Alex

  • Missing SQL Developer functions when connecting to MS SQL Server 2005

    Hi all,
    I've connected SQL Developer to a ms sql server db. Now I can't use the functions from SQL Developer like
    - Drag&Drop tables to the sql-sheet,
    - autocompletition of attributes (Strg+Space).
    Is this function not supported or do I have to change some preferences?
    THX Steve

    Unfortunately most of the advanced functions of SQL Developer are supported only for oracle databases, so on ms sql, or almost anything else you can do little more than browse data.

  • *** URGENT *** Problems Connecting to MS SQL Server 2000

    Hi guys,
    I'm rather new to SQL Server and whenever I try to connect to my tables in SQL Servers through jdbc-odbc bridge and ODBC DSN it's Ok. BUT when I try the Microsoft or Merant driver I get log in problem. The server requires a trusted connection and won't accept my username/password. Please help out of misery. I read through some documentation and it mentioned setting up application roles, but I can't get it working. Those expert on the subject please provide a sample connection url, mine is:
    String url = "jdbc:microsoft:sqlserver://localhost:1433;User=Administrator;Password=****;SendStringParametersAsUnicode=true";The jdbc error is:
    Exception in thread "main" java.sql.SQLException: [Microsoft][SQLServer 2000 Dri
    ver for JDBC][SQLServer]Login failed for user 'Administrator'. Reason: Not assoc
    iated with a trusted SQL Server connection.
    Thanks in advance.

    The problem could be caused by one of two things.
    The first reason could be that the 'Administrator' user is not set up with a SQL Server only password.
    Another possible reason is that SQL Server is not setup to use SQL Server passwords, only Windows NT Authentication.
    Open Enterprise Manager, expand your database and select users. Check the properties of the 'Administrator' user and make sure that it is set with SQL Server password. Also, check the properties of the SQL Server instance - right click on the SQL Server name, select properties and select the security tab. Make sure that SQL Server and Windows NT is selected and not just Windows NT.
    Hope this helps.
    Sudha

  • Error in Connecting to MS SQL Server 2000

    Thanks for your reply.
    My Problem and the Error shown in the command prompt is:
    java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver
    Error Trace in getConnection() : com.microsoft.jdbc.sqlserver.SQLServerDriver
    Error: No active Connection
    Inspite of giving the full classpath of 3 JAR files, msbase,mssqlserver and msutil.jar, this error has occured.
    What can I do in this?

    Please refer
    http://support.microsoft.com/kb/313100

  • Open Connection to SQL Server 2000 Instances

    Dear All:
    I always got following error when connecting to a SQL Server 2000 instance:
    "Can't open a socket on NAMNGO\RNDSQLSVR:1433. Check host and port number and
    make sure the
    security manager allows this connection. You can also try running the SocketApplet
    (java.net.UnknownHostException:
    NAMNGO\RNDSQLSVR)"
    I am using Wel Logic 6.1 and SQL Server 2000. SQL Server 2000 has an instance
    named RNDSQLSVR with default TCP port is 1433.
    Is there anyone hit this problem, please let me know.
    Please check the attached file for sample code.
    Thanks,
    Nam Ngo
    [att1.html]

    Hi Sree,
    Thank you for your help. It worked.
    Nam Ngo
    "Sree Bodapati" <[email protected]> wrote:
    Hi Nam,
    The way you do this is by finding out on what port the instance of SQL
    Server you want to connect is listening on. (Use the server network utility
    that comes with SQL Server 2000 for this). Then just mention the
    server=<machine name/ip> of the server this instance is running on. and
    the
    port as the port that is shown by the server network utility as port=<port
    number>. Microsoft specifies NAMNGO\RNDSQLSVR:1433 as the convention
    for
    ODBC but , this driver is a type 4 driver and it needs only the machine
    name
    and port, it doesnt need any instance name.
    (Each instance of SQL Server 2000 listens at a different port)
    HTH
    sree
    "Nam Ngo" <[email protected]> wrote in message
    news:[email protected]..
    Dear All:
    I always got following error when connecting to a SQL Server 2000instance:
    "Can't open a socket on NAMNGO\RNDSQLSVR:1433. Check host and portnumber
    and
    make sure the
    security manager allows this connection. You can also try running theSocketApplet
    (java.net.UnknownHostException:
    NAMNGO\RNDSQLSVR)"
    I am using Wel Logic 6.1 and SQL Server 2000. SQL Server 2000 has aninstance
    named RNDSQLSVR with default TCP port is 1433.
    Is there anyone hit this problem, please let me know.
    Please check the attached file for sample code.
    Thanks,
    Nam Ngo

  • [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

Maybe you are looking for

  • Create a web service in jdev from an EJBSessionBean

    Hi, can someone tell me how to create a web service from an EJBSessionBean.java in jdev? I do like the EJBSessionBean was a simple java class but the web service doesn't work thanks

  • Dvd quality not up to HD expectations

    hi folks, doing a first HD project here...have a 23 minute timeline project in 1080i using Photo JPEG compression in the timeline. all my source material is 1080i and I have added in some material shot at lower def. Problem is when I export and burn

  • BAPI needed for Material Planning T-code MD20

    Hi, BAPI needed for Material Planning T-code MD20. Thank You.

  • Best Possible match

    Hello All, I got a table called TAC_CODE_MASTER and TAC_CODE is one of its field. TAC_CODE is 8 characters long and it can hold upto 8 charaters If i were to find a data such as 'A2345678' and if this does not exist then I should get the most possibl

  • Fast computer but Illustrator crashing

    Hi, I need some expert advice. I have Adobe Illustrator CC (2014) running but I have a problem that I cant resolve. My Illustrator is very unstable and crashes regularly. Sometimes when saving and sometimes when doing something like a 'select same fi