Find SA password in sql server 2000

Hi Team
i have 2 sql servers 
1. sql server 2000
2. Sql server 2008R2
now i'm migrating some database from old server to new sql server
but i forgot  my SA password on my old server (sql2000)and no one has sys admin access
can any one help me how do i  get sa password 
could you plz tell me step by step process
Kamal

Hi,
You cannot find SA password as a fact you cannot see any password for SQL server its hashed. Below article would help you in logging in SQL server when all administrators are locked out I am not sure whether it will work in SQL server 2000 as I barely remember
having such issue on 2000
In SQL server 2005 if started with -m option any user who is member of Built in administrator ( or added as admin in local windows account) can connect regardless of whether the BUILTIN\Administrators group has been granted a server login that is provisioned
in the SYSADMIN fixed server role. This behavior is by design. This behavior is intended to be used for data recovery scenarios. Check if same holds for SQL 2000 as well
Connect to SQL server when Sysadmins are locked out
Do you have any other login which is member of sysadmin. I cannot find a reason to shutdown SQL Server what if its a production DB ( yes I know few SQL 2000 which are still production) use backup restore to move databases always.
Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
My TechNet Wiki Articles

Similar Messages

  • Urgent: Finding sessions in SQL server 2000

    Hi,
    Can you help me how to find out sessions in SQL Server 2000.
    Also is there any way to see the outstanding sessions for a database?
    Thanks in advance,
    Vasu.

    You can do this graphically in Enterprise Manager, or you can use this script:
    SET NOCOUNT ON
    create table #ProcCheck(
     Status varchar(50) ,
     SPID int ,
     CPU int ,
     Pys_IO int ,
     WaitTime int ,
     BlockSPID int ,
     HostName varchar(36) ,
     ProgName varchar(100) ,
     NTUser varchar(50) ,
     LoginTime datetime ,
     LastBatch datetime ,
     OpenTrans int ,
     LastCmd varchar(4000))
    create table #ProcInfo(
     EventType varchar(100) ,
     Parameters int ,
     EventInfo varchar(7000)
    INSERT INTO #ProcCheck(Status, SPID, CPU, Pys_IO, WaitTime, BlockSPID, HostName, ProgName, NTUSer, LoginTime, LastBatch, OpenTrans)
    SELECT status, SPID, CPU, Physical_IO, WaitTime, Blocked, SUBSTRING(HostName, 1, 36), SUBSTRING(Program_Name, 1, 100), SUBSTRING(nt_username, 1, 50), Login_Time, Last_Batch, Open_Tran
    FROM master..sysprocesses
    where (blocked > 0
    or spid in (select blocked from master..sysprocesses (NOLOCK) where blocked > 0)
    or open_tran > 0)
    and SPID <> @@SPID
    declare @spid int ,
     @cmd varchar(7000)
    declare Procs cursor fast_forward for
    SELECT SPID FROM #ProcCheck
    OPEN Procs
    FETCH NEXT FROM Procs INTO @SPID
    WHILE @@FETCH_STATUS = 0
     BEGIN
     SET @cmd = 'DBCC INPUTBUFFER(' + CONVERT(varchar, @SPID) + ')'
     INSERT INTO #ProcInfo
     EXEC(@cmd)
     SELECT @cmd = EventInfo
     FROM #ProcInfo
     DELETE FROM #ProcInfo
     UPDATE #ProcCheck
     SET LastCmd = SUBSTRING(@cmd, 1, 500)
     WHERE SPID = @SPID
     FETCH NEXT FROM Procs INTO @SPID
     END
    CLOSE Procs
    DEALLOCATE Procs
    SELECT * FROM #ProcCheck 
    DROP TABLE #ProcCheck
    DROP TABLE #ProcInfo

  • Can't registerOutParameter of cursor type in SQL Server 2000

    Hi, there,
    I'm using SQL Server 2000 and a type 4 JDBC driver for it from JRun 3.1. I wrote a stored procedure which has a Cursor (ResultSet) as an output parameter. But I used callStmt.registerOutParameter(1, java.sql.Types.OTHER);
    I got an exception:
    callable stmt class: allaire.jrun.db.jdbc.base.BaseCallableStatement
    java.sql.SQLException: [JRun][SQLServer JDBC Driver]The specified SQL type is not supported by this driver.
    I definitely want the cursor to be an output parameter in my SQL 2000 store procedure, rather than defining a store procedure without an output Cursor parameter and then use callStmt.getResultSet();
    Does any one knows a way to register an output parameter of type CURSOR in SQL Server 2000 JDBC?
    I know that with in Oracle JDBC driver, you can do this:
    callStmt.registerOutParameter(1, OracleTypes.CURSOR);
    ButI failed to find a equivalent in SQL Server 2000 JDBC driver.
    Thanks a lot.

    If you found any solution to this, would you please let me know too? It'll help a tonne.

  • SQL Server 2000 Reporting withJava

    Hi All,
    Can any one give the code to open SQL Server 2000 Reporting file (i.e, with the extension '.rdl') as we do for the crystal reports '.rpt' file in jsp.
    Is there any eclipse plugin for SQL Server 2000 Reporting service.
    thanks in advance.

    For versions above than SQL 2000, you can refer to sql reporting services configuration tool.
    For SQL server 2000, reporting services view the database deatils as mentioned in below thread
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/e4263367-600d-4bb1-94e7-6b66e5df295d/how-do-i-find-configuration-details-on-sql-server-2000-ssrs?forum=sqlreportingservices
    To find the SQL Server name that host the report server database, please check the server name of the “ReportServerURL” in the RSWebApplication configuration file. The configuration file is located in the following folder:
    <drive>:\Program Files\Microsoft SQL Server\MSSQL\Reporting Services\ReportManager
    By default, the report server database name is ReportServerDB, and the report server temporary database name is ReportServerTempDB. To check the report server database name the SSRS 2000 uses currently, we can try to join a report server
    instance to a Web farm by using different database. If the target database is not validated during the setup, it cannot be the report server database. Besides, we can also expand the tables of the databases; a report server database has different tables with
    common databases.
    For more information, please see:
    RSWebApplication Configuration File
    Installing a Report Server Web Farm
    Please click the Mark as answer button and vote as helpful if this reply solves your problem

  • SQL SERVER 2000 - REPORTING SERVICES DATABASE ?

    Hi!
    A very basic question, how to know where reporting services points to the database and server ?
    miga

    For versions above than SQL 2000, you can refer to sql reporting services configuration tool.
    For SQL server 2000, reporting services view the database deatils as mentioned in below thread
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/e4263367-600d-4bb1-94e7-6b66e5df295d/how-do-i-find-configuration-details-on-sql-server-2000-ssrs?forum=sqlreportingservices
    To find the SQL Server name that host the report server database, please check the server name of the “ReportServerURL” in the RSWebApplication configuration file. The configuration file is located in the following folder:
    <drive>:\Program Files\Microsoft SQL Server\MSSQL\Reporting Services\ReportManager
    By default, the report server database name is ReportServerDB, and the report server temporary database name is ReportServerTempDB. To check the report server database name the SSRS 2000 uses currently, we can try to join a report server
    instance to a Web farm by using different database. If the target database is not validated during the setup, it cannot be the report server database. Besides, we can also expand the tables of the databases; a report server database has different tables with
    common databases.
    For more information, please see:
    RSWebApplication Configuration File
    Installing a Report Server Web Farm
    Please click the Mark as answer button and vote as helpful if this reply solves your problem

  • How to find Collation setting for Analysis services in Sql server 2000

    Hi
    Can some please guide me how do I check  Collation setting for Analysis services in Sql server 2000
    i need it to install Analysis servcies on my machine

    Hi SMV123,
    We can find the collation settings for Analysis services in SQL Server Management Studio (SSMS). Connect to the SSAS instance from within SSMS->Right click on the instance and select Properties->An Analysis Server properties page will appear. And then
    on the left hand side is a Language /collation option.
    Besides, here is a link about how to install SQL Server Analysis Services 2000 for your reference.
    How to Install SQL Server 2000 Analysis Servicese
    Regards,
    Charlie Liao
    Charlie Liao
    TechNet Community Support

  • Where can I find a sql server 2000 driver which supports JDBC 2.0?

    Where can I find a sql server 2000 driver which supports JDBC 2.0?
    Thanks!
    Paul.

    Here is another.
    http://www.datadirect-technologies.com/download/downloadindex.asp
    The JDBC 3.0 driver will work in a JDBC 2.0 environment (i.e with J2SE 1.2 or 1.3)
    provided you use only JDBC 2.0 features of the driver
    "Sree Bodapati" <[email protected]> wrote:
    >
    >
    http://msdn.microsoft.com/downloads/default.asp?URL=/downloads/sample.asp?ur
    l=/msdn-files/027/001/779/msdncompositedoc.xml&FinishURL=%2Fdownloads%2Frele
    ase%2Easp%3FReleaseID%3D38312%26area%3Dsearch%26ordinal%3D1%26redirect%3Dno
    Microsoft.com downloads :)
    http://www.inetsoftware.de/English/Produkte/JDBC_Overview/ms.htm
    www.inetsoftware.de
    are a couple.
    sree
    "pronane" <[email protected]> wrote in message
    news:[email protected]..
    Where can I find a sql server 2000 driver which supports JDBC 2.0?
    Thanks!
    Paul.

  • Where to find the API documentation for MS SQL Server 2000 JDBC

    I Downloaded and installed the MS SQL Server 2000 JDBC package, but I found that it does not provide enough help docs such as API documentation, demo and etc.
    It would be most grateful if you would provide some information about this driver.

    Thank your for your kind attention.
    For example, I want to get a ConnectionPoolDataSource object to get a PooledConnection object, but I don't know which class implements the interface.
    import java.sql.*;
    import javax.sql.*;
    import <classes related to connection pooling>;
    ConnectionPoolDataSource cpds = new <MS impl>;
    <lines for setURL()/setUser()/setPassword, etc>
    PooledConnection pc = cpds.getPooledConnection();
    ...

  • 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

  • Please help - Scrollable result set in sql server 2000

    Hi can some one please help me. I'm trying to create scrollable result set in sql server 2000, but i just can't get it to work. I've been trying to do this for the past 12 hours. I want to go home, but I can't till I get this going! please help!!! My crap code is as follows:
    package transact;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.JInternalFrame;
    import java.sql.*;
    import java.io.*;
    import java.util.*;
    public class DummyFrame extends Dummy
    protected String name, surname;
    protected Connection conn;
    protected CallableStatement cstatement;
    public DummyFrame()
    createFrame();
    private void createFrame()
    try
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
    conn = DriverManager.getConnection(
    "jdbc:microsoft:sqlserver://server:1433;" +
    "user=user;password=pwd;DatabaseName=Northwind");
    catch (Exception e)
    e.getMessage();
    populateFields();
    menuAction();
    show();
    private void menuAction()
    btncontacts.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent e)
    getRecords();
    populateFields();
    btncontacts.setText("NEXT");
    btnkeywords.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent e)
    // transaction.getRecords();
    nextRecord();
    populateFields();
    btncontacts.setText("NEXT");
    protected void nextRecord()
    try
    // CallableStatement cstatement = null;
    cstatement = conn.prepareCall(
    "{call Employee_Selection}", ResultSet.TYPE_SCROLL_INSENSITIVE,
    ResultSet.CONCUR_UPDATABLE);
    ResultSet rs = cstatement.executeQuery();
    while (rs.next())
    surname = rs.getString("Lastname");
    cstatement.getMoreResults();
    catch (Exception e)
    e.getMessage();
    protected void getRecords()
    try
    CallableStatement cstatement = null;
    cstatement = conn.prepareCall(
    "{call Employee_Selection}", ResultSet.TYPE_SCROLL_INSENSITIVE,
    ResultSet.CONCUR_UPDATABLE);
    ResultSet rs = cstatement.executeQuery();
    while (rs.next())
    surname = rs.getString("Lastname");
    name = rs.getString("Firstname");
    rs.first();
    // call stored procedure
    catch (Exception e)
    e.getMessage();
    // populate the fields;
    private void populateFields()
    txtfirstname.setText(name);
    txtsurname.setText(surname);
    }

    ummm ok i think the logic in your code is kinda screwy...
    here is what your should be doing.
    create the gui.
    get the resultset...
    have code that looks like this for nextRecord...
    protected void displayNextRecord(){
      // we do not call next here because we already called it last time
      surname = rs.getString("Lastname");
      name = rs.getString("Firstname");
      populateFields();
      if(!rs.next(){
        btncontacts.setEnabled(false);// i'm not sure what btncontacts is but we want to disable next becuase there are no more records...
    // in your intitalization code you need to do this...
    // you old stuff ending with...
    ResultSet rs = cstatement.executeQuery();
    // the new stuff...
    if(rs.first()){
      displayNextRecord();
    }else{
      btncontacts.setEnabled(false);//the result set is empty
    }ok the real problem you are having is that you are trying to display one record at a time but you are scrolling
    through the entire result set using while(rs.next()... what you
    want to do is create the result set once and scroll through
    it one item at a time with your gui.
    the example method i have given displays the data from the current
    row in your gui. then it advances the result set forward one row if possible. this method assumes that the result set will always
    be positioned on a valid row thus the need for calling
    rs.first() before we originally call displayNextRecord()
    well i hope you find this helpful.

  • Anyone successfully set up connection pool in s1as with ms sql server 2000?

    As subject. Since I have seen a lot of posts about the NoSuchMethodException issue with various dbms providers, and the only "official information" I found thru different forums, google, different sun/javasoft sites and forums are this:
    http://sunsolve.sun.com/pub-cgi/retrieve.pl?doc=fsunone%2F8172&zone_32=NoSuchMethodException&wholewords=on
    Which is wonderfully vague and provide not-so-much useful information...
    As for the information and suggestion posted by other forum members, most or all of them have experience with setting up Oracle, DB2, mySQL, etc., not aimed for MS SQL Server 2000 (you may think, I am just asking for it running MS SQL server with Java... oh well, not my choice)
    I still haven't seen any positive feedbacks on how this exception was caused and how to resolve it. I have literally exhausted all leads on how to fix this issue, so right now I'm only interested to know whether anyone in the forum actually have a successful connection pool set up with MS SQL server 2000.
    My platform:
    w2k sp3
    SunOne app server, update1, JDK 1.4.1
    latest MS SQL 2000 JDBC driver
    This fails with the NoSuchMethodException error:
    try {
    InitialContext ic = new InitialContext();
    DataSource ds = (DataSource) ic.lookup("test_db");
    con = ds.getConnection();
    System.out.println( "con is created -> " + con );
    } catch (Exception ex) {
    System.out.println( "failed -> " + ex.getMessage() );
    This works just fine:
    try {
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
    con = DriverManager.getConnection("jdbc:microsoft:sqlserver://xxx.xxx.xxx.xxx:1433;DatabaseName=testdb;SelectMethod=cursor", "username", "password");
    System.out.println( "con is created -> " + con );
    } catch (Exception ex) {
    System.out.println( "failed is fucked -> " + ex.getMessage() );
    thanks,
    --kuan

    Hi,
    Thanks for pointing out that article, I did not find it previously. After following the directions in the artile and your advise, now dbping seems to be able to connect to SQL server.
    Thank you very much.
    --kuan                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Reg. Migrating data from SQL Server 2000 to Oracle

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

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

  • Upgrading SQL Server 7.0 to SQL Server 2000

    Hello,
    We want to upgrade Microsoft SQL Server 7.0 to SQL Server 2000 to implement Mobile scenario in CRM .If anyone has any utility  implementation guide or good information regarding it ,kindly please forward it to my mail id  [email protected]
    Thanks and Regards,
    Saumya Maheshwari

    Hello Saumya,
    I have sent you a Upgrade note. Hope that will be of help. However, I like to tell you that there is no migration procedure, per se. But you could follow the steps in the document and it should be a straight forward approach to 2000.
    In case,the authentification of the SQL Server 7.0 is set to "Windows NT only";While upgrading, the user chooses "The SQL Server system administrator login information (SQL Server authentication)" in the "Connect to Server" step and enters the password for the system administrator (sa).
    In the next step, the upgrade program checks if the user can log on to SQL Server. First, the Windows authentification of the logged on user is checked, which is successful. The 'sa' user and the relevant password are not verified. However, later in the upgrade process, the program tries to execute the scripts with the 'sa' user; this fails due to the "Windows NT only" authentification for SQL Server. The error ("Error running script: upgrade.sql(1)") message is written to the log file (upgrade.out) of the script (upgrade.sql):
    Login failed for user 'sa'. Reason: Not associated with a trusted SQL
    Solution - The upgrade program of SQL Server 2000 saves the settings of the upgrade in the registry. You can change the authentification mode there. Start the registry editor and go to the following entry in the left panel:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\Setup\Resume\
    Locate the "DO-NT" value in the right panel. Change this value from "0" (SQL Server authentification) to "1" (NT authentification). You can then restart the upgrade; the program now logs on to SQL Server via the Windows authenification and also executes the scripts under this authentification.
    Please award points in case you find the solution of help to you.
    Thanks
    Sumit

  • JSP, Sql Server 2000 Driver, classpath

    Hello All,
    I've got a really weird problem here.
    I want to connect a JSP page to a SQL Server 2000 database.
    I downloaded the SQL Server 2000 Driver for JDBC, and it seems to have installed fine.
    Next I write a regular java program to test the connection. It works fine, I get a "Connection Successful message". Here' the code:
    import java.sql.*;
    public class MSSqlServerJDBCTest {
        public static void main( String args[] ) {
            Connection conn;
            if ( args.length != 3 ) {
                System.out.println( "Usage: java MSSqlServerJDBCTest "
                    + "<server> <username> <password>" );
            } else {
                try {
                    String serverName = args[ 0 ];
                    String userName = args[ 1 ];
                    String password = args[ 2 ];
                    String connStr = "jdbc:microsoft:sqlserver://"
                        + serverName + ":1433";
                    Class.forName( "com.microsoft.jdbc.sqlserver.SQLServerDriver" );
                    conn = DriverManager.getConnection(
                        connStr, userName, password );
                    System.out.println( "Connection successful" );
                    conn.close();
                catch ( SQLException e ) {
                    System.err.println( "SQL Exception: " + e.getMessage() );
                catch( ClassNotFoundException e ) {
                    System.err.println( "SQL Server JDBC Driver Not Found!!" );
    }Now, when I include similar into a JavaBean, which is used in a JSP, I get a classNotFound exception:
    Exception occured: java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriverSo then I checked out the classpath a few times using echo %classpath%
    Everything seemed okay, the driver jars are in the path, but the JSP can't find the driver.
    I looked at the System.out file in the j2sdkee1.3.1\logs..... directory.
    The start of the file contains this stuff:
    Logging for J2EE Server Version: 1.3.1-b17 started at: Fri Nov 08 17:31:53 GMT 2002..
    Using the Java HotSpot(TM) Client VM and the version number 1.3.1_02 from Sun Microsystems Inc..
    VM is using the classpath: c:\j2sdkee1.3.1\lib\system\cloudscape.jar;c:\j2sdkee1.3.1\lib\system\tools.jar;c:\j2sdkee1.3.1\lib\cloudscape\RmiJdbc.jar;c:\j2sdkee1.3.1\lib\cloudscape\cloudclient.jar;c:\j2sdkee1.3.1\lib\classes;c:\j2sdkee1.3.1\classes;c:\j2sdkee1.3.1\lib\j2ee.jar;c:\j2sdkee1.3.1\lib\toolclasses;c:\j2sdkee1.3.1\lib\j2eetools.jar;c:\j2sdkee1.3.1\lib\locale;;c:\jdk1.3.1_02\lib\tools.jar;c:\j2sdkee1.3.1\lib\jhall.jar .
    J2EE Home Directory has been set to: c:\j2sdkee1.3.1.Look at the classpath - its different from when I do an echo %classpath% from the command line. Notice also it DOESN'T contain the driver jars that I need. This is probably why I can connect from a regular java program, but not from within J2EE.
    So where does this leave me? How can I change the classpath so that the changes are seen from within the J2EE container?
    Please help,
    Thanks in advance,
    Ruzer

    I modified the C:\j2sdkee1.3.1\bin\userconfig.bat file with the line:
    set J2EE_CLASSPATH=c:\sqldriver\msutil.jar;c:\sqldriver\mssqlserver.jar;c:\sqldriver\msbase.jarI had to change the location of the MS SQLServer 2000 driver cos J2EE.bat wouldn't start with the original location. I don't think it liked the spaces.
    Now I get a different exception:
    java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup)
         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:272)
         at java.security.AccessController.checkPermission(AccessController.java:399)
         at java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
         at com.sun.enterprise.J2EESecurityManager.checkAccess(J2EESecurityManager.java:46)
         at java.lang.ThreadGroup.checkAccess(ThreadGroup.java:279)
         at java.lang.Thread.init(Thread.java:265)
         at java.lang.Thread.(Thread.java:330)
         at com.microsoft.jdbc.base.BaseGarbageThread.(Unknown Source)
         at com.microsoft.jdbc.base.BaseGarbageThread.EnsureRunning(Unknown Source)
         at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
         at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
         at java.sql.DriverManager.getConnection(DriverManager.java:517)
         at java.sql.DriverManager.getConnection(DriverManager.java:177)
         at org.apache.jsp.databaseJSP$jsp._jspService(databaseJSP$jsp.java:70)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)not sure why!
    Ruadhan

  • Problems! MS SQL Server 2000 Driver for JDBC.

    In Dos-promt ill got only this message: com.microsoft.jdbc.sqlserver.SQLServerDriver
    What is wrong and is there someone that can help me out?
    I have installed Microsoft SQL Server 2000 Driver for JDBC and set the path like this in the system, advance, environment variable:
    .;D:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msbase.jar;D:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msutil.jar;D:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\mssqlserver.jar
    This is the source code i use to test the connection:
    import java.sql.*;
    public class Exercise2_1 {
    static String driver = ("com.microsoft.jdbc.sqlserver.SQLServerDriver");
    static String url= "jdbc:microsoft:MinTest;ah;modeerf";//sqlserver://H:1433;user=ah;password=modeerf";
    public static void main(String[] args) {
    try {
         Class.forName(driver).newInstance();
         System.out.println("Loaded driver");
         Connection conn = DriverManager.getConnection(url);
         System.out.println("Connected to database");
         conn.close();
         System.out.println("Closed connection");
    catch (Throwable e) { System.err.println(e.getMessage()); }

    You printed the error message associated with the exception but didn't print the type of the exception. com.microsoft.jdbc.sqlserver.SQLServerDriver was probably a ClassNotFoundException meaning that the VM couldn't find the jars.
    You say you put the jars in the path. They should actually be in the class path. Either set the CLASSPATH environment variable or pass it in to the Java VM via the -cp option.
    One more thing. Seeing as the paths that you installed the JDBC driver into contain spaces you may need to put quotes around the path names or use the MSDOS short names for those directories.
    Col

Maybe you are looking for