Error while connecting to SQL Server 2000 using Heteregenous Services 11g

Hope this is the right thread to post on! We have been given the challenge of connecting to and reading data from a SQL Server 2000 database.
Our Infrastructure guys have set up the network access.
The SQL Server DB is set to windows NT Authentication only (N.B. NOT Mixed Mode) as there is an application running against the DB locally that will not run under Mixed Mode.
Our Oracle partner has download and installed the 11g Heteregenous Services. all works fine until the point we try to create the DBLink and then connect to the SQL Server DB when we get:
SQL> CREATE DATABASE LINK infoteam1.sco.infoteam.co.uk CONNECT TO "sco.infoteam.co.uk/infoteam" IDENTIFIED BY "########" USING 'dg4msql';
Database link created.
SQL> select * from "systables"@infoteam1.sco.infoteam.co.uk;
select * from "systables"@infoteam1.sco.infoteam.co.uk
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Oracle][ODBC SQL Server Driver][SQL Server]Login failed for user
'sco.infoteam.co.uk/infoteam'. Reason: Not associated with a trusted SQL Server
connection.[Oracle][ODBC SQL Server Driver]Invalid connection string attribute
ORA-02063: preceding 2 lines from INFOTEAM1.SCO.INFOTEAM.CO.UK
The question is can we (and if so how)?) connect to the SQL Server using an NT Windows Authorised account?
Jeremy

Hi,
Please look at MOS note
ORA-28500: Generic connectivity using ODBC DSN over mapped drive fails [ID 105210.1]
Ora-28500 with Ms Sqlserver - Not associated with a trusted SQL Server connection [ID 333775.1]
Regards,
Edited by: gjilevski1 on Aug 31, 2010 8:23 AM

