SQL server 2000 Procedure executing very slower in SQL 2012

 
Hi,
I've migrated my database from SQL 2000 to SQL 2012 using SQL2008 as intermediate. After migration, I found that one of my procedure is timing out from web site. When I run that procedure in Management Studio, it takes 42 seconds to display result. The same
query is executed in 3 seconds in SQL 2000 version (in first run it takes 10 seconds in SQL 2000 and second run it took 3 seconds only). But in SQL 2012 second and third time also it took 36 seconds. Can anyone explain why the query takes longer time instead
of less time after the upgrade? 
Our prod deployment date is approaching so any quick help is appreciated. 
Thanks in advance.

You need to compare the execution plans of queries running in 2000 and 2012 to pin point why there is a difference.
However, have you made sure that you have reindexed the indexes and updated the stats and you still see the difference? If not, please do that and test again.
Could you post the execution plans?
Also read this -
http://blogs.msdn.com/b/psssql/archive/2015/01/30/frequently-used-knobs-to-tune-a-busy-sql-server.aspx
Regards, Ashwin Menon My Blog - http:\\sqllearnings.com

Similar Messages

  • Content Server SQL Server 2000 Connection Error (very annoying)

    All of the diagnostic tests are failing because of SQLServer connection error (see below for diagnosticTests.jsp output).
    I checked database.content.properties file, all connection information is correct. The portal is running on the same SQL server. So I know that the SQL server is running just fine. I just could not isolate the problem. Can you help?------------------------------------------------------------------------
    Content Server DB Connection FAIL
    Settings JDBC Driver: com.plumtree.jdbc.sqlserver.SQLServerDriver JDBC URL: jdbc:plumtree:sqlserver://OXO-SRV03:1433;DatabaseName=ptcsdb DB Driver: com.plumtree.jdbc.sqlserver.SQLServerDriver DB Vendor: com.plumtree.content.rdbms.impl.VendorSqlServer User Name: ptcsdbuser Possible Resolution Check the Content DB JDBC Server, JDBC Port, JDBC User, JDBC Password, and JDBC Databse settings in the content.properties file. Error Details Exception Message: [plumtree][SQLServer JDBC Driver]Error establishing socket. Connection refused: connect com.plumtree.jdbc.base.BaseSQLException: [plumtree][SQLServer JDBC Driver]Error establishing socket. Connection refused: connect at com.plumtree.jdbc.base.BaseExceptions.createException(Unknown Source) at com.plumtree.jdbc.base.BaseExceptions.getException(Unknown Source) at com.plumtree.jdbc.sqlserver.tds.TDSConnection.(Unknown Source) at com.plumtree.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source) at com.plumtree.jdbc.base.BaseConnection.connect(Unknown Source) at com.plumtree.jdbc.base.BaseConnectionStartup.run(Unknown Source) Content DB Table CREATE and DELETE FAIL
    Settings Unable to get a connection to the content server DB Possible Resolution Check the Content DB JDBC Server, JDBC Port, JDBC User, JDBC Password, and JDBC Databse settings in the content.properties file. Also ensure that the Content Database Server is running. Error Details Exception Message: [plumtree][SQLServer JDBC Driver]Error establishing socket. Connection refused: connect com.plumtree.jdbc.base.BaseSQLException: [plumtree][SQLServer JDBC Driver]Error establishing socket. Connection refused: connect at com.plumtree.jdbc.base.BaseExceptions.createException(Unknown Source) at com.plumtree.jdbc.base.BaseExceptions.getException(Unknown Source) at com.plumtree.jdbc.sqlserver.tds.TDSConnection.(Unknown Source) at com.plumtree.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source) at com.plumtree.jdbc.base.BaseConnection.connect(Unknown Source) at com.plumtree.jdbc.base.BaseConnectionStartup.run(Unknown Source) Content DB Update and Query FAIL
    Settings Unable to get a connection to the Content DB Table Name: PCSSYSTEM Column Name: CREATEDVERSION Possible Resolution Check the Content DB JDBC Server, JDBC Port, JDBC User, JDBC Password, and JDBC Databse settings in the content.properties file. Also ensure that the Content Database Server is running. Error Details Exception Message: [plumtree][SQLServer JDBC Driver]Error establishing socket. Connection refused: connect com.plumtree.jdbc.base.BaseSQLException: [plumtree][SQLServer JDBC Driver]Error establishing socket. Connection refused: connect at com.plumtree.jdbc.base.BaseExceptions.createException(Unknown Source) at com.plumtree.jdbc.base.BaseExceptions.getException(Unknown Source) at com.plumtree.jdbc.sqlserver.tds.TDSConnection.(Unknown Source) at com.plumtree.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source) at com.plumtree.jdbc.base.BaseConnection.connect(Unknown Source) at com.plumtree.jdbc.base.BaseConnectionStartup.run(Unknown Source) Portal DB Connection FAIL
    Settings JDBC Driver: com.plumtree.jdbc.sqlserver.SQLServerDriver JDBC URL: jdbc:plumtree:sqlserver://OXO-SRV03:1433;DatabaseName=plumdb DB Driver: com.plumtree.jdbc.sqlserver.SQLServerDriver DB Vendor: com.plumtree.content.rdbms.impl.VendorSqlServer User Name: plumdbuser Possible Resolution Check the Portal DB JDBC Server, JDBC Port, JDBC User, JDBC Password, and JDBC Databse settings in the content.properties file. Error Details Exception Message: [plumtree][SQLServer JDBC Driver]Error establishing socket. Connection refused: connect com.plumtree.jdbc.base.BaseSQLException: [plumtree][SQLServer JDBC Driver]Error establishing socket. Connection refused: connect at com.plumtree.jdbc.base.BaseExceptions.createException(Unknown Source) at com.plumtree.jdbc.base.BaseExceptions.getException(Unknown Source) at com.plumtree.jdbc.sqlserver.tds.TDSConnection.(Unknown Source) at com.plumtree.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source) at com.plumtree.jdbc.base.BaseConnection.connect(Unknown Source) at com.plumtree.jdbc.base.BaseConnectionStartup.run(Unknown Source) Portal DB Query FAIL
    Settings Unable to get a connection to the Portal DB Table Name: PTUSERS Column Name: OWNERID Possible Resolution Check the Portal DB JDBC Server, JDBC Port, JDBC User, JDBC Password, and JDBC Databse settings in the content.properties file. Also ensure that the Portal Database Server is running. Error Details Exception Message: [plumtree][SQLServer JDBC Driver]Error establishing socket. Connection refused: connect com.plumtree.jdbc.base.BaseSQLException: [plumtree][SQLServer JDBC Driver]Error establishing socket. Connection refused: connect at com.plumtree.jdbc.base.BaseExceptions.createException(Unknown Source) at com.plumtree.jdbc.base.BaseExceptions.getException(Unknown Source) at com.plumtree.jdbc.sqlserver.tds.TDSConnection.(Unknown Source) at com.plumtree.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source) at com.plumtree.jdbc.base.BaseConnection.connect(Unknown Source) at com.plumtree.jdbc.base.BaseConnectionStartup.run(Unknown Source) Document Repository OK Workflow Server FAIL
    Settings Workflow Server Base URL: http://OXO-SRV03:7087 Content Server URL: http://OXO-SRV03:7777/ptcs Workflow Server Portlet URL: http://OXO-SRV03:7087/workflow Possible Resolution Verify that the Plumtree Workflow service has been started. Also, check the Workflow Serverdiagnostics for more detailed information. Error Details Exception Message: Cannot access Burlap service at [http://localhost:7087/wfserver/caucho/workflowsvc-burlap]; nested exception is com.caucho.burlap.client.BurlapProtocolException: org.springframework.remoting.RemoteAccessException: Cannot access Burlap service at [http://localhost:7087/wfserver/caucho/workflowsvc-burlap]; nested exception is com.caucho.burlap.client.BurlapProtocolException: com.caucho.burlap.client.BurlapProtocolException: at com.caucho.burlap.client.BurlapProxy.invoke(BurlapProxy.java:171) at $Proxy2.connectPortalUser(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.springframework.remoting.caucho.BurlapClientInterceptor.invoke

    Don't know if anyone is still having problems with this, but just in case...
    I was getting a similar error. I had an Event Viewer record (It wasn't a Warning or an Error, just an Information) reading:You are running a version of Microsoft SQL Server 2000 or Microsoft SQL Server 2000 Desktop Engine (also called MSDE) that has known security vulnerabilities when used in conjunction with this version of Windows. To reduce your computer's vulnerability to certain virus attacks, the TCP/IP and UDP network ports of Microsoft SQL Server 2000, MSDE, or both have been disabled. To enable these ports, you must install a patch, or the most recent service pack for Microsoft SQL Server 2000 or MSDE from http://www.microsoft.com/sql/downloads/default.asp
    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
    I installed SQL SP4 and it corrected the problem

  • SQL Server 2008 R2 Setup Very Slow

    Hi,
    We have a multi-node SQL Server 2008 R2 Failover Cluster.
     I've noticed that the SQL Server 2008 R2 Setup is extremely slow and that it appears to only be using 1 of the 128 "CPUs" (i.e. in Task Manager).
    We use this for creating new cluster groups and alike.
    Is this tool only single threaded and is there a way to increase the performance? Our CPUs are 2.something GHz, we have 512GB of RAM and fast local disks.
    Thanks

    Hello,
    What happen if you slipstream the SQL Server 2008 R2 with the latest SQL Server 2008 R2 service pack? Maybe SQL Server setup does better after the slipstream process.
    http://blogs.msdn.com/b/petersad/archive/2011/07/13/how-to-slipstream-sql-server-2008-r2-and-a-sql-server-2008-r2-service-pack-1-sp1.aspx
    http://msdn.microsoft.com/en-us/library/dd638062(v=sql.105).aspx (Slipstream a SQL Server 2008 R2
    Update)
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

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

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

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

  • 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

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

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

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

  • Can I create a linked server to this ODBC datasource (odbc driver by Progress OpenEdge) on Sql Server 2000 ?

    I installed the Progress OpenEdge ODBC driver for 32 bit database on my win7 workstation -- I used odbcad32.exe located at C:\Windows\SysWOW64 to configure the driver for 32 bit applications -- per the screen Shots here and I am able to connect to the datasource
    from Excel Query.
    I am able to connect to this ODBC datasource from Excel Query and see all the tables -- as in the screen shot.  I can also access this datasource from a C# app.
    Question:  if I can connect to this ODBC datasource from Excel -- does this mean I should be able to create a linked server to it?  I tried the following from SSMS Linked Serber Wizard on a Sql Server 2000 (I have used the Linked server wizard
    successfully in the past as well as linking with Tsql SPs).  This will at least create a mock Linked server on the Sql server 2000 (this does not work on sql server 2008 -- I tried), but when I try to view the catalogs -- I get the error in the screen
    shot below.  If the answer to my question is "YES" yes I should be able to create a linked server to this ODBC datasource what is the way to do this?  I added the UserID and Password in the Security tab, but I did not see where to add the
    port (4000).  What do I enter for the Product Name?  Can it be arbitrary or does it have to be something specific?
    Rich P

    Yes, you should be able to set up this as a linked server - from a 32-bit instance of SQL Server. That is, you can't use a 32-bit driver on 64-bit SQL Server. Now, since you have SQL 2000, I assume that this is a 32-bit instance. (But there was a 64-bit
    version for Itanium of SQL 2000.)
    For the Provider string, I would guess that you should enter something like
    Driver={Progress 11.3 OpenEdge Driver}
    just like you do in your application code.
    Basically, in the provider string, you specify your connection string, except that you take out the provider name, which is a separate parameter to sp_addlinkedserver. Since I know nothing about Progress, I can't give any specific details.
    The error message you get is somewhat puzzling, since this refers to SQLOLEDB which is the provider to access an SQL Server instance.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • SQL Server 2000 64-bit: x64-bit edition vs IA64 Itanium processor ?

    Hi Forum,
    I do need SQL Server 2000 64-bit. So, I have used our premium MSDN subscription, and I have downloaded:
    SQL Server 2000 Enterprise Edition - 64-bit (English)
    SQL Server 2000 Developer Edition - 64-bit (English)
    However, Our DBA specialist informed me that both packages are for the IA64 Itanium processor, and what we really need is for the
    x64-bit edition.
    Could you please help me out ?

    Hello,
    To my knowledge 64-bit version of SQL Server runs on Itanium and Tandem only. You have to install SQL Server 2000 32-bit on a 64-bit
    Windows operating system.
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • SQL Server 2000\2005 compatibility with Active Directory 2012

    Hi All,
    We are currently using Active Directory 2003 and will be upgrading to AD 2012.  I'm trying to determine if there is any known compatibility issues when running older versions of SQL Server (2000 and 2005) when upgrading to AD 2012.   I've
    read forums from when others went from AD 2003 to AD 2008 and didn't experience any issues.  We have the newer versions of SQL but I'm not too concerned about these.  Any advice would be greatly appreciated?   Has anyone been through
    this process. 
    Thanks,

    Hi CraftsmanRobert,
    Based on my understanding, you used Active Directory 2003, then it would be upgraded to Active Directory 2012. You wanted to run older versions of SQL Server (2000 and 2005) with Active Directory 2012.
    Firstly, there can be a compatibility problem when run older version with Active Directory 2012. SQL Server 2005 (the release version and service packs) and earlier versions of SQL Server are not supported on Windows Server 2012 R2, Windows Server 2012,
    Windows 8.1, or Windows 8. For more information, please refer to this article: How to use SQL Server in Windows and Windows Server environments (http://support.microsoft.com/kb/2681562/en-us).
    Besides, Microsoft doesn’t provide assisted support for SQL Server 2000 and SQL Server 2005 already. Please upgrade the existing instance of SQL Server 2000 and SQL Server 2005 to a new version like SQL Server 2012. You can download SQL Server 2012 Express
    from this link:
    http://www.microsoft.com/en-us/download/details.aspx?id=29062.
    Best regards,
    Qiuyun Yu

  • Executing interface for a SQL Server 2000 target

    Hi All,
    I am trying doing some initial experimentation with ODI, in executing its interface in compiling a SQL Server 2000 target from the same source.
    I designed an interface with Source and target having only one column, inserted some sample data for the source data store and left the target empty. After reversing the source and target data models, created an interface and inserted source and target datastores and active mapped the existing column. In the flow tab, I am using LKM MSSQL to MSSQL(Linked Servers) and IKM MSSQL Incremental Update and rectified Flow Control to 'No' as I dont have any keys in my structure. I am using CKM SQL, though no necessity of it, and also tried with LKM MSSQL to MSSQL(BCP), but could not correct the error when executing this interface.
    It is not indicating any errors in diagram. In the Operator this is what is the message:
    1038 : S0003 : com.microsoft.sqlserver.jdbc.SQLServerException: Cannot use empty object or column names. Use a single space if necessary.
    com.microsoft.sqlserver.jdbc.SQLServerException: Cannot use empty object or column names. Use a single space if necessary.
         at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(Unknown Source)
         at com.microsoft.sqlserver.jdbc.SQLServerStatement.getNextResult(Unknown Source)
         at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.doExecutePreparedStatement(Unknown Source)
         at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement$PrepStmtExecCmd.doExecute(Unknown Source)
         at com.microsoft.sqlserver.jdbc.TDSCommand.execute(Unknown Source)
         at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(Unknown Source)
         at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeCommand(Unknown Source)
         at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeStatement(Unknown Source)
         at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.executeUpdate(Unknown Source)
         at com.sunopsis.sql.SnpsQuery.executeUpdate(SnpsQuery.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execStdOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlC.treatTaskTrt(SnpSessTaskSqlC.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.h.y(h.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)
    Moreover in the command prompt it is indicating SQL Server Exception: Cannot invoke a rollback operation when the autocommit mode is set to true.
    Please help me out in executing this interface, all help is greatly appreciated.
    Many Thanks!!!

    Hi Rathish,
    In the query it is indicating that 'It is creating view on target'. This is the step that is causing trouble.
    Query description is :
    create view dbo.C$_0City_Trg
    as
    select      *
    from     [].odi_work.dbo.City_Trg
    Thanks in Advance!!!

  • How to build a report in web Intelligence using Store procedure under Microsoft SQL Server 2000

    Post Author: ltkin
    CA Forum: WebIntelligence Reporting
    Hi,
    How to build a report in web Intelligence using Store procedure under Microsoft SQL Server 2000 ?
    Regards,

    Hi ltkin,
    Unfortunately, it is not possible in Xir2 to create Webi reports from stored procedures.
    Webi reports can only be created from Universe. So in Business Objects XIR3 we can create a special universe that enables Web Intelligence user's to access stored procedures residing in the database. This is the only way that Web Intelligence user's can access stored procedures.
    Please let me know if the above information helps.
    Regards,
    Pavan

  • While executing a query in SQL Server 2000

    Hi,
    I am connecting to an SQL Server 2000 using class.forName method...
    and i am reading the data from the queue continuously and execute an INSERT statement to a table..
    but the DBAs have a trigger to perform a set of actions when a new row is inserted into that table...
    once i insert a row, my program waits until those set of actions have been performed instead of just trying to read from the queue and insert another row into the table...i dont want to wait for anything...i just want to insert the data, go back to read the queue and insert more..
    is there any setting that i have to make for this to happen..
    tia...

    hari786 wrote:
    Hi,
    I am connecting to an SQL Server 2000 using class.forName method...forName() loads a driver - it does not connect to anything (regardless of database.)
    and i am reading the data from the queue continuously and execute an INSERT statement to a table..
    but the DBAs have a trigger to perform a set of actions when a new row is inserted into that table...
    once i insert a row, my program waits until those set of actions have been performed instead of just trying to read from the queue and insert another row into the table...i dont want to wait for anything...i just want to insert the data, go back to read the queue and insert more..You are out of luck then.
    An insert, from the databases point of view is not complete until it is complete. Which means running the triggers.
    So there is no way that any jdbc driver can stop that.
    Perhaps it might help to describe your actual problem which might lead to the suggestion of other solutions.

  • WL 6.0 using MS SQL Server 2000 - Transaction timeout when invoking stored procedure

    Hi,
    Facing a problem on WL6.0. We are connecting to MS SQL server 2000 using a stateless
    session bean
    using container managed transaction. The bean method does a few updates to the
    database and also
    calls a stored procedure that generates primary keys many times. This stored procedure
    (SP) is running
    in a transaction of its own since it has to increment a counter, update the database
    and then return the
    primary key.The primary key generator SP is working fine and does not lock the
    database in many bean
    methods.
    In some methods we find that the primary key generator SP has locked the database.
    We
    then see a lock on the database created due to this SP in the MS SQL client. The
    execution goes
    into the SP and gets stuck there till the bean's transaction times out. The error
    message given is
    ...... .. Exception Message - The transaction is no longer active
    (status = Rolling Back. [Reason = weblogic.transaction.internal.TimedOutExcepti
    on: Transaction timed out after 31seconds
    tx = transaction=(IdHash=1746718,Name = [EJB StructMgrBeanImpl.addStructure()],X
    id=10908:51e67e9d7185816a,Status=Active,numRepliesOwedMe=0,numRepliesOwedOthers=
    0,seconds since begin=31,seconds left=30,activeThread=Thread[ExecuteThread: '7'
    for queue: 'default',5,Thread Group for Queue: 'default'],ServerResourceInfo[web
    logic.jdbc.jts.Connection]=(state=started,assigned=none),SCInfo[myserver]=(state
    =active),properties=({weblogic.transaction.name=[EJB StructMgrBeanImpl.addStruct
    ure()], weblogic.jdbc=t3://10.200.15.136:7001}))]). No further JDBC access is
    al
    lowed within this transaction.
    What could be the potential problems in the method's code/SP that could be causing
    the timeout?
    Anyone faced similar problems?
    Thanks in advance,
    Sreeja

    Hi,
    Facing a problem on WL6.0. We are connecting to MS SQL server 2000 using a stateless
    session bean
    using container managed transaction. The bean method does a few updates to the
    database and also
    calls a stored procedure that generates primary keys many times. This stored procedure
    (SP) is running
    in a transaction of its own since it has to increment a counter, update the database
    and then return the
    primary key.The primary key generator SP is working fine and does not lock the
    database in many bean
    methods.
    In some methods we find that the primary key generator SP has locked the database.
    We
    then see a lock on the database created due to this SP in the MS SQL client. The
    execution goes
    into the SP and gets stuck there till the bean's transaction times out. The error
    message given is
    ...... .. Exception Message - The transaction is no longer active
    (status = Rolling Back. [Reason = weblogic.transaction.internal.TimedOutExcepti
    on: Transaction timed out after 31seconds
    tx = transaction=(IdHash=1746718,Name = [EJB StructMgrBeanImpl.addStructure()],X
    id=10908:51e67e9d7185816a,Status=Active,numRepliesOwedMe=0,numRepliesOwedOthers=
    0,seconds since begin=31,seconds left=30,activeThread=Thread[ExecuteThread: '7'
    for queue: 'default',5,Thread Group for Queue: 'default'],ServerResourceInfo[web
    logic.jdbc.jts.Connection]=(state=started,assigned=none),SCInfo[myserver]=(state
    =active),properties=({weblogic.transaction.name=[EJB StructMgrBeanImpl.addStruct
    ure()], weblogic.jdbc=t3://10.200.15.136:7001}))]). No further JDBC access is
    al
    lowed within this transaction.
    What could be the potential problems in the method's code/SP that could be causing
    the timeout?
    Anyone faced similar problems?
    Thanks in advance,
    Sreeja

  • Can I pass an array as an input parameter for a stored procedure on SQL Server 2000

    I am trying to pass an array to a stored procedure residing on my SQL Server 2000 database server. Is this even possible? If it is possible, what is the syntax for this?
    Any help would be greatly appreciated.
    Thanks

    I have passed arrays to and from a database using SQL and ActiveX, including to and from stored procedures, but I cannot recall the precise method used to do so. If memory serves, everything is in the form of a string. You need to do a lot of parsing and 'unparsing' to get this data into your stored procedure.
    You are left with a couple of options to get your data to the stored procedure. I recommend using SQL in LabVIEW wherever possible as it saves the amount of external code calls (and believe me, calling ActiveX procedures developed by someone else in Visual Basic is NOT much fun at all...). You can either send the array and other data to the stored procedure (you will find the syntax in the SQL references in LabVIEW help under SQL), or you can send
    the array to the database, and have the database then act upon the array.
    I strongly recommend making routines (subVIs) to handle these operations.
    Sorry I don't have the syntax, I don't have SQL installed on this machine. If you can't find the syntax in the help, please post here again.
    -Mike Du'Lyea

  • Which Driver for MS SQL-Server 2000

    Hello,
    i need to access a MS SQL-Server 2000 and want to ask which driver you think is the best one for this problem.
    I am not a big fan of using beta-Software, and i do not need the newest state-of-the-art features. Right now i also do not need Connection-Pooling.
    Only a few SQL SELECT/UPDATE-Statements nothing more.
    But maybe in not far away future, Conn-Pooling and Procedure-Calls could be interesting. And i think Type 3 or 4 would be the best decision.
    The Software will run on NT, but i do not want to use the JDBC/ODBC-Bridge, because it is so unbelievable slow.
    I am interested in WHICH DRIVER you USE, AND especially which drivers you DO NOT USE ANYMORE, and why.
    It would be great, if anyone could help me, finding the best solution.
    P.S.: The price of the driver: It would be good, when it is for free. But if you know a good commercial driver i am also interested in.
    P.P.S: Yes, i have searched for drivers under http://servlet.java.sun.com/products/jdbc/drivers. But there are 37 different Type 3/4 drivers.

    You can try the jtds project .Search for it in www.sourceforge.net. It is derived from FreeTDS JDBC driver. Both of them are Type 4 JDBC drivers. So far I have tried both of them a few years ago. And jtds is more updated (during those time, not sure what the status is right now)
    Or, you can get Microsofts own JDBC driver

Maybe you are looking for