Best way to check the HEALTH of SQL server database

We are having SQL server in CLUSTER environments and well configuration i.e. more than 200 GB RAM.Stil we are getting no good response.
Please advise on this so that we will dig before happens.
Cheers,
DB5

Hello,
If I understand correctly, you want to improve SQL Server performance.
In SQL Server we have many situation to improve the performance. For example:
• Design efficient schemas.
• Optimize queries.
• Fine-tune indexes.
• Perform efficient transactions.
• Build efficient stored procedures.
We can obtain the best performance and scalability gains in application development. Indexing is considered part of the application development effort. Poor indexes that lead to increased CPU utilization, and memory or disk I/O utilization. You can refer
to the following article about Improving SQL Server Performance.
Reference: http://msdn.microsoft.com/en-us/library/ff647793.aspx
There are many similar issue for your reference.
http://social.technet.microsoft.com/Forums/en-US/home?category=sqlserver&filter=alltypes&sort=relevancedesc&brandIgnore=True&filter=alltypes&searchTerm=sql+server+performance
Regards,
Alisa Tang
Alisa Tang
TechNet Community Support

Similar Messages

  • How to delete/drop all the tables from SQL Server Database without using Enterprise Manager?

    How to delete/drop all the tables from SQL Server Database without using Enterprise Manager?
    I tried using DROP Tables, Truncate Database, Delete and many more but it is not working.  I want to delete all tables using Query Analyzer, i.e. through SQL Query.
    Please help me out in this concern.
    Nishith Shah

    Informative thread indeed. Wish I saw it early enough. Managed to come up with the code below before I saw this thread.
    declare @TTName Table
    (TableSchemaTableName
    varchar
    (500),
    [status] int
    default 0);
    with AvailableTables
    (TableSchemaTableName)
    as
    (select
    QUOTENAME(TABLE_SCHEMA)
    +
    +
    QUOTENAME(TABLE_NAME)
    from
    INFORMATION_SCHEMA.TABLES)
    insert into @TTName
    (TableSchemaTableName)
    select *
    from AvailableTables
    declare @TableSchemaTableName varchar
    (500)
    declare @sqlstatement nvarchar
    (1000)
    while 1=1
    begin
    set @sqlstatement
    =
    'DROP TABLE '
    + @TableSchemaTableName
    exec
    sp_executeSQL
    @sqlstatement
    print
    'Dropped Table : '
    + @TableSchemaTableName
    update @TTName
    set [status]
    = 1
    where TableSchemaTableName
    = @TableSchemaTableName
    if
    (select
    count([Status])
    from @TTName
    where [Status]
    = 0)
    = 0
    break
    end

  • Mac Pro won't start up.  What's the best way to check the power supply?

    Hello. I'm having a severe problem with my 2007 Mac Pro. The symptoms are very easy to describe. The computer apparently shut itself off overnight, and when I press the power button to turn it on, absolutely nothing happens. No lights, no chime, no signs of any power whatsoever in the computer. I have never had major problems with the computer before. (Although I had recently noticed some minor skipping problems with streaming videos and Firefox had started hanging occasionally.)
    So far, I have checked the power cable and the power outlet. I have also reset the SMC (holding in the Power button for 5 seconds with the unit unplugged). I am unable to see any light in the diagnostic LEDs (including LED 1) when I press the DIAG_LED button on the logic board.
    While I welcome other suggestions, all I can figure is that this is either a power supply problem or a major logic board failure, but I don't know which. I have a multimeter and would like to test very directly if the power supply is the problem, because they are very expensive and obviously I do not want to order a replacement supply if it would not fix the computer. Does anyone know what the best way to test the supply directly is? What pins on what cable should I test, and what voltage should I look for?
    Also: No the computer is not under any warranty. If at all possible, I would like to fix this myself. Thanks for any help you can give.

    Well, I may have found the answer to my question as to why replacing the fuse dows not seem to be encouraged. I cut out the failed fuse (fast fuse, ceramic, 16 Amp 250V), and replaced it with another that was as close to it in spec as I could find (15 A instead of 16). Then I put the supply back in the case.
    When I tried to plug it in, I got an immediate spark, followed by an acrid smell from the power supply. Later inspection revealed that the new fuse blew, as did another component nearby (not sure what it was) where I could see blackening and the smell was concentrated. At this point, I would consider myself lucky if the power supply didn't take anything else on the computer out with it.
    Lesson learned; will try a new power supply and go from there.

  • Best way to check the data

    I have a made some changes to an existing view. The change is adding a join and a new column from new table. I have created a version2 with all these changes. I want to make sure that same data exists in both the views. what is the best way to test the data.

    Bad wording, the query results could be:
    No rows selected. Same number of rows on both views and same data (considering view1 structure and view without the new column)
    At least one row selected. If the count(*) on both was different, rows returned will be at least the difference. If the count was the same, then every returned row means that there's no equivalent row on view2 and a data difference may exist in at least one of the fields, so You have to find the equivalent row on view2 to compare.
    On the query sintaxis, as view2 hava a new column and I guess it's not a constant value, You have to specify every column for the view1, and the same columns for view2, so new field isn't included and compared.

  • Whats the best way of assessing the health of an SSD

    Whats the recommended way of assessing the health and lifespan of an SSD within UCS? I'm aware of the various products on the market which access SMART data, but I was wondering if there is a preferred route to that?
    Disks are the 100gb (UCS-SD100G0KA2-G) SSD disks in B200 m3 blades.

    Have you thought of using an intermediary file server, e.g. yousendit.com, rapidshare.de, etc? Alternatively, you could do it the computer-to-computer route by enabling either 'Remote Login' or 'FTP Access' (Sharing preference pane) on one and connecting with the other.
    As an aside, what you're doing isn't illegal, is it? Pardon my bluntness.
    Yang

  • Best way to import data only from sql server 2k to ora9.2

    I have a situation where I don't care about indexes, procedures. The DDLs from sql server 2k and ora9.2
    are (mostly) teh same, I need to port the data from sqlserver to my ora database.
    what is the best way to do it?
    thanks.

    Hello Zack,
    The Oracle Migration Workbench can help you to migrate your data from your Oracle 9.2 database to SQL Server 2000. Please refer to Chapter 6, 'Migrating the Database' in the Oracle Migration Workbench User's Guide for more information about how to migrate your data using the Oracle Migration Workbench.
    You can find this document at the following location on the Oracle Technology Network (OTN) Web site:
    http://download.oracle.com/docs/html/B15857_01/migrate_db.htm#sthref282
    I hope this helps.
    Regards,
    Jocelyn (Oracle Migration Workbench Team)

  • Whats the best way to check the speed of my macbook Pro

    Hi people.
    I just wanted to get some advice on how my Mac is running, as i think it has become slower since i bought it and wondered if it is anything i have done or should be doing
    First of all, i have a MBP bought mid 2011, has thunderbolt port, its 2.3Ghz Intel i5, 4GB 1333Mhz DDR3, 320Gb HD and now running Mountain Lion.
    When i first got it i thought it was quicker than anything i have used previously, an example would be when i click to open an apple program e.g. iphoto, the icon jumped up and then seconds later it was open. Now any program i try to open, it seems to take much longer, it bounces for a while and then finally opens.
    I have not got any clutter on the laptop, i keep all my files on a network hard drive. The only thing i have is 80Gb of photos stored under iphoto and i have Windows XP running on a 40Gb partition using Bootcamp.
    I am thinking about getting rid of the XP on my mac to see if it helps, but thought i would ask here first. I need XP as it allows me to run programs which dont support Apple OS X.
    I was also wanting to know the best way to store photos, would i be able to store the photos on my network drive and have iphoto work exactly the same..?
    Help much appreciated.
    Thank you.

    Hi people.
    I just wanted to get some advice on how my Mac is running, as i think it has become slower since i bought it and wondered if it is anything i have done or should be doing
    First of all, i have a MBP bought mid 2011, has thunderbolt port, its 2.3Ghz Intel i5, 4GB 1333Mhz DDR3, 320Gb HD and now running Mountain Lion.
    When i first got it i thought it was quicker than anything i have used previously, an example would be when i click to open an apple program e.g. iphoto, the icon jumped up and then seconds later it was open. Now any program i try to open, it seems to take much longer, it bounces for a while and then finally opens.
    I have not got any clutter on the laptop, i keep all my files on a network hard drive. The only thing i have is 80Gb of photos stored under iphoto and i have Windows XP running on a 40Gb partition using Bootcamp.
    I am thinking about getting rid of the XP on my mac to see if it helps, but thought i would ask here first. I need XP as it allows me to run programs which dont support Apple OS X.
    I was also wanting to know the best way to store photos, would i be able to store the photos on my network drive and have iphoto work exactly the same..?
    Help much appreciated.
    Thank you.

  • The best way to check the differences between two lists? Or substracting

    Hi,
    I am Googling on this and find many different answers and I am not sure what the best approach is. I have two lists:
    List A: with 10000 entries (String with length 6 all of them)
    List B: with 10002 entries (String with length 6 all of them)
    List A and B are almost identical but with 2 differences. I want to find these two differences or in other words generating a third list, List C with these 2 differences.
    What is the best way to approach? To us Array, ArrayList, Vectors, Hashmap, Hashtable...
    Thank you for any hunches

    Maria1990 wrote:
    I think I found the easiest approach...
    listA = [a, b, c];
    listB = [a, b];
    listC = listA.removeAll(listB);
    ...but if it is the best approach with performance in mind.. I have no idea...It really depends on what sort of comparison you want. Lists allow duplicate elements, Sets do not; so a comparison of Sets based on the contents of your Lists would only return distinct element differences.
    My suggestion: sort both lists and do a "staircase" comparison. That is (assuming they're both in ascending order):
    1. Read through both until you find a mismatch.
    2. Read through the one containing the "lesser" element, until you find a match, or until it's exhausted.
    3. If you find a match, go back to 1.
    4. If you exhaust one list, then any remaining elements in the other are also "mismatches".
    HIH
    Winston
    PS: With this approach, you can also flag your mismatches as "A not in B" or "B not in A".
    Edited by: YoungWinston on Jul 27, 2010 4:24 AM

  • Best way to push change data from sql server to windows/web application

    i apologized that i do not know should i ask this question in this forum or not.
    i have win apps which will load all data initially from db and display through grid but from the next time when any data will change in db or any data will be inserted newly in db then only change or newly inserted data need to be pushed from db side to
    my win apps. now only sql dependency class is coming to my mind but there is a problem regarding sql dependency class that it notify client but do not say which data is updated or inserted.
    so i am looking for best guidance and easy way to achieve my task. what will be the best way to push data from sql server to win or web client.
    there is two issue
    1) how to determine data change or data insert. i guess that can be handle by trigger
    2) next tough part is how very easily push those data from sql server end to win apps end.
    so looking for expert guide. thanks

    Hello,
    Yes, you can create DML trigger on INSERT and UPDATE to get the changed data into a temp table. And then query the temp table from application.
    If you are use SQL Server 2008 or later version, you can also try to use
    Change data capture, which
    can track insert, update, and delete activity that is applied to a SQL Server table and store the changed values on the Change Table.
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • Best way to import csv file into sql server

    Hello DBAs
    always thankful for your help and one question, what is the best way to import a csv file into sql server ?

    and there is a
    Bulk Insert Task for the Control Flow.
    http://www.youtube.com/watch?v=ACuCU6IqO50
    Please mark the post as answered if it answers your question | My SSIS Blog:
    http://microsoft-ssis.blogspot.com |
    Twitter

  • Best way to Import Data from a SQL Server Table?

    Hi,
    Firstly thanks for looking at this question.
    We need to import data into SAP BPC 5.1 on a twice daily basis and have chosen not to export to a .CSV file but instead to hold all data in a SQL table and import it directly from there.  As part of the import we wish to run the default logic, however only over the data which is imported as opposed to having to running default logic over the entire database after every import.
    We did some research on this topic and the only thing we could find that would work as described above is using the "Import SQL" package.  However we keep experiencing problems with it and have not yet been able to run it successfully; the errors it gives are not consistent from run to run which makes it difficult to start a thread, though we are getting help from the helpdesk at the moment.
    My question here though is - is there another way that someone knows of to import data into SAP BPC from a SQL table, and being able to run default logic over just the data being imported, or is our only hope getting the "Import SQL" package working?
    Any help much appreciated.
    Regards,
    Iain
    Forgot to mention details of our environment:
    SAP BPC v5.0.495, 2 server environment -
    Server 1 (DB/AS/SSIS/File server) = 64bit Windows 2k3 server with 64bit SQL Server Enterprise Edition
    Server 2 (IIS/App server) = 32bit Windows 2k3 server
    Edited by: Iain Hambleton on Jun 17, 2008 3:25 PM

    Lain,
    I recently created SSIS packages that need to work with a staging table that does all kind of manipulations of that data before it is loading into SAP BPC, because it also has to load the data in the drillthrough table within the same package. From one point in my package the data is also in a SQL table so basically the same as in your situation. This also works with an export to CSV within the DTSX file like Alwin said, because in this case you can use the standard transformation and conversion stuff during the load.
    I also needed to limit the data region for logic to the data region that is in the load for currency conversion purposes. This is not very much of a problem. I had a situation where I have an Accounts receivable cube containing a daily time dimension for keyduedates and a datasrc dimension containing weeks. Every week has a complete overview of the open AR items in that week and need to be converted for that week (datasrc) only and not for the whole database every time we load. But by default data would be converted based on the Keyduedates dimension while I wanted the Week dimension to be used as the data region. I solved it by using these rows in the logic:
    *Scope_by=version,Weeks
    *xdim_memberset weeks=%weeks_set%
    *xdim_memberset version = %version_set%
    I can send you the SSIS package and logic if you want. Just send me your details then.
    -Joost
    Edited by: Joost Hoppenbrouwers on Jun 17, 2008 4:25 PM

  • Error while invoking SQL Server Database

    hello all,
    please help me with this error...I have given the datasource name in the XA datasource tab of connection factory..
    <bpelFault><faultType>0</faultType><bindingFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'insert' failed due to: DBWriteInteractionSpec Execute Failed Exception. insert failed. Descriptor name: [InsertData.ScsApTransactions]. Caused by weblogic.jdbc.sqlserverbase.ddc: [FMWGEN][SQLServer JDBC Driver][SQLServer]Invalid object name 'dbo.SCS_AP_Transactions'.. Please see the logs for the full DBAdapter logging output prior to this exception. This exception is considered not retriable, likely due to a modelling mistake. To classify it as retriable instead add property nonRetriableErrorCodes with value "-208" to your deployment descriptor (i.e. weblogic-ra.xml). To auto retry a retriable fault set these composite.xml properties for this invoke: jca.retry.interval, jca.retry.count, and jca.retry.backoff. All properties are integers. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. </summary></part><part name="detail"><detail>[FMWGEN][SQLServer JDBC Driver][SQLServer]Invalid object name 'dbo.SCS_AP_Transactions'.</detail></part><part name="code"><code>208</code></part></bindingFault></bpelFault>
    Thanks,

    I figured out the solution for my problem today....
    I have not selected the option "support global transactions " for my Non-XA SQL Server datasource...now i can get the data from SQL Server Database...

  • Best way to check whether the database is demo or sys?

    Hi Gurus,
    Whats the best way to check whether the installed peoplesoft database is a demo or a sys?
    Thanks for the help?
    Regards,
    Anoop

    There is nothing set by default.
    However, if it has been configured properly by the administrator after db creation, through the menu Peopletools>Utilities>Administration>Peopletools Options, the following query should return the type of the database :
    select systemtype from psoptions;Otherwise the following could help to understand what database you are on.
    From HRMS9.1 DMO database :
    SQL> select count(*) from ps_employees;
          2792From HRMS9.1 SYS database :
    SQL> select count(*) from ps_employees;
      COUNT(*)
             0Nicolas.

  • I am getting pop ups on safari and firefox lately and am worried i may have malware or something now on my computer doing this. What is the best way to check this out for sure and remove it?

    I am getting pop ups on safari and firefox lately and am worried I may have malware or something now on my computer doing this. What is the best way to check this out for sure and remove it?

    Please review the options below to determine which method is best to remove the Adware installed on your computer.
    The Easy, safe, effective method:
    http://www.adwaremedic.com/index.php
    If you are comfortable doing manual file removals use the somewhat more difficult method:
    http://support.apple.com/en-us/HT203987
    Also read the articles below to be more prepared for the next time there is an issue on your computer.
    https://discussions.apple.com/docs/DOC-7471
    https://discussions.apple.com/docs/DOC-8071
    http://www.thesafemac.com/tech-support-scam-pop-ups/

  • Best way to move the distribution and subscriber to another server

    What is the best way to move the distribution and subscriber role to a different server for transactional replication?
    Stop activity on the publisher then script out the drop and create and point to the new ones?
    The publisher will remain the same server.
    Thank you!
    Paula

    Hi Paula,
    According to your description, you want to move distribution database and subscription database to a different server.
    Firstly, to move distribution database without dropping and recreating the replication topology, you could follow the steps in the
    article . However, the best way I recommend is to remove the replication, create the distribution on the new server, and recreate publication and subscription.
    To make this process simple, you could use SQL Server Management Studio (SSMS) to generate scripts and run the scripts to recreate publications and subscriptions or drop publications and subscriptions as the screenshot below. Checking ‘To create or enable
    the components’ generates the script for creating the publications and subscriptions, and Checking ‘To drop or disable the components’ generates the script for dropping the publications and subscriptions.
    Firstly, please use SSMS to generate the script which is used to create publications and subscriptions.
    1.Connect to Publisher, or Subscriber in SSMS, and then expand the server node.
    2.Right-click the Replication folder, and then click Generate Scripts.
    3.In the Generate SQL Script dialog box, check ‘To create or enable the components’.
    4.Click Script to File.
    5.Enter a file name in the Script File Location dialog box, and then click Save. A status message is displayed.
    6.Click OK, and then click Close. For more information about the process, please refer to the article:
    http://msdn.microsoft.com/en-us/library/ms152483.aspx.
    Secondly, follow the steps above, check ‘To drop or disable the components’ to generate the script used to drop publications and subscriptions. Then run the script to drop publications and subscriptions.
    Thirdly, please disable distribution using Transact-SQL or SSMS following the steps in the article:
    http://technet.microsoft.com/en-us/library/ms152757(v=sql.105).aspx.
    Fourthly, please create the distribution at the new server using Transact-SQL or SSMS following the steps in the article:
    http://msdn.microsoft.com/en-us/library/ms151192.aspx#TsqlProcedure.
    Last, please run the script generated in the first step to recreate publications and subscriptions.
    Regards,
    Michelle Li
    If you have any feedback on our support, please click
    here.

Maybe you are looking for

  • Syncing both my macs

    i really need some help! i own 2 mac computer one is a Mac Pro. and the other is a Macbook Pro. My problem is that i use both of them for work and the the files on them are no longer in sync. now i have ask apple them selves. but all they can suggest

  • HP Mini - Is there a serial port?

    On the HP Mini 110-1030NR, I need to use software that communicates through a serial port but the Mini does not show any serial ports. Is there any way to enable the serial port? I have looked in the BIOS and the Advanced section is not listed which

  • Losing Keychains from iPhoto Update

    Since the iPhoto update yesterday, when I attempt to click on Mobile Me to upload a gallery, I get prompted to keep my current keychains or update them (nothing new). However, when I click to update them (which I usually do), I lose them ALL and I ca

  • Adobe Reader XI won't print PDF's in color

    I recently built 4 new PC's for my office.  They all have Windows 7 64 bit, and are all networked to the same Canon Copy machine.  They all print Office documents just fine, in color or black and white as needed.  And all but one of them print PDF's

  • One sender to 2 recievers

    hello experts I have a file sender that suppose to go to 2 recievers(RFC and Mail). I pretty sure that I can define 2 reciever agreements and 2 communication channels in order to do it (I dont think you need to use BPM). does any one know a good link