Similar Messages

  • Error while connecting to SQL SERVER from OWB

    HI All,
    I got the following error while connecting to SQL SERVER from OWB(10gR2).
    1). Created DSN with (GMSCADA)
    2). tnsnames file is updated with the following information
    GMSCADA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.60.29)(PORT = 1433))
    (CONNECT_DATA =
    (SERVICE_NAME = SA)
    3). Tried to connect to SQL SERVER frm OWB
    Username: sa
    password: sa
    host: 172.16.60.29
    port: 1433
    service name: GMSCADA
    schema: sa
    I got the following error, when I click Test Connection:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Unable to retrieve text of NETWORK/NCR message 65535
    ORA-02063: preceding 2 lines from OWB_3095
    Regards,
    Kumar.

    Hi David,
    What is Gateway, How I have to setup, Please let me know.
    I tried according to the Demo, But still I am facing the same problem. Which system IP I have to put in the host details.
    Can u please let me know.
    Regards,
    Kumar.

  • -net.sourceforge.jtds.jdbc.Driver ERROR WHILE CONNECTING TO SQL SERVER

    Hi,
    While making a new connection to Sql Server Express Edition Database, through Oracle Sql Developer i am getting a problem when retrieving the database.The error is "-net.sourceforge.jtds.jdbc.Driver" .I have downloaded the "jTDS - SQL Server and Sybase JDBC driver " from sourceforge website, but i am confused about where to paste it.
    thanks.

    I'm not sure why you are having the error but I am sure of the following:
    1. This forum is not appropriate for SQL*Developer questions.
    2. Or questions about code from SourceForge
    3. Or Microsoft products.
    It seems unlikely this has anything to do with Oracle so I would recommend you find a forum related to the driver if one exists. Otherwise you can try the SQL*Developer forum but I would be there aren't more than a dozen other people on the product trying to do this.

  • Error while connecting to SQL Server

    hello guys ,I am getting a small probs when Itry to connect Sql Server.
    after code is complied, firstly,it can run,but secondly it can't run
    error is:
    Exception in thread "main" java.lang.nullPointerException

    my code is:
    import java.sql.*;
    public class ConnectionBean
    private Connection connection;
    private Statement statement;
    private static final String      
    drive="com.microsoft.jdbc.sqlserver.SQLServerDriver";
    private static final String dbURL="jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=java";
    private static final String login="sa";
    private static final String password="";
    public ConnectionBean()
    try
         Class.forName(drive);
         connection = DriverManager.getConnection(dbURL,login,password);
         statement = connection.createStatement();
    catch (ClassNotFoundException e)
    System.err.println("ConnectionBean: driver unavailable");
    connection = null;
    catch (SQLException e) {}
    public ResultSet executeQuery(String sql) throws SQLException
         return statement.executeQuery(sql);
    protected void finalize()
    try
    connection.close();
    catch (SQLException e) { }
    public static void main(String[] args)
         ConnectionBean bean = new ConnectionBean();
         String sql = "select * from Conferences";
         try
              ResultSet rs= bean.executeQuery(sql);
              while ( rs.next())
                   System.out.println(rs.getString("ID"));
                   System.out.println(rs.getString("city"));
                   System.out.println(rs.getString("airport"));
                   System.out.println(rs.getString("seats"));
         catch (SQLException e)
         finally
         bean.finalize();     
    }

  • How to connect Sql Server 2000 using JDBC ODBC Driver

    How to connect Sql Server 2000 using JDBC ODBC Driver ?
    plz Send Syntax.
    thanks

    In SQL Server 2000 the driver class is com.microsoft.jdbc.sqlserver.SQLServerDriver
    The connection URL for the default SQL Server 2000 database is jdbc:sqlserver://localhost:1433
    Class.forName(
      "com.microsoft.sqlserver.jdbc.
      SQLServerDriver");
    String url =
      "jdbc:sqlserver://localhost:1433";
    Connection conn = DriverManager.
      getConnection(
      url, "sa", "sqlserver");

  • Connection with SQL Server 2000 to SQL Developer 1.2 Migration Workbench

    Hi all,
    I keep getting the following error with setup for SQL Developer 1.2 Migration Workbench connection to SQL Server 2000 database:
    "Status: Failure -Network error IOException: Connection refused:connect"
    I can access the Microsoft SQL Server 2000 database with username
    and password using Enteprise Manager. However for some odd
    reason the Oracle SQL Developer 1.2 cannot connect to it.

    I was having this problem too. I'll mangle this explanation, but Our SQLServer instance was on a local server with some named DNS something. So, to get to the server, we used theservername.outdomain instead of an IP. We could never get it to connect through the named server. We got an SQLServer instance going on a server that we could connect to through a regular IP, and it connected just fine.
    Also, are you using the JTDS driver, or microsofts driver? We have only been able to connect with the JTDS driver. http://jtds.sourceforge.net/

  • Trouble shooting while connecting Ms SQL Server 2008

    hi everyone i ve a trouble shooting while connecting to sql server. my whole sql connection code is here. i m using windows 7 64bit. i ve download jdk for 64bit and download jdbc driver too. in the jdbc driver folder i ve copied sqljdbc.jar file in to C:\Program Files\Java\jre6\lib\ext then i ve copied to C:\Program Files\Java\jdk1.6.0_19\jre\lib\ext then C:\Program Files (x86)\Java\jre6\lib\ext. i m not sure to where to copy. also finally i ve copied sqljdbc_auth.dll file in to C:\Windows\System32. there r two sqljdbc_auth.dll files one is 32bit other one is 64bit i checked to c folder and i see there r two microsoft sql server folders one is under program files one is under programfiles(x86). i just copied sqljdbc_auth.dll 64bit version in to system32 folder. i just found these infos from internet. i m new in java. when i run the program i get an error message which is :
    java.sql.SQLException: No suitable driver found for JDBC:sqlserver://localhost;java_data
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at ClientQuery.<init>(ClientQuery.java:31)
    at TicketSale.<init>(TicketSale.java:68)
    at TicketSale.main(TicketSale.java:409)
    the name of the database i want to connect is java_data which i made in sql server. can anyone tell me where did i made wrong?
      import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.List; import java.util.ArrayList; public class ClientQuery {    // class begin private static final String URL ="JDBC:sqlserver://localhost;java_data"; private static final String USERNAME ="root"; private static final String PASSWORD = " "; private Connection connection = null; private PreparedStatement selectAllClient = null; private PreparedStatement selectClientbyAirline = null; private PreparedStatement insertNewClient = null; // person query constructor begin public ClientQuery (){ try { try { Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver"); } catch (ClassNotFoundException e) { e.printStackTrace(); } connection = DriverManager.getConnection( URL, USERNAME, PASSWORD ); selectAllClient = connection.prepareStatement("SELECT * FROM Ticket"); selectClientbyAirline = connection.prepareStatement("SELECT * FROM Ticket WHERE airline = ?"); insertNewClient = connection.prepareStatement("INSERT INTO Ticket "+ "(name,surname,airline,flight_no,departure_date,departure_city,arrival_city,departure_time,arrival_time,gate,price)" + "VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"); } // end try catch (SQLException sqlException) { sqlException.printStackTrace(); System.exit(1); } // end catch }  // person query constructor end // select all client in database public List <Client> getAllClient() { List<Client> results = null; ResultSet resultSet = null; try { resultSet = selectAllClient.executeQuery(); results = new ArrayList<Client>(); while (resultSet.next()) { results.add(new Client(     resultSet.getString("name"),     resultSet.getString("surname"),     resultSet.getString("airline"),     resultSet.getString("flight_no"),     resultSet.getString("departure_date"),     resultSet.getString("departure_city"),     resultSet.getString("arrival_city"),     resultSet.getString("departure_time"),     resultSet.getString("arrival_time"),     resultSet.getString("gate"),     resultSet.getString("price"))); }  // end while }  // end try catch (SQLException sqlException ) { sqlException.printStackTrace(); }  // end catch finally { try{ resultSet.close(); } // end try catch (SQLException sqlException) { sqlException.printStackTrace(); close(); }  // end catch }  //end finally return results; } // end of get all client method // select Client by Airline public List <Client> getClientbyAirline(String name ) { List<Client> results = null; ResultSet resultSet = null; try {             selectClientbyAirline.setString(1, name);              resultSet = selectClientbyAirline.executeQuery();             results = new ArrayList<Client>();                         while (resultSet.next()) { results.add(new Client(     resultSet.getString("name"),     resultSet.getString("surname"),     resultSet.getString("airline"),     resultSet.getString("flight_no"),     resultSet.getString("departure_date"),     resultSet.getString("departure_city"),     resultSet.getString("arrival_city"),     resultSet.getString("departure_time"),     resultSet.getString("arrival_time"),     resultSet.getString("gate"),     resultSet.getString("price"))); }  // end while     } // end try catch (SQLException sqlException) { sqlException.printStackTrace(); }  // end catch finally { try{ resultSet.close(); } // end try catch (SQLException sqlException) { sqlException.printStackTrace(); close(); }  // end catch }  //end finally return results; }    // end of select by airline method public int addClient(String name, String surname, String airline, String flight_no, String departure_date, String departure_city, String arrival_city, String departure_time, String arrival_time, String gate, String price) { int result = 0; try { insertNewClient.setString(1, name); insertNewClient.setString(2, surname); insertNewClient.setString(3, airline); insertNewClient.setString(4, flight_no); insertNewClient.setString(5, departure_date); insertNewClient.setString(6, departure_city); insertNewClient.setString(7, arrival_city); insertNewClient.setString(8, departure_time); insertNewClient.setString(9, arrival_time); insertNewClient.setString(10, gate); insertNewClient.setString(11, price); result = insertNewClient.executeUpdate(); }  // end try catch (SQLException sqlException) { sqlException.printStackTrace(); close(); }  // end catch return result; } // end of add Client method public void close () { try { connection.close(); }  // end try catch (SQLException sqlException) { sqlException.printStackTrace(); }  // end catch }  // end close method } // class end  

    Your URL string is, apparantly, incorrect. See the driver documentation.

  • Can't connect  to SQL Server 2000 from serlet

    Hi,
    I can connect to SQL Server 2000 from standalone program after set the classpath properly.
    but I Can't connect to SQL Server 2000 from serlet, I am using Tomcat 4.1 and Win2K pro now. Do I need to set something for servlet just like CLASSPATH?
    Any help will be appreciated.
    package usingjsp;
    import java.io.*;
    import java.sql.*;
    import javax.servlet.*;
    public class JDBCServlet extends GenericServlet
    protected Connection conn;
    public void init()
    try
    // Make sure the JdbcOdbcDriver class is loaded
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
    // Try to connect to a database via ODBC
    conn = DriverManager.getConnection(
    "jdbc:microsoft:sqlserver://hu:1433", "sa","");
    catch (Exception exc)
    // If there's an error, use the servlet logging API
    getServletContext().log(
    "Error making JDBC connection: ", exc);
    public void service(ServletRequest request, ServletResponse response)
    throws java.io.IOException
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    out.println("<HTML>");
    out.println("<BODY>");
    out.println("<PRE>");
    out.println("The JDBC connection is:");
    out.println(conn);
    out.println("</PRE>");
    out.println("</BODY>");
    out.println("</HTML>");

    i also have this problem..do u have any solution?

  • Null connection when trying to connect to SQL Server 2000 in Tomcat4.1.29

    Hi All,
    I am still struggling with null connection when trying to connect to sql server 2000 with tomcat using sun.jdbc.odbc.JdbcOdbcDriver
    Here is my server.xml
    <Server port="8005" shutdown="SHUTDOWN" debug="0">
    <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"
    debug="0"/>
    <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
    debug="0"/>
    <GlobalNamingResources>
    <Resource name="UserDatabase" auth="Container"
    type="org.apache.catalina.UserDatabase"
    description="User database that can be updated and saved">
    </Resource>
    <ResourceParams name="UserDatabase">
    <parameter>
    <name>factory</name>
    <value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
    </parameter>
    <parameter>
    <name>pathname</name>
    <value>conf/tomcat-users.xml</value>
    </parameter>
    </ResourceParams>
    <Resource auth="Container" description="Users and Groups
    Database" name="UserDatabase"
    scope="Shareable"
    type="org.apache.catalina.UserDatabase"/>
    <Resource name="jdbc/DefaultDS" scope="Shareable"
    type="javax.sql.DataSource"/>
    <ResourceParams name="UserDatabase">
    <parameter>
    <name>factory</name>
    <value>org.apache.catalina.users.
    MemoryUserDatabaseFactory</value>
    </parameter>
    <parameter>
    <name>pathname</name>
    <value>conf/tomcat-users.xml</value>
    </parameter>
    </ResourceParams>
    <ResourceParams name="jdbc/DefaultDS">
    <parameter>
    <name>validationQuery</name>
    <value></value>
    </parameter>
    <parameter>
    <name>user</name>
    <value>sa</value>
    </parameter>
    <parameter>
    <name>maxWait</name>
    <value>5000</value>
    </parameter>
    <parameter>
    <name>maxActive</name>
    <value>4</value>
    </parameter>
    <parameter>
    <name>password</name>
    <value>sa</value>
    </parameter>
    <parameter>
    <name>url</name>
    <value>jdbc:odbc:JBoss-SQL://localhost:1433;databaseName=Development;selectMethod=cursor;</value>
    </parameter>
    <parameter>
    <name>driverClassName</name>
    <value>sun.jdbc.odbc.JdbcOdbcDriver</value>
    </parameter>
    <parameter>
    <name>maxIdle</name>
    <value>2</value>
    </parameter>
    </ResourceParams>
    </GlobalNamingResources>
    <!-- Define the Tomcat Stand-Alone Service -->
    <Service name="Tomcat-Standalone">
    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
    port="8080" minProcessors="5" maxProcessors="75"
    enableLookups="true" redirectPort="8443"
    acceptCount="100" debug="0" connectionTimeout="20000"
    useURIValidationHack="false" disableUploadTimeout="true" />
    <!-- Note : To disable connection timeouts, set connectionTimeout value
    to -1 -->
    <!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->
    <!--
    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
    port="8443" minProcessors="5" maxProcessors="75"
    enableLookups="true"
    acceptCount="100" debug="0" scheme="https" secure="true"
    useURIValidationHack="false" disableUploadTimeout="true">
    <Factory className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory"
    clientAuth="false" protocol="TLS" />
    </Connector>
    -->
    <!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->
    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
    port="8009" minProcessors="5" maxProcessors="75"
    enableLookups="true" redirectPort="8443"
    acceptCount="10" debug="0" connectionTimeout="0"
    useURIValidationHack="false"
    protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
    <!-- Define an AJP 1.3 Connector on port 8009 --><Logger className="org.apache.catalina.logger.FileLogger"
    prefix="catalina_log." suffix=".txt"
    timestamp="true"/>
    <!-- Define the default virtual host -->
    <Host name="localhost" debug="0" appBase="webapps"
    unpackWARs="true" autoDeploy="true">
    <Logger className="org.apache.catalina.logger.FileLogger"
    directory="logs" prefix="localhost_log." suffix=".txt"
    timestamp="true"/>
    <Environment name="maxExemptions" type="java.lang.Integer"
    value="15"/>
    <Parameter name="context.param.name" value="context.param.value"
    override="false"/>
    <Resource name="jdbc/DefaultDS" auth="container" type="javax.sql.DataSource"/>
    <ResourceParams name="jdbc/DefaultDS">
    <!-- Maximum number of dB connections in pool.
    Set to 0 for no limit.
    -->
    <parameter>
    <name>maxActive</name>
    <value>8</value>
    </parameter>
    <!-- Maximum number of idle dB connections to retain in pool.
    Set to 0 for no limit.
    -->
    <parameter>
    <name>maxIdle</name>
    <value>4</value>
    </parameter>
    <!-- Maximum time to wait for a dB connection to become available
    in ms, in this example 10 seconds. An Exception is thrown if
    this timeout is exceeded. Set to -1 to wait indefinitely.
    -->
    <parameter>
    <name>maxWait</name>
    <value>5000</value>
    </parameter>
    <!-- MS Sql Server dB username and password for dB connections
    -->
    <parameter>
    <name>user</name>
    <value>sa</value>
    </parameter>
    <parameter>
    <name>password</name>
    <value>sa</value>
    </parameter>
    <!-- Class name for MS Sql Server JDBC driver
    -->
    <parameter>
    <name>driverClassName</name>
    <value>sun.jdbc.odbc.JdbcOdbcDriver</value>
    </parameter>
    <!-- The JDBC connection url for connecting to MS Sql Server dB.
    -->
    <parameter>
    <name>url</name>
    <value>jdbc:odbc:JBoss-SQL://localhost:1433;databaseName=Development;selectMethod=cursor;</value>
    </parameter>
    <!-- This Databae Connection Pool Description.
    -->
    <parameter>
    <name>description</name>
    <value>JDBC Driver: sun.jdbc.odbc.JdbcOdbcDriver</value>
    </parameter>
    </ResourceParams>
    <Resource name="mail/Session" auth="Container"
    type="javax.mail.Session"/>
    <ResourceParams name="mail/Session">
    <parameter>
    <name>mail.smtp.host</name>
    <value>localhost</value>
    </parameter>
    </ResourceParams>
    <ResourceLink name="linkToGlobalResource"
    global="simpleValue"
    type="java.lang.Integer"/>
    </Host>
    </Engine>
    </Service>
    </Server>
    and my web.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <!-- Standard Action Servlet Mapping -->
    <web-app>
    <resource-ref>
    <res-ref-name>jdbc/DefaultDS</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    </web-app>
    and JBoss-SQL is data source I created from control panel settings and here is way I am retrieving connetion
    InitialContext initCtx = new InitialContext();
    DataSource ds = (DataSource) initCtx.lookup("java:comp/env/jdbc/DefaultDS");
    Connection con = ds.getConnection();
    return con;
    I tried connecting as mentioned in this website
    http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html#Common%20Problems.But didn't help
    Please help urgent
    Sorry for long file. Can any one please help me in solving this problem.
    Thanks in advnace
    Kurakula

    I'd recommend that you not use the JDBC-ODBC bridge driver to connect to SQL Server. M$ and jTDS are two free type IV JDBC drivers that you should use instead. Put those JARs in the WEB-INF/lib directory.
    The database URL you're using is not correct if you change drivers. Consult the docs to find out what the proper syntax is.
    MOD

  • Database Connection in SQL Server 2000

    Hi All!
    I would like to ask your expertise regarding JDBC-MS SQL Server 2000.
    I have here a sample code in connecting to SQL Server 2000, AgriMrpPrd Database using the account "sa" and the password "092802". I have tried running the code in my local server at home and It successfully runs, but when I tried running it on my local server in the office, I was not able to create a connection object though I already have changed the HOST, PORT, DATABASE, USERNAME, and PASSWORD values.
    I have tried logging in using my local account, removed the LAN connection, start my local server and tried connecting to it but still it does not work.
    I have tried turning the firewall OFF and try reconnecting but it there was no improvement.
    I do not know if there is a difference if there is my computer is on a DOMAIN (althought I am only connecting to my local server).
    Source Code:
    import javax.swing.*;
    import java.sql.*;
    import com.microsoft.jdbc.sqlserver.*;
    public class SQLServerConnection{
    public String un, pw, db, host, port, url, driver;
    public Connection conn=null;
    public void connectDB(){
    String msg="",title="MS SQL Server - JDBC:ODBC Connection";          
    int msgType=0;
    driver="com.microsoft.jdbc.sqlserver.SQLServerDriver";
    host="206.101.216.95";
    port="1433";
    un="sa";
    pw="092803";
    db="AgriMrpPrd";
    url="jdbc:microsoft:sqlserver://" + host + ":" + port + ";DatabaseName=" + db;
    try{
    Class.forName(driver);
    conn=DriverManager.getConnection(url,un,pw);     
    System.out.println("Connected to Database!");                    
    }catch(Exception ex){
    msg="Unable to connect to MS SQL Server!";
    msgType=JOptionPane.ERROR_MESSAGE;
    JOptionPane.showMessageDialog(null,msg,title,msgType);
    System.exit(0);               
    public static void main(String args[]){
    SQLServerConnection ssc=new SQLServerConnection();
    ssc.connectDB();
    Please give me wisdom in handling this problem...
    Take care always and God blesss
    MADz

    Hi All!
    I would like to ask your expertise regarding JDBC-MS
    SQL Server 2000.
    I have here a sample code in connecting to SQL Server
    2000, AgriMrpPrd Database using the account "sa" and
    the password "092802". I have tried running the code
    in my local server at home and It successfully runs,
    but when I tried running it on my local server in the
    office, I was not able to create a connection object
    though I already have changed the HOST, PORT,
    DATABASE, USERNAME, and PASSWORD values.If the code runs in one place and not the other, it's got to be a problem with seeing the host.
    I have tried logging in using my local account,
    removed the LAN connection, start my local server and
    tried connecting to it but still it does not work.
    I have tried turning the firewall OFF and try
    reconnecting but it there was no improvement.
    I do not know if there is a difference if there is my
    computer is on a DOMAIN (althought I am only
    connecting to my local server).I have no idea how to fix your problem, but there are several things to comment on about your code:
    (1) You don't have to import the microsoft package. It's actually a bad idea.
    (2) I'd name this class DbConnection, because if you wrote it properly it might have a chance of being useful wih other databases, too.
    (3) You hardwire all the connection information. Better to pass it in so changing the database doesn't require a recompile.
    (4) It's bad to mingle Swing and database code. Take those JOptionPane calls out.
    (5) Print the stack trace out when you catch an exception. You're losing a lot of information by handling it that way.
    %

  • Connection String SQL SERVER 2000

    Hi everybody:
    I have a problem:
    I want to connect to Sql Server 2000 from Java Server Pages but I can not do it.
    In Active Server Pages I connect using:
    "Provider=SQLOLEDB;Data Source=" SERVIDOR";Initial Catalog=IntranetHipohard;User id=sa;Password="
    I would like that somebody write me by email.
    This string not is valid for Java Server Pages.
    How can I do it?
    Thank you very much and sorry my language.

    Well, it entirely depends on the JDBC driver you are using. If you are using Microsoft's driver currently in beta 2 (http://www.microsoft.com/sql), you use the following:
    Driver Name
    com.microsoft.jdbc.sqlserver.SQLServerDriver
    Connection URL
    jdbc:microsoft:sqlserver://<HOST>:1433;DatabaseName=<DATABASE>;User=<USER>;Password=<PASSWORD>
    Where <HOST> is the IP or hostname of the machine running SQL Server 2000, and <DATABASE> is the name of the database you are connecting to (optional).
    Hope this is what you need.

  • How to connect MS SQL Server 2000 with JDeveloper 11g

    Hi,
    I am new to JDevleoper, Is it possible to connect MS SQL Server 2000 with JDeveloper 11g.
    If possible can anyone help me in doing that?
    waiting for ur reply...
    Thanks in advance
    Regards,
    reddy

    Shay or other knowledgeable folks,
    Is there a way to utilize the wizard for "Business Tier > ADF Business Components > Business Components from Tables" for SQL Server 2000, 2005 or 2008. I can successfully execute sql via java programmatically or import a table from SQL Server with "Business Tier > ADF Business Components > Entity Object" wizard, but the Business Components from Tables simply doesn't see any tables under any schema. Without the "Business Components from Tables", i don't get the referential constraints imported into the application and to code all those from scratch is just not as elegant. So far i have only utilized the sql server jdbc driver from Microsoft (versions, 1.1, 1.2 and 2.0). Is there an alternative client that i need to use to enable selecting tables from that "Business Components from Tables" wizard. Is this a limitation of SQL Server, the jdbc driver or the wizard itself? Did anybody else experience the same issues? I am using Jdeveloper 11.1.1.0.1 against SQL Server 2005 (currently)
    Thanks,
    Andy

  • Authentication error while connecting to application server IntegratedWebL

    When I start the IntegrationWeblogicServer in JDeveloper11.1.1.3.0, the server can be started, the IntegratedWeblogicServer cann't be connected because of the authentication error.
    The integrated weblogic server can be started successfully outside the Jdevelper, and I never changed the password of user weblogic.
    <2010-8-24 下午02时55分17秒 CST> <Warning> <Server> <BEA-002611> <Hostname "ppan-cn.cn.oracle.com", maps to multiple IP addresses: 10.182.254.102, 192.168.174.1, 192.168.65.1>
    <2010-8-24 下午02时55分17秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
    <2010-8-24 下午02时55分17秒 CST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
    User: weblogic, failed to be authenticated.
    **** Authentication error while connecting to application server IntegratedWebLogicServer. Please check settings.
    **** Failed to complete start-up of application server IntegratedWebLogicServer.
    [Server Instance IntegratedWebLogicServer is shutting down.  All applications currently running will be terminated and undeployed.]
    [Forcing termination of IntegratedWebLogicServer]
    taskkill /F /PID 748
    Process exited.
    What's wrong with the JDeveloper11.1.1.3.0? And How to fix it? Any help is appreciated in advance.
    _Paula                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi Paula:
    You may want to check if one of your applications has its own users and groups settings. If you define your own Application's users ang groups settings, you may need to uncheck the setting in JDeveloper ADF Security wizard to avoid overwriting the embedded WLS security settings. Otherwise, even you reset your embedded WLS or recreate it, its settings will be overwritten again once you run your application on it.
    The way to reset or recreate your embedded WLS is to follow Frank's tips.
    Good luck,
    Alex

  • Have anyone connected to sql server 2000 from forms 6i release 2

    Have anyone connected to sql server 2000 from forms 6i release 2
    on winNT 2000. sql server is also on same machine.
    If yes then pls tell me details regarding
    oca version
    any patch required for forms 6i release 2(download location of
    patch)
    version of odbc drivers
    or any other detils
    urgent
    thanks
    yogesh

    refresh

  • How do I make a connection to SQL Server Express using SQL Developer 1.5.3?

    How do I make a connection to SQL Server Express using SQL Developer 1.5.3, if it's possible at all?
    Also, I received a SQL Server dump file of some sort. Is there any way to read this file in SQL Developer and migrate the db to Oracle? Unfortunately I don't have raw DDL and DML for this database--just some sort of a binary dump file from SQL Server.
    Thanks.
    Dana

    Are you using SQL Developer 1.5.3 or 1.5.4?
    If using an older version (i.e. 1.5.3), then you'll have to add a DLL to your environment. This is [ntlauth.dll].
    If you don't find this DLL in your SQL Developer directory, then obtain the JDBC SQL SERVER Pluggin (jtds-1.2.2-dist.zip) from:
    http://sourceforge.net/project/showfiles.php?group_id=33291&package_id=25350
    Copy the ntlmauth.dll in the ...\\...\ide\lib directory (no need to register it).
    Note: this approach should work if using DQL Developer 1.5.3 and SQL Server Express 2008
    Regards,
    M. R.

Maybe you are looking for

  • Trouble exporting photos in 8.1.2

    I am now unable to export photos in 8.1.2 to any desktop folder. I just noticed it. The message I am getting is: "unable to create/users/ldvf/desktop/ras" ras is the desktop folder. I have also tried exporting to other folders as well as the desktop

  • SF + HD images in web content

    Coding html content in Dreamweaver cs6 and embedding it into DPS, I have the impression that the SD and HD png buttons (part of the embedded web content) don't differ on iPad 1 and iPad 3 (retina display). I built the png buttons in normal size and d

  • BehaviorTracking:displayContentEvent problem

    Hi, I implemented BehaviorTracking:displayContentEvent and somehow i am not seeing information in the database table.I am showing image content from my Content Management Database. here is the code, if anyone solved this problem, plz help me. <%@tagl

  • Flash Media Live Encoder 3 authetification problem

    I was using FME2.5 since several months. I tried to update to the fmle3 but i have an authentification problem. I updated the authentification addin on the fms server to the version 3. When i run FME 2.5 i can connect and stream on the server but whe

  • Update distinguishedName field in Active Directory?

    HI all, We are trying to create the Active Directory users from SAP .  But we are not able to manipulate the Distingushed Name attribute to create the users inside the right OU. We tried to pass the value of OU name to the attribute 'o' which is not