JDBC connection to SQL Server 2000 Service Pack 4

Hello Everyone,
I'm trying to do a simple application which save some values into a MS SQL Server 2000 Database's Table.
The source code I've written is:
package Logging;
import com.brekeke.net.sip.sv.session.*;
import com.brekeke.net.sip.sv.session.plugins.*;
import java.io.*;
import java.util.*;
import java.sql.*;
public class Logging extends AccountingBase {
public int eventSessionStart( EventStat evstat, String[] argprm )
int ris =0;
int line=999;
try {
EventStat a;
a = evstat ;
String username;
username=a.urlCaller;
String callee;
callee=a.urlCallee;
Statement stmt = null;
try {
line=1;
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
line=2;
Connection conn = DriverManager.getConnection("jdbc:microsoft:sqlserver://BSSQL:1433;DataBaseName=Test;User=sa;Password=biesse");
line=3;
// Create and execute an SQL statement that returns some data.
String SQL = "INSERT INTO log VALUES ('" + a.urlCaller + "','" + a.urlCallee + "')";
line=4;
stmt = conn.createStatement();
line=5;
line=stmt.executeUpdate(SQL);
line=10;
catch (Exception e) {
e.printStackTrace();
finally {
if (stmt != null) try { stmt.close(); } catch(Exception e) {}
File f = new File("c:/prova.txt");
FileOutputStream fos=new FileOutputStream(f);
PrintStream ps=new PrintStream(fos);
ps.println(line);
ps.println(a.urlCaller);
ps.println(a.urlCallee);
fos.close();
catch ( Exception ex ) {
return ris;
The problem is that into the Table no value is written, no problem compiling it and into the file prova.txt I can see only the value line=1 written!
So there should be something wrong in the connection.
I've already installed the JDBC drivers for SQL Server 2000 and I've addedd into the libraries the "msbase.jar, the mssqlserver.jar and the msutil.jar".
But nothjng written into the Database :-(
Can you help me please?
Thank you very much in advance,
Best Regards
Francesco

Hi,
Yes i am able to connect from ISQL. Only connecting from JDBC is a problem.

Similar Messages

  • JDBC connection for SQL Server 2000

    How to connect SQL Server 2000 from java?
    If i can get any sites where i can get examples also fine.
    Thanks in advance
    Praveen.

    Developer's Daily  Java Education 
      front page | java | perl | unix | DevDirectory 
      Front Page
    Java
    Education
    Pure Java
       Articles
    JDBC 101: How to connect to an SQL database with JDBC
    Introduction
    If you're interested in connecting your Java applets and applications to standard SQL databases like Oracle, Informix, Sybase, and others, JDBC is your ticket to paradise.  The combination of Java's JDBC and standard SQL makes a simple and powerful database solution. JDBC makes the simple things easy -- without making the complex tasks too difficult either.
    In this first article in our series, we'll show you step-by-step how to establish a connection from your Java programs to an SQL database using JDBC. In the process we'll show you how to connect to two different databases -- Mini SQL (mSQL), and Interbase -- just so you can see how the code changes when you switch from one database to another.
    Obtaining the JDBC driver
    Before you start working with JDBC, you'll need a copy of the Java JDK. If you don't have it already, you can get the JDK for free at Sun's Java web site, or it will also be included with many IDE's that you can purchase, such as JBuilder or Visual Cafe.
    Once you have the JDK, the next thing you need to do is to get the correct JDBC driver for your database. In most cases the JDBC driver will be provided by your database vendor. For instance, if you purchase the Interbase database, the driver will be provided with the software, or you can obtain the most recent version at http://www.interbase.com/.
    (An exception to this rule is Mini SQL, or mSQL. Because it's a very low-cost database, the JDBC driver has actually been developed by a separate group of people, led by George Reese at imaginary.com. You can download the mSQL JDBC driver from the imaginary.com web site.)
    Once you have the correct JDBC driver for your database, install it according to the instructions that came with it. Installation instructions will vary somewhat for each vendor.
    Establishing a connection is a two-step process
    Once you have the correct JDBC driver installed, establishing a connection from your Java programs to your SQL database is pretty easy.
    Regardless of whether you're trying to connect to Oracle, Sybase, Informix, mSQL, or Interbase (or any other JDBC data source), establishing a connection to an SQL database with Java JDBC is a simple two-step process:
    Load the JDBC driver.
    Establish the connection.
    We'll show you two examples just so you can see how easy it is, and how little the code changes when you migrate from one database server to another.
    A Mini SQL Example
    Listing 1 provides the full source code required to establish a connection to a mSQL database on a server named "www.myserver.com".
      //  Establish a connection to a mSQL database using JDBC. 
    import java.sql.*; 
    class JdbcTest1 { 
        public static void main (String[] args) { 
            try { 
                // Step 1: Load the JDBC driver. 
                Class.forName("com.imaginary.sql.msql.MsqlDriver"); 
                // Step 2: Establish the connection to the database. 
                String url = "jdbc:msql://www.myserver.com:1114/contact_mgr"; 
                Connection conn = DriverManager.getConnection(url,"user1","password");  
            } catch (Exception e) { 
                System.err.println("Got an exception! "); 
                System.err.println(e.getMessage()); 
      Listing 1: This source code example shows the two steps required to establish a connection to a Mini SQL (mSQL) database using JDBC. 
    An Interbase Example
    Listing 2 provides the full source code required to establish a connection to an Interbase database. In this example, we're connecting to a local Interbase server (i.e., the server is running on the same PC that we're running the Java code on).
      //  Establish a connection to an Interbase database using JDBC. 
    import java.sql.*; 
    class JdbcTest1 { 
        public static void main (String[] args) { 
            try { 
                // Step 1: Load the JDBC driver. 
                Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); 
                // Step 2: Establish the connection to the database. 
                String url = "jdbc:odbc:contact_mgr"; 
                Connection conn = DriverManager.getConnection(url,"user1","password");  
            } catch (Exception e) { 
                System.err.println("Got an exception! "); 
                System.err.println(e.getMessage()); 
      Listing 2: This source code example shows the two steps required to establish a connection to an Interbase database using JDBC. 
    What's the difference?
    The difference between the two source code listings is very small, so we highlighted them in a dark blue color. The only difference between connecting to the two databases is:
    The name of the JDBC driver.
    The URL used to connect to the database.
    Everything else in the two source code listings -- except for the comment at the top -- is identical. Here's a slightly more detailed discussion of the two differences:
    1. The JDBC Driver
    The name of the JDBC driver will be supplied to you by your database vendor. As you can see in the class.forName() statements, these names will vary. In the first case we're using the mSQL-JDBC driver. In the second case we're using the JDBC-ODBC Bridge driver supplied with the Interbase server.
    2. The URL
    The syntax of the DriverManager.getConnection() method is:
    DriverManager.getConnection(String url, String username, String password);
    The username and password are the normal names you use to log into your database. The URL you use will again vary with the database you use. In both examples shown, we're establishing a connection to a database named contact_mgr. (We'll use this database for all of our examples in this series of JDBC articles.)
    If you stick with standard SQL commands, it can be very easy to switch from one database server to another. In fact, I've heard from several developers who are using mSQL to prototype their software (because it's so inexpensive), and then switching to another commercial vendor when it's time to take their product "live".
    Conclusion
    Establishing a connection to an SQL database with Java JDBC is a simple, two-step process. The process is nearly identical for all SQL databases, and the only real differences are (a) the driver name, and (b) the URL used to connect to the database. Your database vendor will provide this information in their documentation.
    Resources mentioned in this article
    Here are a few links to resources we mentioned in this article:
    Interbase
    The Mini SQL (mSQL) database
    The mSQL-JDBC driver at imaginary.com
      [an error occurred while processing this directive]
     

  • MS SQL Server 2000 Service Pack 4 upgrade

    Hi,
    I need to upgrade my actual SAP DataBase SQL Server 2000 from Service Pack 2 to Service Pack 4 in order to be more secure as a MS consultant is requesting, but following the comments on the SAP note 1026116 attached file, which references this MS article:
    http://download.microsoft.com/download/1/B/D/1BDF5B78-584E-4DE0-B36F-C44E06B0D2A3/ReadmeSql2k32sp4.htm
    Referenced Text:
    "If your instance of SQL Server 2000 is being used by an application, first check with the provider of the application whether there are any SQL Server 2000 upgrade considerations specific to that application. "
    So following this instructions is there any SQL Server 2000 upgrade to Service Pack 4 considerations for a SAP Database of an ERP R3 ECC 6.0.
    Could anyone can help me please with this question?
    Best Regards,
    Erik Espinosa

    Hi,
    Service Pack 4 is supported and recommended for SAP ERP ECC 6.0. There are currently no known issues with upgrading to this service pack. The mentioned collation change don't have to be performed as long as you are not planning to upgrade to SQL Server 2005.
    Best regards
      Clas

  • JDBC connection to SQL Server 2000

    Hi,
    I am new to Java programming. I am using Websphere Studio Site Developer 5.1 and I am having issues connecting to SQL 2000.
    This is what I have done so far:
    1. Downloaded the SQL Server 2k JDBC service pack 3 driver from Microsoft.
    2. Ran the executable. Seems like the JDBC driver was installed successfully.
    3. Created a user w/ dbo permissions on the DB that I want to access.
    Here is a snippet of my java code so far:
    Connection con = DriverManager.getConnection("jdbc:microsoft:sqlserver://DEV01:1433;DatabaseName=NG_RFQ;SelectMethod=cursor", "username", "password");
    Statement stmt = con.createStatement();
    ResultSet rs = stmt.executeQuery("SELECT * FROM Customer");
    if(rs.next()){
    customerName = rs.getString("CustomerName");
    buyerName = rs.getString("BuyerName");
    con.close();
    I have been working on this for days and can NOT get a connection established.
    Here are some of the error messages that I have been receiving thru WSSD.
    java.sql.SQLException: No suitable driver
    [8/11/04 18:11:54:815 EDT] 5e5c8f29 SystemErr R      at java.sql.DriverManager.getConnection(DriverManager.java:558)
    Can anyone please tell me what I am doing wrong? Or point me in the right direction.
    I have searched hi and lo for the answer but still no luck.
    Any help would be greatly appreciated.
    Thanks!
    -JML

    "No suitable driver" means one of two things:
    1. You forgot the Class.forName() part (quite uncommon, but if I look at the original post, this might just be the cause).
    2. The URL is wrong (usually a typo, look for colons, semicolons, parameter names etc.)
    Alin.

  • 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

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

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

  • JDBC driver for SQL Server 2000 with windows authentication

    Does anyone know of a JDBC driver for SQL Server 2000 that supports Windows Authentication, that is that a username and password does not need to be supplied when connecting to the database.

    You can use the JDBC-ODBC-Bridge.
    ODBC provides windows-authentication.
    Hope it helps.
    Freddy

  • 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

  • SQL Server 2008 Service Pack 1 installation problem

    I am using Windows 7.
    Today I saw "Microsoft SQL Server 2008 Service Pack 1 (KB968369)" as an optional update in the updates list. I've tried to intstall it but it failed with Code CF2E222F. I found nothing about this code on the internet.
    I've also tried to install the sp manually. I've downloaded it an tried to install. But it also failed.
    SQL Server Setup has encountered the following error: C:\Windows\Installer\9bcac.msi.
    Any suggestions?

    Here's the summary:
    Overall summary:
    Final result: The patch installer has failed to update the shared features. To determine the reason for failure, review the log files.
    Exit code (Decimal): -819060177
    Exit facility code: 1838
    Exit error code: 8751
    Exit message: C:\Windows\Installer\9bcac.msi
    Start time: 2010-04-28 10:10:14
    End time: 2010-04-28 10:11:02
    Requested action: Patch
    Log with failure: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20100428_100952\Detail.txt
    Exception help link: http%3a%2f%2fgo.microsoft.com%2ffwlink%3fLinkId%3d20476%26ProdName%3dMicrosoft%2bSQL%2bServer%26EvtSrc%3dsetup.rll%26EvtID%3d50000%26ProdVer%3d10.0.2531.0%26EvtType%3d0x4C9229A1%400x2FCB8C55
    Machine Properties:
    Machine name: MACHINE_NAME
    Machine processor count: 4
    OS version: Windows Vista
    OS service pack:
    OS region: Türkiye
    OS language: English (United States)
    OS architecture: x86
    Process architecture: 32 Bit
    OS clustered: No
    Product features discovered:
    Product Instance Instance ID Feature Language Edition Version Clustered
    Sql Server 2008 MSSQLSERVER MSSQL10.MSSQLSERVER Database Engine Services 1033 Developer Edition 10.1.2531.0 No
    Sql Server 2008 MSSQLSERVER MSSQL10.MSSQLSERVER SQL Server Replication 1033 Developer Edition 10.1.2531.0 No
    Sql Server 2008 MSSQLSERVER MSSQL10.MSSQLSERVER Full-Text Search 1033 Developer Edition 10.0.1600.22 No
    Sql Server 2008 MSSQLSERVER MSAS10.MSSQLSERVER Analysis Services 1033 Developer Edition 10.1.2531.0 No
    Sql Server 2008 MSSQLSERVER MSRS10.MSSQLSERVER Reporting Services 1033 Developer Edition 10.1.2531.0 No
    Sql Server 2008 RETAILSTORE MSSQL10.RETAILSTORE Database Engine Services 1033 Developer Edition 10.0.1600.22 No
    Sql Server 2008 SQLEXPRESS MSSQL10.SQLEXPRESS Database Engine Services 1033 Express Edition 10.1.2531.0 No
    Sql Server 2008 SQLEXPRESS MSSQL10.SQLEXPRESS SQL Server Replication 1033 Express Edition 10.1.2531.0 No
    Sql Server 2008 Management Tools - Basic 1033 Developer Edition 10.1.2531.0 No
    Sql Server 2008 Management Tools - Complete 1033 Developer Edition 10.1.2531.0 No
    Sql Server 2008 Client Tools Connectivity 1033 Developer Edition 10.1.2531.0 No
    Sql Server 2008 Client Tools Backwards Compatibility 1033 Developer Edition 10.1.2531.0 No
    Sql Server 2008 Client Tools SDK 1033 Developer Edition 10.1.2531.0 No
    Sql Server 2008 Integration Services 1033 Developer Edition 10.1.2531.0 No
    Package properties:
    Description: SQL Server Database Services 2008
    SQLProductFamilyCode: {628F8F38-600E-493D-9946-F4178F20A8A9}
    ProductName: SQL2008
    Type: RTM
    Version: 10
    SPLevel: 1
    KBArticle: KB968369
    KBArticleHyperlink: http://support.microsoft.com/?kbid=968369
    PatchType: SP
    AssociateHotfixBuild: 0
    Platform: x86
    PatchLevel: 10.1.2531.0
    ProductVersion: 10.0.1600.22
    GDRReservedRange: 10.0.1000.0:10.0.1099.0;10.0.3000.0:10.0.3099.0
    PackageName: SQLServer2008-KB968369-x86.exe
    Installation location: g:\2aa334eee83bd39b499730\x86\setup\
    User Input Settings:
    ACTION: Patch
    ALLINSTANCES: False
    CLUSTERPASSIVE: False
    CONFIGURATIONFILE:
    HELP: False
    INDICATEPROGRESS: False
    INSTANCENAME: <empty>
    QUIET: False
    QUIETSIMPLE: False
    X86: False
    Rules with failures:
    Global rules:
    There are no scenario-specific rules.
    Rules report file: The rule result report file is not available.
    Exception summary:
    The following is an exception stack listing the exceptions in outermost to innermost order
    Inner exceptions are being indented
    Exception type: System.IO.FileNotFoundException
    Message:
    C:\Windows\Installer\9bcac.msi
    Data:
    DisableWatson = true
    Stack:
    at Microsoft.SqlServer.Chainer.Infrastructure.MsiNativeMethodHelpers.GetDBProperty(ServiceContainer context, String pathToMsi, String propertyName)
    at Microsoft.SqlServer.Configuration.MsiExtension.SetPatchInstallStateAction.GetMsiRtmVersion(PackageInstallProperty targetPackage)
    at Microsoft.SqlServer.Configuration.MsiExtension.SetPatchInstallStateAction.IsApplicablePatch(PatchProperty currentPatch, PackageInstallProperty targetPackage)
    at Microsoft.SqlServer.Configuration.MsiExtension.SetPatchInstallStateAction.ExecuteAction(String actionId)
    at Microsoft.SqlServer.Configuration.MsiExtension.ProductInstallProperty.GetInstalledPackages(String instanceName, List`1& installedInstancePackages, List`1& installedSharedPackages, String& returnedErrorMessage)
    at Microsoft.SqlServer.Configuration.MsiExtension.ProductInstallProperty.CollectProductData()
    at Microsoft.SqlServer.Configuration.FeatureTreeConfigurationBase.LoadFeatureTreeDefinitionAllInstances()
    at Microsoft.SqlServer.Configuration.FeatureTreeConfigurationBase.LoadFeatureTreeDefinition()
    at Microsoft.SqlServer.Configuration.FeatureTreeConfigurationBase..ctor(ServiceContainer context)
    at Microsoft.SqlServer.Configuration.PatchFeatureTree..ctor(ServiceContainer context)
    at Microsoft.SqlServer.Configuration.PatchFeatureTree.InitializePatchFeatureTree(ServiceContainer context)
    at Microsoft.SqlServer.Configuration.SetupExtension.InitializeUIDataAction.ExecuteAction(String actionId)
    at Microsoft.SqlServer.Chainer.Infrastructure.Action.Execute(String actionId, TextWriter errorStream)
    at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.InvokeAction(WorkflowObject metabase, TextWriter statusStream)
    at Microsoft.SqlServer.Setup.Chainer.Workflow.PendingActions.InvokeActions(WorkflowObject metaDb, TextWriter loggingStream)

  • After Installing SQL Server 2012 Service Pack the RDL reports do not work

    I installed SQL Server 2012 Service Pack on backEnd sharepoint and also on BI Server that host Reporting Service.(Before installation everything was working properly)
    After this installation the RDL reports do not open and I receive this error message.
    The permissions granted to user 'domain\username' are insufficient for performing this operation. (rsAccessDenied)
    I also receive the same error message on changing DataSource, Parameters and subscription.
    I should mention that, I am using Reporting Services in the Integration Mode. I want to open and modify RDL reports from SharePoint and inside the SharePoint Document Library.

    Hi Hedayat,
    Thanks for posting your issue,
    To solve this problem you have to grant your SQL Reporting Service Application Pool
    Account (whatever is running your SQL Service Application, see Central Admin -> Manage Service Application -> SQL Server Reporting Services)
    Full Control to the web application that report is being deployed to in your particular case.
    Or you could just use the powershell command below:
    $webApp = Get-SPWebApplication –Identity http://yoursharepointapp 
    $webApp.GrantAccessToProcessIdentity(“domain\SSRSAccount”) 
    Also, check out below mentioned URLs for more details and fixes of this issue
    http://paulliebrand.com/2013/09/25/ssrs-and-permissions-granted-to-user-are-insufficient-for-performing-this-operation/
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/4ea477ec-ea12-4a3e-bc33-2fcf9d52b84e/error-rsaccessdenied-nt-authoritynetwork-service-are-insufficient?forum=sqlreportingservices
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • RDL Reports are not working after installing SQL Server 2012 Service Pack 2 in the SharePoint integration Mode

    I am using Reporting Service Integration mode with SharePoint. SSRS is installed on separated machine of SharePoint stacks in Integration Mode. Everything was working properly and I could create/edit/modify RDL reports(parameters, Datasource, Subscription)
    inside SharePoint and Document Libraries.
    But after installing SQL Server 2012 Service Pack 2, on opening RDL reports inside SharePoint I receive this error message. 
    The permissions granted to user 'i:0#.f|membership|username' are insufficient for performing this operation. ---> Microsoft.ReportingServices.Diagnostics.Utilities.AccessDeniedException: The permissions granted to user 'i:0#.f|membership|username' are insufficient for performing this operation
    I should mention that SSRS is installed in the SharePoint integration Mode and there is no SSRS management console.

    Hi Hedayat-Abedijoo,
    According to your description, you are using Reporting Services in SharePoint Integrated mode, and everything worked fine before you install SQL Server 2012 Service Pack 2. After the package is installed, when you open RDL reports, the error occurred: The
    permissions granted to user 'i:0#.f|membership|username' are insufficient for performing this operation.
    According to my search, there may be two reasons for the problem:
    This is caused when the application pool account that runs the SharePoint Web application you are on in IIS and the application pool account that SharePoint believes is running the site differ. This happens if the application pool account is changed directly
    in IIS instead of through SharePoint (using the approved method).
    This error can be caused when Kerberos authentication has been set up correctly and delegation in a double hop scenario will succeed, but Reporting Services integration has been set up for Trusted Account rather than Windows Authentication. This causes
    SharePoint to continue to impersonate the logged-on user when contacting Reporting Services; when Reporting Services compares the application pool account to the user account making the request, they are not equal.
    In this case, we can solve the problem by changing the application pool account in IIS back to the previous account and set AuthenticationTypes to RSWindowsNTLM only. For detail information, please refer to 8.3 “The permissions granted to user 'Domain\User'
    are insufficient for performing this operation” in the document:http://msdn.microsoft.com/en-us/library/ee384252(SQL.100).aspx
    If you have any questions, please feel free to let me know.
    Thanks,
    Wendy Fu

  • *****Error in Microsoft JDBC drivers for SQL Server 2000****

    hi guys,
    I am getting the following error in my application. The error seems to have thrown by Microsoft JDBC drivers for SQL Server 2000
    The application tries to execute the the following query when the error is thorwn:
    SELECT getDate(); // getDate is a function which returns currebt date time. The error is thrown occassionally. Other times the same query is executed correctly by the application.
    Can any one help with this one.
    The error is:
    java.lang.NullPointerException
         at com.microsoft.jdbc.base.BaseImplStaticCursorResultSet.setupTempFiles(Unknown Source)
         at com.microsoft.jdbc.base.BaseImplStaticCursorResultSet.<init>(Unknown Source)
         at com.microsoft.jdbc.base.BaseStatement.chainInServiceImplResultSets(Unknown Source)
         at com.microsoft.jdbc.base.BaseStatement.getNextResultSet(Unknown Source)
         at com.microsoft.jdbc.base.BaseStatement.commonGetNextResultSet(Unknown Source)
         at com.microsoft.jdbc.base.BaseStatement.executeQueryInternal(Unknown Source)
         at com.microsoft.jdbc.base.BaseStatement.executeQuery(Unknown Source)
         at com.sanderson.tallyman.util.TallymanDB.executeQuery(Unknown Source)
         at com.sanderson.tallyman.util.TallymanDB.getCurrentDate(Unknown Source)
         at com.sanderson.tallyman.operations.interfaces.RecordUpdateControl.updateRecord(Unknown Source)
         at com.sanderson.tallyman.operations.interfaces.DebtInterfaceControl.processUpdate(Unknown Source)
         at com.sanderson.tallyman.operations.interfaces.DebtInterfaceControl.processInterface(Unknown Source)
         at com.sanderson.tallyman.operations.interfaces.InterfaceHandler$ProcessRecord.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    rgds,

    Hi,
    Did you ever get an answer to this? I am also having this problem.

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

Maybe you are looking for

  • How to configure Apache Plug-in CookieName for multiple session cookies?

    I'm deploying an ear file with 2 web applications (.war files) in it and each .war has its own CookieName defined in the weblogic.xml file. I need to set up the Apache plugin for Weblogic to look at both of them and not just one. Can I simply add bot

  • How do i unlock my ipod touch when it wont leave recovery mode?

    My ipod touch will not leave recovery mode, and when I plug it into itunes a window pops up saying i need to unlock my ipod touch before it can sync. I cant do this, because it will not leave recovery mode to let me unlock it. What should i do?

  • Photo gallery navigation problem

    i have a photo gallery up on page http://paradisembc-dallas.org/gallery.html that is giving me the blues as far as navigation. i can't go back to images i've already viewed. any assistance would be greatly appreciated.

  • Reconciliation

    I am using SBO 2004 2b. In reconciliation how to import external bank statement in sbo. in pdf file of help on reconciliation it is shown that import button is there on "Process External Bank Statement". but in the version which i am using that butto

  • Inter company cost booking issue

    Hi, i configured the order related inter company billing. Issue is when we raise a end customer invoice then my end customer account is debited and my inter co sales is credited(selling co code) and when intercomapny billing generated then my interna