SQL database...busy....what's it doing?!?

Today a R/3 sap system is very low in performance. We have checked on the TASK MANAGER and we have seen that it's due to a high use of CPU by SQL DATABASE. So....cause we don't have activate any strange activity on it we would like to monitor which activity is running on it?how can we see that?
thanx very much
Sonya

Hello,
you can use the SQL Profiler to see all activity running on the SQL Server. The Profiler will capture any single command issued to the SQL Server, but might have a performance impact.
Furthermore can you check the activity with the activity monitor (SQL 2005) or with the Enterprise Manager -> Management -> Current Activity -> Process Info. There you will see all connections made to the SQL Server and what it is currently doing (doubleklick on it).
Best regards
  Clas

Similar Messages

  • Advise on SQL database process

    Dear all,
    We have build our own product CMS platform configuration which is running on SQL server and CMS web site link to it.
    We will lauch our product soon but need to identify the correct hosting plan for not having any further issue.
    For exemple for now all is hosted in our company azure account with a Standard Basic 5 DTU's.
    When we go in production we can expect some connection and big amount of data on our database.
    My question are as follow :
    - Does using a single database storage for my potential Customers would be enough ?
    - How should I plan backup efficiently ?
    - Should I plan a safety replication process somewhere in azure or duplicate the storage in order to switch in case of lack of place ?
    My concern is to avoid my database beeing full while customers increase
    Thanks for your advise and help
    regards
    serge

    Hi Solatys,
    - If I select by default STANDARD Azure database, which size, DTU, etc should I select ? 
    For this question, you may reference the below link. You can scale your Azure database performance based on the real-time requirement.
    Azure
    SQL Database introduces new near real-time performance metrics 
    - If for instance the initial URL of the web portal connected to SQL server1 has a trouble, how can I switch users transparently to a second replicated server in order that user will notify anything ?
    Azure SQL Database has a built-in high availability subsystem that protects your database from failures of individual servers and devices in a datacenter. Azure SQL
    Database maintains multiple copies of all data in different physical nodes located across fully independent physical sub-systems to mitigate outages due to failures of individual server components, such as hard drives, network interface adapters, or even entire
    servers. At any one time, three database replicas are running—one primary replica and two or more
    secondary replicas. Data is written to the primary and one secondary replica using a quorum based commit scheme before the transaction is considered committed.
    If the hardware fails on the primary replica, Azure SQL Database detects the failure and fails over to the secondary replica. In case of a physical loss of a replica, a new replica is automatically created.
    So there are always at minimum two physical, transactionally consistent copies of your data in the datacenter.
    Azure SQL Database Business Continuity
    - IF I select the Maximum size of the database, what will happen in case it will be nearly full and need to provide more space ?
    Insert and update transactions that exceed the upper limit will be rejected because the database will be in read-only mode. The maximum size has been gained from 50GB to 500GB as of now, you may have no concern about it. You can
    set a monitoring alertto
    notify the storage utilization and CPU percentage etc.
    If you have any question, feel free to let me know.
    Eric Zhang
    TechNet Community Support

  • What am I doing wrong? (Can't find table)

    Hello,
    I can run the following query perfectly in SQL*Plus: SELECT * FROM ETS.MYTABLE
    But when I run the exact same query in my java code using the following statement:
    stmt.executeQuery( "SELECT * FROM ETS.MYTABLE" )
    I get the following exception: java.sql.SQLException: ORA-00942: table or view does not exist
    Both the table, as well as the schema ETS, exist and this is validated when the query is run in SQL*Plus.
    What am I doing wrong? Please help!!
    Regards
    Nadeem

    Are you connecting as the same user in both SQL*Plus and your JDBC app?
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Performance counters for SQL database

    I have this need to carry out a performance test on our SQL database. What are the counters that I need to check and are there any tools that would assist me on this?
    mayooran99

    Hello,
    Please refer to the following series of articles.
    n  Beginners
    http://blogs.msdn.com/b/john_daskalakis/archive/2013/10/07/how-to-troubleshoot-sql-server-performance-issues-with-simple-tools-part-1-how-to-collect-a-detailed-perfmon-trace.aspx
    http://blogs.msdn.com/b/john_daskalakis/archive/2013/10/14/how-to-troubleshoot-sql-server-performance-issues-with-simple-tools-part-2-how-to-analyze-the-perfmon-trace-and-detect-io-bottlenecks.aspx
    http://blogs.msdn.com/b/john_daskalakis/archive/2013/10/21/how-to-troubleshoot-sql-server-performance-issues-with-simple-tools-part-2-how-to-analyze-the-perfmon-trace-and-detect-sql-server-performance-issues.aspx
    http://blogs.msdn.com/b/john_daskalakis/archive/2013/10/30/how-to-troubleshoot-sql-server-performance-issues-with-simple-tools-part-3-the-profiler.aspx

    n  Advanced
    http://blogs.msdn.com/b/john_daskalakis/archive/2013/11/04/specialized-performance-troubleshooting-part-1-how-to-troubleshoot-forwarded-records.aspx
    http://blogs.msdn.com/b/john_daskalakis/archive/2013/11/11/specialized-performance-troubleshooting-part-2-how-to-troubleshoot-memory-problems-in-sql-server.aspx
    http://blogs.msdn.com/b/john_daskalakis/archive/2013/11/18/specialized-performance-troubleshooting-part-3-how-to-identify-storage-issues-at-a-sql-server-box.aspx
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Attempting to test Function with Bind Variable --- What am I doing wrong?

    When I try to test a function (ComputeFreight) with a bind variable, I get an error, returned.....
    "SQL> EXEC :ComputeFreight :=V_ComputeFreight;
    BEGIN :ComputeFreight :=V_ComputeFreight; END;
    ERROR at line 1:
    ORA-06550: line 1, column 25:
    PLS-00201: identifier 'V_COMPUTEFREIGHT' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored"
    What am I doing wrong?
    Below is my code with description ----
    create or replace function "ComputeFreight"(p_ORDERNUMBER IN C_ORDER.ORDERNUMBER%TYPE) -- Passing Ordernumber into Function
    return NUMBER
    is
    -- Declaring Variables
    v_ComputeFreight NUMBER(10,2);
    v_low number (10,2) := 0.05;
    v_high number (10,2) := 0.07;
    v_SUBTOTAL NUMBER(10,2);
    begin
    -- Computing order subtotal (Retrieving Item cost and qty from two different tables, multiplying and adding total order cost)
    SELECT SUM(O.QUANTITY * I.ITEMPRICE) INTO v_subtotal
    FROM ORDER_LINE O JOIN INV_ITEM I
         ON (O.ITEMNUMBER = I.ITEMNUMBER)
    WHERE O.ORDERNUMBER = P_ORDERNUMBER;
    -- Testing to see which freight charge rate to use
    IF
    v_subtotal < 300.00 THEN
    v_computefreight := v_subtotal * v_low;
    ELSE
    v_computefreight := v_subtotal * v_high;
    END IF;
    -- Returning Freight Charge
    RETURN v_ComputeFreight;
    end "ComputeFreight";
    -----------------------------------

    You have made at least 2 errors.
    The first one is the name of your function:
    create or replace function "ComputeFreight" (You use double quotas and the mixed case in the function name - it means you
    make your function name case-sensitive. In the call of your function you have to use double-quoted form "ComputeFreight", nothing else.
    If you your function name has to be case-insensitive, don't use double quotas or
    use upper-case form: "COMPUTEFREIGHT".
    The next mistake is how your call you function. You have to do the following:
    var V_ComputeFreight number
    EXEC :V_ComputeFreight := <your function name>
    V_ComputeFreight is a bind variable and you have to read more about this.
    Rgds.
    P.S. and as Dave fairly remarked above you have to pass the argument into the function.
    Message was edited by:
    dnikiforov

  • Check for duplicate record in SQL database before doing INSERT

    Hey guys,
           This is part powershell app doing a SQL insert. BUt my question really relates to the SQL insert. I need to do a check of the database PRIOR to doing the insert to check for duplicate records and if it exists then that record needs
    to be overwritten. I'm not sure how to accomplish this task. My back end is a SQL 2000 Server. I'm piping the data into my insert statement from a powershell FileSystemWatcher app. In my scenario here if the file dumped into a directory starts with I it gets
    written to a SQL database otherwise it gets written to an Access Table. I know silly, but thats the environment im in. haha.
    Any help is appreciated.
    Thanks in Advance
    Rich T.
    #### DEFINE WATCH FOLDERS AND DEFAULT FILE EXTENSION TO WATCH FOR ####
                $cofa_folder = '\\cpsfs001\Data_pvs\TestCofA'
                $bulk_folder = '\\cpsfs001\PVS\Subsidiary\Nolwood\McWood\POD'
                $filter = '*.tif'
                $cofa = New-Object IO.FileSystemWatcher $cofa_folder, $filter -Property @{ IncludeSubdirectories = $false; EnableRaisingEvents= $true; NotifyFilter = [IO.NotifyFilters]'FileName, LastWrite' }
                $bulk = New-Object IO.FileSystemWatcher $bulk_folder, $filter -Property @{ IncludeSubdirectories = $false; EnableRaisingEvents= $true; NotifyFilter = [IO.NotifyFilters]'FileName, LastWrite' }
    #### CERTIFICATE OF ANALYSIS AND PACKAGE SHIPPER PROCESSING ####
                Register-ObjectEvent $cofa Created -SourceIdentifier COFA/PACKAGE -Action {
           $name = $Event.SourceEventArgs.Name
           $changeType = $Event.SourceEventArgs.ChangeType
           $timeStamp = $Event.TimeGenerated
    #### CERTIFICATE OF ANALYSIS PROCESS BEGINS ####
                $test=$name.StartsWith("I")
         if ($test -eq $true) {
                $pos = $name.IndexOf(".")
           $left=$name.substring(0,$pos)
           $pos = $left.IndexOf("L")
           $tempItem=$left.substring(0,$pos)
           $lot = $left.Substring($pos + 1)
           $item=$tempItem.Substring(1)
                Write-Host "in_item_key $item in_lot_key $lot imgfilename $name in_cofa_crtdt $timestamp"  -fore green
                Out-File -FilePath c:\OutputLogs\CofA.csv -Append -InputObject "in_item_key $item in_lot_key $lot imgfilename $name in_cofa_crtdt $timestamp"
                start-sleep -s 5
                $conn = New-Object System.Data.SqlClient.SqlConnection("Data Source=PVSNTDB33; Initial Catalog=adagecopy_daily; Integrated Security=TRUE")
                $conn.Open()
                $insert_stmt = "INSERT INTO in_cofa_pvs (in_item_key, in_lot_key, imgfileName, in_cofa_crtdt) VALUES ('$item','$lot','$name','$timestamp')"
                $cmd = $conn.CreateCommand()
                $cmd.CommandText = $insert_stmt
                $cmd.ExecuteNonQuery()
                $conn.Close()
    #### PACKAGE SHIPPER PROCESS BEGINS ####
              elseif ($test -eq $false) {
                $pos = $name.IndexOf(".")
           $left=$name.substring(0,$pos)
           $pos = $left.IndexOf("O")
           $tempItem=$left.substring(0,$pos)
           $order = $left.Substring($pos + 1)
           $shipid=$tempItem.Substring(1)
                Write-Host "so_hdr_key $order so_ship_key $shipid imgfilename $name in_cofa_crtdt $timestamp"  -fore green
                Out-File -FilePath c:\OutputLogs\PackageShipper.csv -Append -InputObject "so_hdr_key $order so_ship_key $shipid imgfilename $name in_cofa_crtdt $timestamp"
    Rich Thompson

    Hi
    Since SQL Server 2000 has been out of support, I recommend you to upgrade the SQL Server 2000 to a higher version, such as SQL Server 2005 or SQL Server 2008.
    According to your description, you can try the following methods to check duplicate record in SQL Server.
    1. You can use
    RAISERROR to check the duplicate record, if exists then RAISERROR unless insert accordingly, code block is given below:
    IF EXISTS (SELECT 1 FROM TableName AS t
    WHERE t.Column1 = @ Column1
    AND t.Column2 = @ Column2)
    BEGIN
    RAISERROR(‘Duplicate records’,18,1)
    END
    ELSE
    BEGIN
    INSERT INTO TableName (Column1, Column2, Column3)
    SELECT @ Column1, @ Column2, @ Column3
    END
    2. Also you can create UNIQUE INDEX or UNIQUE CONSTRAINT on the column of a table, when you try to INSERT a value that conflicts with the INDEX/CONSTRAINT, an exception will be thrown. 
    Add the unique index:
    CREATE UNIQUE INDEX Unique_Index_name ON TableName(ColumnName)
    Add the unique constraint:
    ALTER TABLE TableName
    ADD CONSTRAINT Unique_Contraint_Name
    UNIQUE (ColumnName)
    Thanks
    Lydia Zhang

  • Database Initialiser does not create azure sql database

    I have a WPF application In the OnStartup in the app.cs I set the Database initializer and forced the context the initialise my database:
    Debug.WriteLine("Setting Initializer");
    Database.SetInitializer<MyContext>(new MyDatabaseInitializer());
    Debug.WriteLine("Declaring new context");
    using (MyContext c = new MyContext("MyContext"))
    Debug.WriteLine("Force the initialization");
    c.Database.Initialize(true);
    Debug.WriteLine("Done!");
    I created a sql database in the management portal of the azure.
    Copied the connectionstring it provided for ADO.net.
    But my database is not created.
    I also added a firewall rule but nothing happens. I Have no clue what to do.
    Can anybody please help me with this?
    If you need more information please ask i really have to get this sorted out.
    Thanks in advance!

    Hi Turkstra,
    I have tried to use EF to create Azure SQL database, it works as expect, the database 'jambordbcreate' appear in my SQL Azure, below is the detailed codes.
    using System;
    using System.Collections.Generic;
    using System.Data.Entity;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    namespace CodeFirst
    class Program
    static void Main(string[] args)
    Database.SetInitializer(
    new CreateDatabaseIfNotExists<SchContext>());
    using (var db = new SchContext("Server=tcp:****.database.windows.net,1433;Database=jambordbcreate;User ID=vote@***;Password=***;Trusted_Connection=False;Encrypt=True;Connection Timeout=30"))
    string name = "jambor";
    var student=new Student(){Name=name, ID="1a"};
    db.Students.Add(student);
    db.SaveChanges();
    db.Database.Initialize(true);
    public class Student
    public string ID { get; set; }
    public string Name { get; set; }
    public string age { get; set; }
    public string sex { get; set; }
    public class School
    public string ID { get; set; }
    public string Name { get; set; }
    public virtual List<Student> Students { get; set; }
    public class SchContext : DbContext
    public SchContext(string connection):base(connection)
    public DbSet<Student> Students { get; set; }
    public DbSet<School> Schools { get; set; }
    I suggest  you check your SQL connection, after run your code, please refresh azure portal to see whether your database is exist. Hope this give you some help.
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • What is possible in oracle9i which is not possible in sql database

    Dear friends ,
    pls explain me the advantages of oracle9i over sql
    thanks
    senthil

    OK, I'm starting to understand what you are doing. An InDesign Spread can contain up to 10 pages (if you turn off page shuffling and drag them together), and I think with the page tool you can even drag pages together head to foot, though I hate the Page tool and never use it myself.
    I presume these lines must be more or less page boundaries. If printing at home on a desktop printer, you need to allow for the non-imaging area around the edge of the printed page, so for a letter size page you could set up the pages as non-facing at 7.75 x 10.125 with a bleed allowance of .375 all around, then drag them together and place the art across the spread with drawn cutlines on the page borders. Export to PDF with the bleed and you should be golden.

  • I have a macbook pro. i have a photosmart 7510. we just bought a new windows tower and the printer works wireless for us, but now the mac does not print anymore wirelessly. i keep getting a message Network host 'HPE93F2A.local.' is busy. what can i do to

    I have a macbook pro. i have a photosmart 7510. we just bought a new windows tower and the printer works wireless for us, but now the mac does not print anymore wirelessly. i keep getting a message Network host 'HPE93F2A.local.' is busy. what can i do to

    it is a windows 8

  • What's a better connection to an SQL database? ODBC or OLE DB

    NEw user here, but what would be a preferred way of connecting to my SQL database?  So far I have option of using ODBC (RDO) connection or OLE DB(ADO) connection. I'm not sure what the differences or when to use one or the other.
    Thanks

    I like OLE DB for the simply because it's "portable". With OLE DB the connection info is stored in the report. With ODBC, the report is using a system dsn connection. It means that if you want to send it to another user / computer, you also have to make sure the other computer has the same ODBC connection.
    In terms of performance... I've used both and have never seen a difference.
    Jason

  • What i'm doing wrong in this small pl/sql statement ?

    Hi All,
    I'm happy to write in this forum for the first time. Can anyone help me to show What i'm doing wrong in this small statement :
    create or replace procedure augmente_salaire(p1 IN employees.employee_id%type, p2 IN number(3))
    is
    update employees set salary = salary + salary*p2/100 where employee_id=p1;
    end  augmente_salaire;
    begin
    augmente_salaire(1001,20);
    end;
    I'm using pl/sql developer.
    Any help would be much appreciated.
    Best Regards.

    Welcome to the forum!!
    Point 1:
    > create or replace procedure augmente_salaire(p1 IN employees.employee_id%type, p2 IN number(3))
    The code in red is the one causing trouble. You cant specify LENGTH for the data type in parameter of a Procedure/Function. Oracle will define it based on the passing value.
    So your code must be just.
    create or replace procedure augmente_salaire(p1 IN employees.employee_id%type, p2 IN number)
    Point 2:
    BEGIN is missing after the IS key word.
    Following is a corrected code.
    create or replace procedure augmente_salaire
        p1 IN employees.employee_id%type
      , p2 IN number
    is
    begin
       update employees
          set salary = salary + salary*p2/100
        where employee_id=p1;
    end  augmente_salaire;
    show err

  • Does JRE 1.6 include a built-in SQL database?

    I'm investigating the creation of a custom Java database application that's intended to run on multiple systems, particularly Windows and Macs.
    I'd like to store and retrieve my data using SQL, rather than as flat files. At the same time, I'd also like to minimize the number of jar files required by the application.
    I've used JDBC to talk to external SQL databases; the programming part is not an issue. The question is whether I'm forced to obtain an external DB server (such as MySQL), which increases the cost and installation complexity of my app, or if Java includes an interface to built-in SQL or SQL-like database server.
    I'm thinking I already know what the answer to this is going to be, but no harm in checking.
    Thanks!

    The installs from Sun for linux, solaris and windows contains Derby. It is not part of the Java API so you still must put it in the class path.
    Apparently for some reason the Mac 1.6 version doesn't include it.
    Not really all that much of a problem because Derby is free and a new version was just released. That at least might suggest using that instead of the Sun one anyways. Derby is from the Apache site.
    There are at least a couple of other embedded databases as well.
    Finally there is a JDBC forum where these sorts of questions are probably better asked.

  • Can I migrate from sql azure business database edition (old) to sql azure standard database edition (new in preview)?

    I have an export .bacpac file from a sql azure business database edition and I want import that file to sql azure standard database edition.
    I have tried through Azure but I think that is not supported yet.
    I have also tried through Microsoft SQL Server Management Studio 2012 but Wizard only shows me old editions "web" and "business" for destination database and it is incompatible...
    Thanks.

    I've done this today.
    You'll need to restore your database onto Azure as a Business/Web addition. Either use your existing or New > SQL Database > Import.
    Then you need to sign up to the SQL Preview https://azure.microsoft.com/en-us/services/preview/.
    Once you've done that, in the Azure portal under DB > Scale, you'll have Web, Business, Basic, Standard and Premium to choose from.
    Obviously this is still in preview mode.

  • What are the Benefits of Synchronizing/ Replicating Project Online with an on-Premise SQL Database

    Hi
    What are some of the reasons and/ or benefits that one may want to consider with regards to setting up and synchronizing Project Online with a on-Premise SQL database ?
    \Spiro Theopoulos PMP, MCITP. Montreal, QC (Canada)

    Spiro,
    Reporting via Project Online is limited to OData, and writing queries with OData starts getting complex at a certain point.
    So, if your organization in using third party BI tools, or want to use OLAP cubes, or in general want to use straight SQL queries instead of oData, it is generally beneficial to have the data in house for reporting.
    So in general, using the SQL Synchronization, will bring data into "your" organization, as opposed to being with Microsoft so you get a LOT more flexibility with reporting.
    Hope this helps your question.
    Cheers,
    Prasanna Adavi, Project MVP
    Blog:
      Podcast:
       Twitter:   
    LinkedIn:
      

  • What do corrupted sql database viewer ?

    There MS SQL 2005 server and a database that you want to connect to the server.
    There mdf ldf and files. The problem is that, most likely, the base was incorrectly disabled, and now when you try to connect the message:
    File activation failure. The physical file name "C: \ Program Files \ Microsoft SQL Server \ MSSQL.1 \ MSSQL \ Data \ GB_main_log2.ldf" may be incorrect.
    The log can not be rebuilt because the database was not cleanly shut down. (Microsoft SQL Server, Error: 5120)
    What do corrupted sql database viewer ?

    Hi VectoriaKoalak,
    As other post, the best bet is to restore the database from a good backup.
    However, if you have no backups or have damaged backups.  To fix the database, you can set the database in Emergency Mode and run DBCC CHECKDB with the REPAIR_ALLOW_DATA_LOSS option to fix up corruptions. For more detailed steps, please review
    the following blog.
    EMERGENCY-mode repair: the very, very last resort
    http://www.sqlskills.com/blogs/paul/checkdb-from-every-angle-emergency-mode-repair-the-very-very-last-resort/
    Thanks,
    Lydia Zhang
    Lydia Zhang
    TechNet Community Support

Maybe you are looking for

  • Idocs, idoc types, tables

    can  anybody  tell me   what  type  of  idoc  types  are  typically  used  in  a regular  order to cash  cycle  in sd . and   are there   tables  related  to it?   what is the tcode  to see  them n.bhardwaj my  id  is [email protected]

  • Multimapping with ABAP Class

    Hi all, in a scenario I have to do some complex summarizations and mappings and so on. Therefore I implemented an ABAP Mapping within a class. For the conversion I use a simple Transformation to have the data after it in an internal table. Then I'm d

  • Session not shared between multiple wars, with no cookies

    I posted an earlier query on multiple wars in the same application. Actually session is maintained and getting shared on the server when browser supports cookies. When Browser does not support cookies i have the following problem, a) Without cookies

  • How do place a file for download from our server?

    I have some pdf forms that I place on a site, but I had the set up as hyperlinks to webpages so that they opened up in browsers. This isn't good because the pdfs are forms to be filled out and we've had a variety of problems with people trying to fil

  • RFBIBL00 error  "session name AcctDoc: No terminations have been found"

    Can anyone please help me to fix the error I am getting from RFBIBL00 report which is " session name AcctDoc: No terminations have been found". . Thanks for helping!