Quantcast
Channel: SQL Server Database Engine forum
Viewing all 12644 articles
Browse latest View live

Target table of trigger statement needs ALTER permission.. why?

$
0
0

I have insert/update/delete triggers on a main table that inserts the contents of the base table row into a history table.. when a user tries to do a delete from the base table, it fails giving this error:

Cannot find the object "xxxx" because it does not exist or you do not have permissions.

The user is already given db_datareader and db_datawriter permissions.. why does it still need more than that? I had to grant ALTER permission on the history table to that user in order to let it run the delete.. is that high level of permission needed?

I come from a Distributed DB2 background, and this has never been the case there.

Any insight will be much appreciated!

Thanks!

Frank


cluster server login issue

$
0
0
hi all,



i have installed sql server failover cluster successfully on two nodes , but i can not login to the 1st node neither the second , below my sql cluster details extracted by running



Cluster Disk 1       SQL Server (NUCACLUSTER) abcapp1 Online
Cluster Disk 2       SQL Server (NUCACLUSTER) abcapp1 Online
Cluster Disk 3       Cluster Group        abcapp2 Online
Cluster Disk 4       SQL Server (NUCACLUSTER) abcapp1 Online
Cluster Disk 5       SQL Server (NUCACLUSTER) abcapp1 Online
Cluster Disk 6       abc_Dtc      abcapp2 Online
Cluster Disk 7       SQL Server (NUCACLUSTER) abcapp1 Online
Cluster IP Address   Cluster Group        abcapp2 Online
Cluster Name         Cluster Group        abcapp2 Online
IP Address 172.16.3.10 abc_Dtc      abcapp2 Online
MSDTC-abc_Dtc abc_Dtc      abcapp2 Online
abc_Dtc      abc_Dtc      abcapp2 Online
SQL IP Address 1 (nucacluster) SQL Server (NUCACLUSTER) abcapp1 Online
SQL Network Name (nucacluster) SQL Server (NUCACLUSTER) abcapp1 Online
SQL Server (NUCACLUSTER) SQL Server (NUCACLUSTER) abcapp1 Online
SQL Server Agent (NUCACLUSTER) SQL Server (NUCACLUSTER) abcapp1 Online


sql server engine&agent services using "mydomain\sql"as user account, for windows authentication specifyed use "mydomain\sqllogin"

how can i connect to sql engine, i cannot copnnect neither windows authentication nor sql server authentication  , which user and name i have to use to log in , also such user account has to be on  local administrator group on both node or not 

error is inserted

Named Pipes Provider, error: 40 - Could not open a connection to SQL Server

thanks for help 

Cluster nodes

$
0
0

Hi Team,

we have 2 nodes cluster set up, here if it is possible for 1 node put in to one data center and another node is put into  different data center.

ex :

node 1 placed into [ABC DATA CENTER]

node 2 placed into [XYZ DATA CENTER]

Replication

$
0
0

Yesterday due to an incorrect data feed we had to restore 
the database at production server 123, 
which replicates to 456 server.  Please let us know if we have to
 restore the database on 456 server with 123 server and reinitialize replication. 

or is there any other way we can sync the subscriber without restoring the primary database.

thanks,

what is Hyperthred ratio?

$
0
0
Hi,

In layman terms, what does hyperthread ratio mean? How is it used/useful in sql server ?

Books online says, It is the Ratio of the number of logical and physical processors.

I have executed one of Glenn Berry's DMV query on my laptop and gives me the below output.

SELECT cpu_count AS [Logical CPU Count],
hyperthread_ratio AS [Hyperthread Ratio],
cpu_count/hyperthread_ratio AS [Physical CPU Count],
physical_memory_in_bytes/1048576 AS [Physical Memory (MB)], sqlserver_start_time
FROM sys.dm_os_sys_info WITH (NOLOCK) OPTION (RECOMPILE);

Logical CPU Count    Hyperthread Ratio    Physical CPU Count    Physical Memory (MB)    sqlserver_start_time
2            2                1        4086            2014-07-22 16:24:47.377

Thanks in advance.

Job Schedule Skip Notification

$
0
0

Hi All,

I have a requirement where i am asked to set a notification when ever  SQL server agent skips a scheduled job execution to the next run because the job is still running.

Can some please help me with a script to accomplish this or through so light on how to do this .

Thanks in advance!!

Jack

How to Use FULL TEXT Indexing Search on file names with brackets

$
0
0

I would like to use a FULL Text Seach query to find Files on a windows file system

The Problem is when the case comes up where there is a parentheses"()" in the file name. This example was created from a file copy being pasted in the same folder location as the original a few times.

Here is my code:

DECLARE @SearchWord VARCHAR(50) SET @SearchWord = '"KAP1556PP_P01(2).jpg"' SELECT [FileName], [FilePath] FROM [dbo].[tblLegalPlan] WHERE CONTAINS(*, @SearchWord)

When I use Double quotes for the @Searchword I recieve no results.
SET @SearchWord = '"KAP1556PP_P01(2).jpg"'

When I remove the Double  Quotes for the @Searchword I recieve an error message:
SET @SearchWord = 'KAP1556PP_P01(2).jpg'

Msg 7630, Level 15, State 2, Line 8
Syntax error near '('in the full-text search condition 'KAP1556PP_P01(2).jpg'.

When I search for files containing TEXT up to the bracket i Get undesrired results obviously:
SET @SearchWord = '"KAP1556PP_P01*"'

Results

FileName                FilePath
KAP1556PP_P01(1).jpg    BC\EPP\KAP
KAP1556PP_P01(2).jpg    BC\EPP\KAP

I would like results where I can search for the file name and only one file is found matching the search word.

Thanks

SS DBE TechNet Gurus Announced for June 2014!

$
0
0

The Results are in! and the winners of the TechNet Guru Competition June 2014 have been posted on theWiki Ninjas Blog.

Below is a summary, heavily trimmed to fit the size restrictions of forum posting.

 

Guru Award BizTalk Technical Guru - June 2014  

Gold Award Winner

 

Steef-Jan WiggersBizTalk Server: Custom ArchivingTGN: "This one was my favorite this month. Archiving is a topic that is brought up often. Well done explaining it simply and how to do it according to best practice"
Sandro Pereira: "Love the topic, well explain and with everything you need, my favorite."
Mandi Ohlinger: "Another great addition to the Wiki. "

Silver Award Winner

 

boatsellerBizTalk: Reducing and Consolidating WCF Serialization Schema TypesTGN: "Very good, keeping the code clean, and only referencing what you need and consolidate it is important!"
Mandi Ohlinger: "Great solution to somewhat-annoying behavior. Nice addition to the Wiki!"
Sandro Pereira: "Great article."

Bronze Award Winner

 

Murugesan Mari ChettiarHow to Implement Concurrent FIFO Solution in BizTalk ServerEd Price: "Incredibly thorough in your explanations! Great formatting. Good job!"
TGN: "First in, first out. Great article Murugesan!"
Sandro Pereira: "Good additional to the TechNet Wiki, good work."

 

Guru Award Forefront Identity Manager Technical Guru - June 2014  

Gold Award Winner

 

Remi VandemirCustom Reports in FIM2010R2AM: "Great step-by-step guide for generating custom reports. Thanks for taking the time to put this together."
PG: "Nice article, in an area that is less known!"
Søren Granfeldt: "Very comprehensive."
Ed Price: "Great job on the intro, and a lot of images really help clarify all the steps!"
GO: "Thank you "

Silver Award Winner

 

Eihab IsaacFIM 2010 R2: Review pending export changes to Active Directory using XSLTEd Price: "Great introduction, great steps, and great job on the image and code formatting!"
GO: "An introduction, a sample code, images, a TOC and a conclusion. Nothing here to preserve the GOLD medal!"
PG: "Nice article!"
Søren Granfeldt: "Nice and precise"

Bronze Award Winner

 

Scott EastinA Practical Alternative to the PeopleSoftAM: "Thank you for sharing. Great (and probably superior) alternative for those using PeopleSoft as import-only data source."
GO: "Amazing article, love it so much"
PG: "Would like to see more elaborated details in this article."
Søren Granfeldt: "A little more technical stuff would be nice"
Ed Price: "Some good community collaboration in removing blog-like personalization. This is a great topic with some good holistic thinking!"

 

Guru Award Microsoft Azure Technical Guru - June 2014  

Gold Award Winner

 

Mr XConfiguration of WATM (Windows Azure Traffic Manager) for Web Portals hosted on Azure VMsJH: "Two simple words: Love it! The detailed explanation on how Traffic Manager works is awesome."
Ed Price: "Wow! Incredibly well written, with beautiful diagrams and a great use of images and tables! Great topic!"
GO: "This is a great article! Thanks Mr.X"

Silver Award Winner

 

Mr XHow to use Windows Azure as Traffic Manager for Web portals hosted in multiple on-premise datacentersJH: "Very detailed! Great explanation at the beginning followed by a good step-by-step guide."
Ed Price: "A much needed article! Great job on the formatting and images!"
GO: "Thanks again, MR.X"

Bronze Award Winner

 

Mr XHow to connect Orchestrator to Windows AzureGO: "I really enjoyed reading this article, clever and well written. Lovely done!"
JH: "Great article! I especially love the amount of pictures provided in the article."
Ed Price: "Good procedural article! Great use of images!"

    Guru Award Microsoft Visio Technical Guru - June 2014  

    Gold Award Winner

     

    Mr XHow to open Visio files without VisioAH: "This Article is pretty basic and lacks details. Visio Viewer doesn't just open in IE but also in Outlook and File explorer. The writer should include the link to http://blogs.office.com/2012/11/28/download-the-free-microsoft-visio-viewer/ this blog which has lot more details "
    Ed Price: "Good. I think the SEO on the title will drive more awareness of the Visio Viewer."
    GO: "Thanks you Mr.X! Again a great article!"


     

    Guru Award Miscellaneous Technical Guru - June 2014  

    Gold Award Winner

     

    Ed Price - MSFTYammer: Announcements FeatureTGN: "Wow, not only is this a good way on how to write annoncments on Yammer, but in generel. Really, really great write-up Ed! T"
    GO: "Tord says on the comment section: "Very nice article, Ed. I really enjoyed reading it and you had a great set of tips. Thanks for sharing!".. I only can respond AMEN! Thanks Ed!"
    Margriet Bruggeman: "Good discussion of announcements feature."

    Silver Award Winner

     

    Anthony CaragolBacking Up and Restoring Lync 2013 ContactsMargriet Bruggeman: "Short & Sweet"
    GO: "Great article, but I'm missing, examples, images, definitions etc for a huge section like "backup and restore""
    TGN: "Very good, Lync has eaten up the market and is a key product in most companies, articles like this is very valuable. Great work Anthony!"

     
     

    Guru Award SharePoint 2010 / 2013 Technical Guru - June 2014  

    Gold Award Winner

     

    Geetanjali AroraSharePoint Online : Working with People Search and User ProfilesBenoît Jester: "A very good article, a must-read for those interested by SharePoint Online and the use of search and user profile API."
    Jinchun Chen: "Excellent. Just a tip, if you would like to improve the performance, please use the Search Service to search user profiles"
    Craig Lussier: "Good walkthrough and code example for getting started with People Search!"
    Margriet Bruggeman: "Good starter for working with search and profiles"

    Silver Award Winner

     

    Jaydeep MungalparaCreating Bookmarks in Wiki Pages - SharePoint Rich Text Editor ExtensionMargriet Bruggeman: "Really cool! In the past, I was actually looking for this and its a nice implementation of this functionality. This article gets my vote!"
    Craig Lussier: "Great solution for extending out of the box functionality. I like the synergy between the TechNet Wiki and TechNet Gallery!"
    GO: "Simple but powerfull. We should all take an example about how this article has been written. This article has a TOC, headings and even a code! Well done!"
    Jinchun Chen: "Nice. "
    Benoît Jester: "A simple button which can save a lot of time!"

    Bronze Award Winner

     

    Dan ChristianPowerShell to copy or update list items across SharePoint sites and farmsGO: "The best artice for June! Thanks Dan, you deserve the GOLD medal!"
    Benoît Jester: "A good article with useful scripts, as they can be used fior many scenarios (data refresh, migration tests, ...)"
    Jinchun Chen: "Good and low-cost solution. To be automatic, we can use EventHandle instead. "
    Craig Lussier: "Nice PowerShell script solution and explanation of the scenario. Consider using functions with parameters for easier reuse so input parameters are not hard coded."
    Margriet Bruggeman: "This script can be useful, although typically migration scenarios are more complex than this. Having said that, I probably end up using this script some time in in the future"

     

      Guru Award Small Basic Technical Guru - June 2014  

      Gold Award Winner

       

      litdevSmall Basic: Sprite ArraysEd Price: "An important topic that's well described with fantastic examples! Great article!"
      Michiel Van Hoorn: "Great starter for Sprite Fundamentals and how to handle them. Briljant start point for greating you 2D shooter"

      Silver Award Winner

       

      Jibba JabbaSmall Basic - Monthly Challenge StatisticsEd Price: "Jibba Jabba brings us astonishing insights and data about LitDev's Small Basic Monthly Challenges!"
      RZ: "This is very nicely done and showed all the statistics visually"

      Bronze Award Winner

       

      Nonki TakahashiSmall Basic: Challenge of the MonthRZ: "This is very nicely done and organized all challenges of the month in one place"
      Ed Price: "Although this is very basic, it's incredibly helpful to get all these in one list and to access all the great challenges!"
      Michiel Van Hoorn: "Good explainer on  fundamental structures."

         

        Guru Award SQL BI and Power BI Technical Guru - June 2014  

        Gold Award Winner

         

        Anil MaharjanUsing Power Query to tell your story form your Facebook DataJinchun Chen: "Interesting. I liked this best"
        PT: "Plenty to like here" 
        Ed Price: "Great! I love to see Power Query articles like this! Great formatting and use of images!"

        Silver Award Winner

         

        Tim PaclSSRS Expressions: Part 1 - Program FlowPT: "A very comprehensive article about program flow expressions. Nice job. I'm sure many will benefit from this article. Just a little feedback about some terminology that could be more clear: The entire statement that is typically used to set a property value for an object in an SSRS report is an "expression". Each of the three programming constructs you've mentioned (e.g. IIF, SWITCH & CHOOSE) are "functions" and not expressions or statements."
        Jinchun Chen: "Perfect! Good article for SSRS newbie." 
        Ed Price: "The table and images help bring it more value. Great job!"

        Bronze Award Winner

         

        Anil MaharjanHow to Schedule and Automate backups of all the SSAS catalogs within the Server Instance

        PT: "This is a very useful article about automating multiple Analysis Services database backups using an SSIS package and the SQL Server Agent. Nice job."
        Jinchun Chen: "Good." 
        Ed Price: "Good use of images. Could be improved with better code formatting. Good job!"

         

        Guru Award SQL Server General and Database Engine Technical Guru - June 2014  

        Gold Award Winner

         

        ShankySQL Server: What does Column Compressed Page Count Value Signify in DMV Sys.dm_db_index_physical_stats ?DB: "Interesting and detailed"
        DRC: "• This is a good article and provides details of each and every step and the output with explanation. Very well formed and great information. • We can modify the create table query with “DEFAULT VALUES". CREATE TABLE [dbo].[INDEXCOMPRESSION]( [C1] [int] IDENTITY(1,1) NOT NULL, [C2] [char](50) NULL DEFAULT 'DEFAULT TEST DATA' ) ON [PRIMARY]"
        GO: "Very informative and well formed article as Said says.. Thanks for that great ressource. "

        Silver Award Winner

         

        Durval RamosHow to get row counts for all Tables

        GO: "As usual Durva has one of the best articles about SQL Server General and Database Engine articles! Thanks, buddy!" "
        Jinchun Chen: "Another great tip!"
        PT: "Nice tip" 
        Ed Price: "Good topic, formatting, and use of images. This would be far better if the examples didn't require the black bars in the images. So it would be better to scrub the data before taking the screenshots. Still a good article. Thank you!"


         

        Guru Award System Center Technical Guru - June 2014  

        Gold Award Winner

         

        Prajwal DesaiDeploying SCCM 2012 R2 Clients Using Group PolicyEd Price: "Great depth on this article! Valuable topic. Good use of images."

        Silver Award Winner

         

        Mr XHow to introduce monitoring and automatic recovery of IIS application pools using OrchestratorMA: "Good job Mr X, However I would like to see this runbook integrated as a recovery task with Operations Manager IISapppools Monitors in order to maintain a standard way of notifications and availability reporting."
        Ed Price: "Good formatting on the images, and great scenario!"

        Bronze Award Winner

         

        Prajwal DesaiHow to deploy lync 2010 using SCCM 2012 R2Ed Price: "Great job documenting the entire process!!!"


            

          Guru Award Transact-SQL Technical Guru - June 2014  

          Gold Award Winner

           

          Saeid HasaniT-SQL: How to Generate Random PasswordsJS: "I loved the article, well structured, to the point. Not missing any caveats that might occur, really good in the end. I would suggest changing the function to accept a whitelist / blacklist as well as a length of the password to be created. This would be the cherry on the pie :-)"
          Samuel Lester: "Very nice writeup for a real world problem!"
          Richard Mueller: "Clever and apparently well researched. I liked the detailed step by step explanations."
          Jinchun Chen: "Excellent!"
          Manoj Pandey: "A good and handy utility TSQL that I can use and levarage if I have to use similar feature in future."

          Silver Award Winner

           

          Hasham NiazT-SQL : Average Interval LengthRichard Mueller: "A good article, but I need more explanation of the concepts."
          Manoj Pandey: "A handy TSQL script that I can use and levarage if I have to use similar feature in future."

          Bronze Award Winner

           

          Visakh16T-SQL: Retrieve Connectionstring Details from SSIS PackageManoj Pandey: "Good shortcut by using TSQL with XML to read metadata information from SSIS XML file."
          Samuel Lester: "Handy trick, thanks for posting!"
          Richard Mueller: "Good code, but more explanation needed. Could use a See Also section."


             

            Guru Award Visual Basic Technical Guru - June 2014  

            Gold Award Winner

             

            The ThinkerBetter to Ask for forgiveness then permissionRichard Mueller: "Good use of images and code. The humorous title might be better in a blog."
            MR: "Great topic!"
            GO: "Well, to be honnest, many people worked on that article, but still, the owner "the thinker" should receive the credits! muchos gracias "The Thinker" for the Most Revised Article"


             

            Guru Award Visual C# Technical Guru - June 2014  

            Gold Award Winner

             

            Jaliya UdagedaraEntity Framework Code First - Defining Foreign Keys using Data Annotations and Fluent APIEd Price: "Wow. Good descriptions, great code snippets, and great job highlighting sections on your images!"
            GO: "Thank you."

             

            Guru Award Wiki and Portals Technical Guru - June 2014  

            Gold Award Winner

             

            XAML guyHistory and Technology Behind the TechNet Wiki Ninja Belt CalculatorEd Price: "It's amazing to see all the details of what this tool does. Great job on the descriptions and formatting the images and text!"
            Richard Mueller: "Great documentation. Good links to explain everything."
            GO: "I love your articles XAML guy! Always clear and always a pleasure to read! Thanks for you help and commitment for this tool."

            Silver Award Winner

             

            Durval RamosHTML5 PortalEd Price: "This is great to see this HTML5 resource!"
            Richard Mueller: "A great contribution to our collection of portals"
            GO: "The HTML5 Portal is A-W-E-S-O-M-E !"

            Bronze Award Winner

             

            João SousaASP.NET PortalEd Price: "Good job on this portal! The Return to top links are helpful!"
            Richard Mueller: "More should be done to distinguish this portal from here."
            GO: "Thanks Joao!"


             

            Guru Award Windows Phone and Windows Store Apps Technical Guru - June 2014  

            Gold Award Winner

             

            Dave SmitsTheming of your applicationPeter Laker: "Another great article from the mighty Dave. Very useful. Not sure if MS like us want us to work around the accents so much though ;)"
            Ed Price: "Very useful topic and great formatting on the code! Could benefit from more explanation on the code toward the bottom and a See Also section. Great article!"

            Silver Award Winner

             

            saramgsilvaCreating Windows Phone and Window 8.1 applications using Microsoft App StudioPeter Laker: "A great introduction! Nice walkthrough, and plenty to look at!"  
            Ed Price: "This is good. I love the narrative and use of images! Good conclusion!"

            Bronze Award Winner

             

            Carmelo La MonicaCreate Universal Application with Windows Phone App Studio (en-US).Peter Laker: "Sensational article. A real attention grabber and written very clearly."  
            Ed Price: "Fantastic job on the narrative and images. Some amazing articles this month!"

               

              Guru Award Windows Presentation Foundation (WPF) Technical Guru - June 2014  

              Gold Award Winner

               

              Magnus (MM8)WPF: How To Tab Between Items In a ListBox

              KJ: "This article seemed very useful to me. The kind of thing that I might need and here's the answer."
              GO: "Thanks for that great article!."
              Ed Price: "Another amazing article from Magnus! Great job on the topic choice (very needed scenario), formatting, code, explanations, and See Also section. Fantastic article!"

              Silver Award Winner

               

              Sugumar PannerselvamLets forget about limitations and temprorary fix... Think about 4.5 featuresKJ: "Wish there were code samples and more flushed out scenarios"
              GO: "Why second place? the layout and way to explain didn't convince me. Doesn't mean that the article is bad. The article is awesome; but it's missing something."
              Ed Price: "Short and sweet. Could benefit from adding in some code snippet examples and images. Good topic choice."


               

              Guru Award Windows Server Technical Guru - June 2014  

              Gold Award Winner

               

              Mr XDHCP on Windows Servers – Why are the expired IP addresses not getting re-assigned?JM: "This is an excellent article, thanks for your contribution."
              Richard Mueller: "Important information with good explanation. Needs a See Also section."
              Philippe Levesque: "Good article ! I like how it's explained versus Windows Server. An image with the DHCP's process could be a good addition for reference. (DHCP OFFER, DHCP ACK, etc..)"

              Silver Award Winner

               

              Mr XHow to force a DHCP database cleanup for expired leases in a specific scopeGO: "I'm actually thinking that nobody can defaut you Mr.X"
              Philippe Levesque: "Good article ! I would add that changing the lease time to be shorted could help too."
              JM: "A very good article, however you might consider adding this content as a section in your article about expired IP addresses in DHCP"
              Richard Mueller: "More good information. Should be linked to the other DHCP article."
              GL: "This is OK but a better solution for a highly utilized DHCP scope would be to shorten the lease time and/or configure a superscope."

              Bronze Award Winner

               

              Hicham KADIRIWindows Server Core 2012 R2 - Initial configurationGL: "This is good required information. I would really like to see information added about how to add a server role. You might consider providing PowerShell alternatives to the netsh and other commands."  
              JM: "This is a great to-the-point article on how to configure a Core install of Windows Server, nice work."
              Richard Mueller: "A great collection of useful tools. Some could use images, more detail, or examples. The example sections could be added to the Table of Contents."
              GO: "Well, our new french MVP! Well written Hicham! Do not forget to pray attention for the layout! It's capital for readers and judges!"
              Philippe Levesque: "I like the article, a good resumé of the command you need to do to configure a server."

               

              Don't forget the full version, with runners up is available here.

               

              More about the TechNet Guru Awards:

               



              #PEJL

              Got any nice code? If you invest time in coding an elegant, novel or impressive answer on MSDN forums, why not copy it over to the one and onlyTechNet Wiki, for future generations to benefit from! You'll never get archived again!

              If you are a member of any user groups, please make sure you list them in the Microsoft User Groups Portal. Microsoft are trying to help promote your groups, and collating them here is the first step.


              Does sql server could export a partition from a partition table ?

              $
              0
              0

              Dear :

                 Does sql server could export a partition from a partition table ? 

                For example, I need to export all old partition,which is '2013' and drop them.  It is easy in oracle. but how to do with sql

              server 2012 ?

              SQL Server 2005 consuming less memory

              $
              0
              0

              Hi Everyone,

              We are facing slowness issue with one of our production SQL Server EE 2005 32-bit on Windows 2003. Installed RAM on the server is 4 GB and SQL Server MAX MEMORY is already set to 4 GB and virtual memory is set to 5 GB. But we have observed through task manager and PERFMON that SQL Server is only using around 1600 Mb of memory.

              We are not able to find out why is it taking less memory as high load is being generated through application and users have been complaining of slowness.

              Need urgent help on this.

              why I can not see partition schema be modified ?

              $
              0
              0

              Dear :

                 I can not see the a partition schema use the next group ?

                 I have an partiton schema  script is:

              CREATE PARTITION SCHEME [ps_OneMillion_LeftRange] AS PARTITION [pf_OneMillion_LeftRange] TO ([PRIMARY], [FG_1], [FG_2], [FG_3], [FG_N])

                 then I create a new filegroup and add a file in it.

              alter database sample_DB add filegroup FG_N1;

              alter database sample_DB add file (
              name = FG_N1_DataFile,
              filename = "D:\Sample_DB\FG_N1_DataFile.ndf",
              size = 10M,
              maxsize = unlimited,
              filegrowth = 1M)
              to filegroup FG_N1;

                Then I try to make the partition schema to use the bnew file group:

              alter PARTITION SCHEME ps_OneMillion_LeftRange NEXT USED FG_N1;

               But when right click on this Sample_DB and select storage and find the partition schema and get the script by create to.

              The partition script is the same.

              CREATE PARTITION SCHEME [ps_OneMillion_LeftRange] AS PARTITION [pf_OneMillion_LeftRange] TO ([PRIMARY], [FG_1], [FG_2], [FG_3], [FG_N])

              not I expect 

              CREATE PARTITION SCHEME [ps_OneMillion_LeftRange] AS PARTITION [pf_OneMillion_LeftRange] TO ([PRIMARY], [FG_1], [FG_2], [FG_3], [FG_N],[FG_N1])

              Why  and doest alter schema not OK ?

              What happens when the maximum limit of DataBase partitiong is reached

              $
              0
              0

              Hello,

              We are using SQL server 2012 which allows 15000 partitions per table.

              We are partitioning tables on the primary ID (e.g. periodID) of one of the tables.

              As of now we have data for all the period in the DB. I am wondering that if we reach the maximum partition limit allowed by SQL server then what is the suggested approach?

              How to troubleshoot high cpu and high memory usage happening on the same time?

              $
              0
              0

              Hi Experts.

              What would be the proper troubleshooting approach for the below performance issue.
              Server is 100% cpu and 90% memory usage and users are unable to login.
              What all things need to be checked? IF users cannot login to the server, how can we troubleshoot?

              This was one of the interview question which I have recently attended. I have less knowledge on perf and so looking for some guidance to troubleshoot such issues.

              Thanks in advance.

              Windows could not start the SQL Server (xxx) on Local Computer. For more information, review the System Event Log. If this is a non-Microsof service, contact the service vendor, and refer to service-specific error code -1.

              $
              0
              0

              I have two instances of SQL on this machine, 2005 and 2008 R2.  The 2005 server starts and works fine but the 2008 R2 is giving me the above error when trying to start.

              Here is the contents of the ERRORLOG file:

              2014-07-23 11:02:34.95 Server      Microsoft SQL Server 2008 R2 (SP2) - 10.50.4000.0 (X64)
               Jun 28 2012 08:36:30
               Copyright (c) Microsoft Corporation
               Express Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1)

              2014-07-23 11:02:34.95 Server      (c) Microsoft Corporation.
              2014-07-23 11:02:34.95 Server      All rights reserved.
              2014-07-23 11:02:34.95 Server      Server process ID is 628.
              2014-07-23 11:02:34.95 Server      System Manufacturer: 'Hewlett-Packard', System Model: 'HPE-500y'.
              2014-07-23 11:02:34.95 Server      Authentication mode is MIXED.
              2014-07-23 11:02:34.95 Server      Logging SQL Server messages in file 'c:\Program Files\Microsoft SQL Server\MSSQL10_50.MITEK_TP\MSSQL\Log\ERRORLOG'.
              2014-07-23 11:02:34.95 Server      This instance of SQL Server last reported using a process ID of 7844 at 7/23/2014 10:55:02 AM (local) 7/23/2014 4:55:02 PM (UTC). This is an informational message only; no user action is required.
              2014-07-23 11:02:34.95 Server      Registry startup parameters:
                -d c:\Program Files\Microsoft SQL Server\MSSQL10_50.MITEK_TP\MSSQL\DATA\master.mdf
                -e c:\Program Files\Microsoft SQL Server\MSSQL10_50.MITEK_TP\MSSQL\Log\ERRORLOG
                -l c:\Program Files\Microsoft SQL Server\MSSQL10_50.MITEK_TP\MSSQL\DATA\mastlog.ldf
              2014-07-23 11:02:34.99 Server      SQL Server is starting at normal priority base (=7). This is an informational message only. No user action is required.
              2014-07-23 11:02:34.99 Server      Detected 6 CPUs. This is an informational message; no user action is required.
              2014-07-23 11:02:35.09 Server      Using dynamic lock allocation.  Initial allocation of 2500 Lock blocks and 5000 Lock Owner blocks per node.  This is an informational message only.  No user action is required.
              2014-07-23 11:02:35.16 Server      Node configuration: node 0: CPU mask: 0x000000000000003f:0 Active CPU mask: 0x000000000000003f:0. This message provides a description of the NUMA configuration for this computer. This is an informational message only. No user action is required.
              2014-07-23 11:02:35.19 spid6s      Starting up database 'master'.
              2014-07-23 11:02:35.31 spid6s      FILESTREAM: effective level = 0, configured level = 0, file system access share name = 'MITEK_TP'.
              2014-07-23 11:02:35.34 spid6s      SQL Trace ID 1 was started by login "sa".
              2014-07-23 11:02:35.34 spid6s      Starting up database 'mssqlsystemresource'.
              2014-07-23 11:02:35.36 spid6s      The resource database build version is 10.50.4000. This is an informational message only. No user action is required.
              2014-07-23 11:02:35.52 spid10s     Starting up database 'model'.
              2014-07-23 11:02:35.52 spid6s      Server name is 'TPT\MITEK_TP'. This is an informational message only. No user action is required.
              2014-07-23 11:02:35.52 spid6s      Informational: No full-text supported languages found.
              2014-07-23 11:02:35.52 spid6s      Starting up database 'msdb'.
              2014-07-23 11:02:35.69 Server      A self-generated certificate was successfully loaded for encryption.
              2014-07-23 11:02:35.69 Server      Error: 17182, Severity: 16, State: 1.
              2014-07-23 11:02:35.69 Server      TDSSNIClient initialization failed with error 0xffffffff, status code 0x80. Reason: Unable to initialize SSL support.
              2014-07-23 11:02:35.69 Server      Error: 17182, Severity: 16, State: 1.
              2014-07-23 11:02:35.69 Server      TDSSNIClient initialization failed with error 0xffffffff, status code 0x1. Reason: Initialization failed with an infrastructure error. Check for previous errors.
              2014-07-23 11:02:35.69 Server      Error: 17826, Severity: 18, State: 3.
              2014-07-23 11:02:35.69 Server      Could not start the network library because of an internal error in the network library. To determine the cause, review the errors immediately preceding this one in the error log.
              2014-07-23 11:02:35.69 Server      Error: 17120, Severity: 16, State: 1.
              2014-07-23 11:02:35.69 Server      SQL Server could not spawn FRunCM thread. Check the SQL Server error log and the Windows event logs for information about possible related problems.

              WMI alert for event 162 User Error Message

              $
              0
              0

              Can anybody help.   I am new to WMI.

              I am trying to create an alert for trace event 162 - User Error Message

              I already have standard alerts for Login failed for user - 18452, 18456, 18457.  The problem is that these errors don't tell you the 'real' database the user is trying to log into.  They show the database as master.

              The other day I started a profiler trace and looked for event 162 - User Error Message and 20- Login Failed.  In the trace file I saw messages like 

              - Cannot open database "<DATABASENAME>" requested by the login. The login failed.
              - 2014-07-22 20:05:56.60 Logon       Error: 18456, Severity: 14, State: 38.  2014-07-22 20:05:56.60 Logon       Login failed for user '<UserName>'. Reason: Failed to open the explicitly specified database. [CLIENT: xxx.xxx.xxx.xxx] 
              - Login failed for user '<UserName>'. Reason: Failed to open the explicitly specified database. [CLIENT: xxx.xxx.xxx.xxx]
              - Login failed for user '<UserName>'.

              The first error is is event 162 and contains my database name. The error number for this error is 4060.

              Is there any way to create a SQL Server alert for this event/error and capture the text string?  I tried standard alerts but was un successful so I thought WMI might be the answer.

              Is there a wmi class for user error messages?  Does anybody have any ideas on how to get this to work?


              SQL Server 2014 System.Data.SqlClient.SqlException: A severe error occurred on the current command.

              $
              0
              0

              About every 12 hours we encounter the following exception when accessing sql server from ASP.Net web application.

              2014-07-22 23:22:18.97 spid99      *   Exception Address = 000007FEE36765D3 Module(sqlmin+00000000006D65D3)
              2014-07-22 23:22:18.97 spid99      *   Exception Code    = c0000005 EXCEPTION_ACCESS_VIOLATION
              2014-07-22 23:22:18.97 spid99      *   Access Violation occurred reading address 0000000000000000
              2014-07-22 23:22:18.98 spid99      * Input Buffer 125 bytes -
              2014-07-22 23:22:18.99 spid99      *                     16 00 00 00 12 00 00 00 02 00 00 00 00 00 00 00 00 00
              2014-07-22 23:22:18.99 spid99      *        K B S C a t  01 00 00 00 20 00 4b 00 42 00 53 00 43 00 61 00 74 00
              2014-07-22 23:22:18.99 spid99      *  e g o r y B r e a  65 00 67 00 6f 00 72 00 79 00 42 00 72 00 65 00 61 00
              2014-07-22 23:22:18.99 spid99      *  d C r u m b E d i  64 00 43 00 72 00 75 00 6d 00 62 00 45 00 64 00 69 00
              2014-07-22 23:22:18.99 spid99      *  t A r t i c l e    74 00 41 00 72 00 74 00 69 00 63 00 6c 00 65 00 00 00
              2014-07-22 23:22:18.99 spid99      *   @ c a t e g o r y 0b 40 00 63 00 61 00 74 00 65 00 67 00 6f 00 72 00 79
              2014-07-22 23:22:18.99 spid99      *   i d  &            00 69 00 64 00 00 26 08 08 00 00 00 00 00 00 00 00
              2014-07-22 23:22:18.99 spid99      *  
              2014-07-22 23:22:18.99 spid99      *
              2014-07-22 23:22:18.99 spid99      *  MODULE                          BASE      END       SIZE
              2014-07-22 23:22:18.99 spid99      * sqlservr                       00000000FFFC0000  000000010001EFFF  0005f000
              2014-07-22 23:22:18.99 spid99      * ntdll                          0000000077000000  00000000771A8FFF  001a9000
              2014-07-22 23:22:18.99 spid99      * kernel32                       0000000076DE0000  0000000076EFEFFF  0011f000
              2014-07-22 23:22:18.99 spid99      * KERNELBASE                     000007FEFD170000  000007FEFD1DBFFF  0006c000
              2014-07-22 23:22:18.99 spid99      * NETAPI32                       000007FEFA280000  000007FEFA295FFF  00016000
              2014-07-22 23:22:18.99 spid99      * netutils                       000007FEFC510000  000007FEFC51BFFF  0000c000
              2014-07-22 23:22:18.99 spid99      * msvcrt                         000007FEFD790000  000007FEFD82EFFF  0009f000
              2014-07-22 23:22:18.99 spid99      * srvcli                         000007FEFC8D0000  000007FEFC8F2FFF  00023000
              2014-07-22 23:22:18.99 spid99      * RPCRT4                         000007FEFD1F0000  000007FEFD31CFFF  0012d000
              2014-07-22 23:22:18.99 spid99      * wkscli                         000007FEFA260000  000007FEFA274FFF  00015000
              2014-07-22 23:22:18.99 spid99      * pdh                            000007FEF58F0000  000007FEF593DFFF  0004e000
              2014-07-22 23:22:18.99 spid99      * ADVAPI32                       000007FEFEAF0000  000007FEFEBCAFFF  000db000
              2014-07-22 23:22:18.99 spid99      * sechost                        000007FEFD5C0000  000007FEFD5DEFFF  0001f000
              2014-07-22 23:22:18.99 spid99      * opends60                       000007FEE91F0000  000007FEE91F8FFF  00009000
              2014-07-22 23:22:18.99 spid99      * MSVCR100                       0000000074A70000  0000000074B41FFF  000d2000
              2014-07-22 23:22:18.99 spid99      * MSVCP100                       00000000749A0000  0000000074A37FFF  00098000
              2014-07-22 23:22:18.99 spid99      * SQLOS                          000007FEE81C0000  000007FEE81C6FFF  00007000
              2014-07-22 23:22:18.99 spid99      * sqlmin                         000007FEE2FA0000  000007FEE6E3CFFF  03e9d000
              2014-07-22 23:22:18.99 spid99      * CRYPT32                        000007FEFCEB0000  000007FEFD01BFFF  0016c000
              2014-07-22 23:22:18.99 spid99      * MSASN1                         000007FEFCE40000  000007FEFCE4EFFF  0000f000
              2014-07-22 23:22:18.99 spid99      * Secur32                        000007FEFCA50000  000007FEFCA5AFFF  0000b000
              2014-07-22 23:22:18.99 spid99      * SSPICLI                        000007FEFCC00000  000007FEFCC24FFF  00025000
              2014-07-22 23:22:18.99 spid99      * PSAPI                          00000000771C0000  00000000771C6FFF  00007000
              2014-07-22 23:22:18.99 spid99      * WS2_32                         000007FEFE940000  000007FEFE98CFFF  0004d000
              2014-07-22 23:22:18.99 spid99      * NSI                            000007FEFECE0000  000007FEFECE7FFF  00008000
              2014-07-22 23:22:18.99 spid99      * WINHTTP                        000007FEF17A0000  000007FEF1810FFF  00071000
              2014-07-22 23:22:18.99 spid99      * webio                          000007FEF1730000  000007FEF1793FFF  00064000
              2014-07-22 23:22:18.99 spid99      * USER32                         0000000076F00000  0000000076FF9FFF  000fa000
              2014-07-22 23:22:18.99 spid99      * GDI32                          000007FEFDA60000  000007FEFDAC6FFF  00067000
              2014-07-22 23:22:18.99 spid99      * LPK                            000007FEFECF0000  000007FEFECFDFFF  0000e000
              2014-07-22 23:22:18.99 spid99      * USP10                          000007FEFD6C0000  000007FEFD788FFF  000c9000
              2014-07-22 23:22:18.99 spid99      * ole32                          000007FEFF050000  000007FEFF252FFF  00203000
              2014-07-22 23:22:18.99 spid99      * OLEAUT32                       000007FEFD5E0000  000007FEFD6B6FFF  000d7000
              2014-07-22 23:22:18.99 spid99      * sqlTsEs                        000007FEE2700000  000007FEE2F92FFF  00893000
              2014-07-22 23:22:18.99 spid99      * sqldk                          000007FEE2230000  000007FEE26F8FFF  004c9000
              2014-07-22 23:22:18.99 spid99      * WINMM                          000007FEF0870000  000007FEF08AAFFF  0003b000
              2014-07-22 23:22:18.99 spid99      * qds                            000007FEE21A0000  000007FEE222DFFF  0008e000
              2014-07-22 23:22:18.99 spid99      * sqllang                        000007FEDFF30000  000007FEE2196FFF  02267000
              2014-07-22 23:22:18.99 spid99      * USERENV                        000007FEFCE50000  000007FEFCE6DFFF  0001e000
              2014-07-22 23:22:18.99 spid99      * profapi                        000007FEFCE30000  000007FEFCE3EFFF  0000f000
              2014-07-22 23:22:18.99 spid99      * LOGONCLI                       000007FEFC3D0000  000007FEFC3FFFFF  00030000
              2014-07-22 23:22:18.99 spid99      * SAMCLI                         000007FEF9A50000  000007FEF9A63FFF  00014000
              2014-07-22 23:22:18.99 spid99      * AUTHZ                          000007FEFC800000  000007FEFC82EFFF  0002f000
              2014-07-22 23:22:18.99 spid99      * WINTRUST                       000007FEFCE70000  000007FEFCEA9FFF  0003a000
              2014-07-22 23:22:18.99 spid99      * IMM32                          000007FEFF2E0000  000007FEFF30DFFF  0002e000
              2014-07-22 23:22:18.99 spid99      * MSCTF                          000007FEFEBD0000  000007FEFECD8FFF  00109000
              2014-07-22 23:22:18.99 spid99      * CRYPTBASE                      000007FEFCC90000  000007FEFCC9EFFF  0000f000
              2014-07-22 23:22:18.99 spid99      * instapi120                     000007FEF59F0000  000007FEF59FEFFF  0000f000
              2014-07-22 23:22:18.99 spid99      * cscapi                         000007FEEE370000  000007FEEE37EFFF  0000f000
              2014-07-22 23:22:18.99 spid99      * sqlevn70                       000007FEDFC80000  000007FEDFF2CFFF  002ad000
              2014-07-22 23:22:18.99 spid99      * CRYPTSP                        000007FEFC630000  000007FEFC646FFF  00017000
              2014-07-22 23:22:18.99 spid99      * rsaenh                         000007FEFC320000  000007FEFC366FFF  00047000
              2014-07-22 23:22:18.99 spid99      * imagehlp                       000007FEFD3C0000  000007FEFD3D8FFF  00019000
              2014-07-22 23:22:18.99 spid99      * ncrypt                         000007FEFC7B0000  000007FEFC7FCFFF  0004d000
              2014-07-22 23:22:18.99 spid99      * bcrypt                         000007FEFC780000  000007FEFC7A1FFF  00022000
              2014-07-22 23:22:18.99 spid99      * bcryptprimitives               000007FEFC260000  000007FEFC2ABFFF  0004c000
              2014-07-22 23:22:18.99 spid99      * GPAPI                          000007FEFC0C0000  000007FEFC0DAFFF  0001b000
              2014-07-22 23:22:18.99 spid99      * cryptnet                       000007FEF9A70000  000007FEF9A96FFF  00027000
              2014-07-22 23:22:18.99 spid99      * WLDAP32                        000007FEFE860000  000007FEFE8B1FFF  00052000
              2014-07-22 23:22:18.99 spid99      * SHLWAPI                        000007FEFF260000  000007FEFF2D0FFF  00071000
              2014-07-22 23:22:18.99 spid99      * CLUSAPI                        000007FEEBA30000  000007FEEBA7FFFF  00050000
              2014-07-22 23:22:18.99 spid99      * cryptdll                       000007FEFC8B0000  000007FEFC8C3FFF  00014000
              2014-07-22 23:22:18.99 spid99      * RESUTILS                       000007FEEB1D0000  000007FEEB1E8FFF  00019000
              2014-07-22 23:22:18.99 spid99      * VERSION                        000007FEFBF00000  000007FEFBF0BFFF  0000c000
              2014-07-22 23:22:18.99 spid99      * hkruntime                      000007FEDF9C0000  000007FEDFC76FFF  002b7000
              2014-07-22 23:22:18.99 spid99      * hkcompile                      000007FEDF900000  000007FEDF9BDFFF  000be000
              2014-07-22 23:22:18.99 spid99      * XmlLite                        000007FEFAA90000  000007FEFAAC4FFF  00035000
              2014-07-22 23:22:18.99 spid99      * hkengine                       000007FEDF750000  000007FEDF8FEFFF  001af000
              2014-07-22 23:22:18.99 spid99      * dbghelp                        000000006D870000  000000006DA05FFF  00196000
              2014-07-22 23:22:18.99 spid99      * pcwum                          000007FEFC220000  000007FEFC22CFFF  0000d000
              2014-07-22 23:22:18.99 spid99      * credssp                        000007FEFC210000  000007FEFC219FFF  0000a000
              2014-07-22 23:22:18.99 spid99      * msv1_0                         000007FEFC560000  000007FEFC5B1FFF  00052000
              2014-07-22 23:22:18.99 spid99      * kerberos                       000007FEFC650000  000007FEFC707FFF  000b8000
              2014-07-22 23:22:18.99 spid99      * schannel                       000007FEFC370000  000007FEFC3C6FFF  00057000
              2014-07-22 23:22:18.99 spid99      * MSCOREE                        000007FEF9870000  000007FEF98DEFFF  0006f000
              2014-07-22 23:22:18.99 spid99      * mscoreei                       000007FEF97D0000  000007FEF9866FFF  00097000
              2014-07-22 23:22:18.99 spid99      * security                       0000000074590000  0000000074592FFF  00003000
              2014-07-22 23:22:18.99 spid99      * CLBCatQ                        000007FEFEFB0000  000007FEFF048FFF  00099000
              2014-07-22 23:22:18.99 spid99      * sqlncli11                      0000000071B60000  0000000071EB2FFF  00353000
              2014-07-22 23:22:18.99 spid99      * COMCTL32                       000007FEF98E0000  000007FEF997FFFF  000a0000
              2014-07-22 23:22:18.99 spid99      * COMDLG32                       000007FEFD320000  000007FEFD3B6FFF  00097000
              2014-07-22 23:22:18.99 spid99      * SHELL32                        000007FEFDAD0000  000007FEFE857FFF  00d88000
              2014-07-22 23:22:18.99 spid99      * SQLNCLIR11                     0000000071910000  0000000071947FFF  00038000
              2014-07-22 23:22:18.99 spid99      * netbios                        000007FEF99A0000  000007FEF99A9FFF  0000a000
              2014-07-22 23:22:18.99 spid99      * clr                            000007FEF8E60000  000007FEF97CAFFF  0096b000
              2014-07-22 23:22:18.99 spid99      * MSVCR110_CLR0400               000007FEF8D80000  000007FEF8E51FFF  000d2000
              2014-07-22 23:22:18.99 spid99      * mscorlib.ni                    000007FEF7780000  000007FEF8D79FFF  015fa000
              2014-07-22 23:22:18.99 spid99      * SqlAccess                      000000006D7F0000  000000006D861FFF  00072000
              2014-07-22 23:22:18.99 spid99      * clrjit                         000007FEF6930000  000007FEF6A60FFF  00131000
              2014-07-22 23:22:18.99 spid99      * nlssorting                     000007FEF99D0000  000007FEF99E5FFF  00016000
              2014-07-22 23:22:18.99 spid99      * BatchParser                    000007FEE6E40000  000007FEE6E67FFF  00028000
              2014-07-22 23:22:18.99 spid99      * ntmarta                        000007FEFBED0000  000007FEFBEFCFFF  0002d000
              2014-07-22 23:22:18.99 spid99      * RsFxFt                         000007FEE81B0000  000007FEE81B8FFF  00009000
              2014-07-22 23:22:18.99 spid99      * netfxperf                      000007FEF9990000  000007FEF999FFFF  00010000
              2014-07-22 23:22:18.99 spid99      * perfcounter                    000007FEE9C70000  000007FEE9CABFFF  0003c000
              2014-07-22 23:22:18.99 spid99      * CorperfmonExt                  000007FEE9B80000  000007FEE9BA6FFF  00027000
              2014-07-22 23:22:18.99 spid99      * WTSAPI32                       000007FEFA890000  000007FEFA8A0FFF  00011000
              2014-07-22 23:22:18.99 spid99      * aspnet_counters                000007FEF9980000  000007FEF9987FFF  00008000
              2014-07-22 23:22:18.99 spid99      * aspnet_perf                    000007FEEA380000  000007FEEA38CFFF  0000d000
              2014-07-22 23:22:18.99 spid99      * aspnet_perf                    000007FEE9F00000  000007FEE9F0CFFF  0000d000
              2014-07-22 23:22:18.99 spid99      * MSVCR80                        0000000071300000  00000000713C8FFF  000c9000
              2014-07-22 23:22:18.99 spid99      * DTSPipelinePerf110             00000000712F0000  00000000712FBFFF  0000c000
              2014-07-22 23:22:18.99 spid99      * DTSPipelinePerf120             000007FEE99B0000  000007FEE99BCFFF  0000d000
              2014-07-22 23:22:18.99 spid99      * esentprf                       000007FEE9900000  000007FEE9911FFF  00012000
              2014-07-22 23:22:18.99 spid99      * msdtcuiu                       000007FEE98B0000  000007FEE98FFFFF  00050000
              2014-07-22 23:22:18.99 spid99      * ATL                            000007FEFB6A0000  000007FEFB6B8FFF  00019000
              2014-07-22 23:22:18.99 spid99      * MSDTCPRX                       000007FEE9630000  000007FEE96EBFFF  000bc000
              2014-07-22 23:22:18.99 spid99      * MTXCLU                         000007FEE93F0000  000007FEE944FFFF  00060000
              2014-07-22 23:22:18.99 spid99      * ktmw32                         000007FEFB650000  000007FEFB659FFF  0000a000
              2014-07-22 23:22:18.99 spid99      * DNSAPI                         000007FEFC400000  000007FEFC45AFFF  0005b000
              2014-07-22 23:22:18.99 spid99      * MSMDCTR120                     000007FEE9950000  000007FEE9959FFF  0000a000
              2014-07-22 23:22:18.99 spid99      * perf-MSSQL$SHAREPOINT-sqlctr12.0.2000.8 000007FEE9190000  000007FEE91E2FFF  00053000
              2014-07-22 23:22:18.99 spid99      * ftimport                       0000000060000000  0000000060024FFF  00025000
              2014-07-22 23:22:18.99 spid99      * MSFTE                          0000000049980000  0000000049D2DFFF  003ae000
              2014-07-22 23:22:18.99 spid99      * perf-MSSQLSERVER-sqlctr12.0.2000.8 000007FEE90C0000  000007FEE9112FFF  00053000
              2014-07-22 23:22:18.99 spid99      * mswsock                        000007FEFC5D0000  000007FEFC624FFF  00055000
              2014-07-22 23:22:18.99 spid99      * wship6                         000007FEFC5C0000  000007FEFC5C6FFF  00007000
              2014-07-22 23:22:18.99 spid99      * wshtcpip                       000007FEFBFD0000  000007FEFBFD6FFF  00007000
              2014-07-22 23:22:18.99 spid99      * ntdsapi                        000007FEF9EE0000  000007FEF9F06FFF  00027000
              2014-07-22 23:22:18.99 spid99      * IPHLPAPI                       000007FEFA5B0000  000007FEFA5D6FFF  00027000
              2014-07-22 23:22:18.99 spid99      * WINNSI                         000007FEFA5A0000  000007FEFA5AAFFF  0000b000
              2014-07-22 23:22:18.99 spid99      * rasadhlp                       000007FEF9F10000  000007FEF9F17FFF  00008000
              2014-07-22 23:22:18.99 spid99      * fwpuclnt                       000007FEFA530000  000007FEFA582FFF  00053000
              2014-07-22 23:22:18.99 spid99      * msmdctr120                     000007FEE9020000  000007FEE9029FFF  0000a000
              2014-07-22 23:22:18.99 spid99      * perfdisk                       000007FEE9010000  000007FEE901CFFF  0000d000
              2014-07-22 23:22:18.99 spid99      * CFGMGR32                       000007FEFD040000  000007FEFD075FFF  00036000
              2014-07-22 23:22:18.99 spid99      * perfnet                        000007FEE8A80000  000007FEE8A89FFF  0000a000
              2014-07-22 23:22:18.99 spid99      * BROWCLI                        000007FEE9060000  000007FEE9071FFF  00012000
              2014-07-22 23:22:18.99 spid99      * perfos                         000007FEE8A70000  000007FEE8A7AFFF  0000b000
              2014-07-22 23:22:18.99 spid99      * perfproc                       000007FEE8A60000  000007FEE8A6DFFF  0000e000
              2014-07-22 23:22:18.99 spid99      * rasctrs                        000007FEE8A50000  000007FEE8A57FFF  00008000
              2014-07-22 23:22:18.99 spid99      * rasman                         000007FEFA700000  000007FEFA71BFFF  0001c000
              2014-07-22 23:22:18.99 spid99      * winspool                       000007FEE8250000  000007FEE82C0FFF  00071000
              2014-07-22 23:22:18.99 spid99      * perf-MSSQL12.SHAREPOINT-sqlagtctr 000000006F6B0000  000000006F6CBFFF  0001c000
              2014-07-22 23:22:18.99 spid99      * perf-MSSQL12.MSSQLSERVER-sqlagtctr 000000006F620000  000000006F63BFFF  0001c000
              2014-07-22 23:22:18.99 spid99      * tapiperf                       000007FEE8190000  000007FEE8196FFF  00007000
              2014-07-22 23:22:18.99 spid99      * Perfctrs                       000007FEE8180000  000007FEE818FFFF  00010000
              2014-07-22 23:22:18.99 spid99      * perfts                         000007FEE80F0000  000007FEE80F8FFF  00009000
              2014-07-22 23:22:18.99 spid99      * WINSTA                         000007FEFCD40000  000007FEFCD7CFFF  0003d000
              2014-07-22 23:22:18.99 spid99      * UTILDLL                        000007FEE80B0000  000007FEE80C6FFF  00017000
              2014-07-22 23:22:18.99 spid99      * SETUPAPI                       000007FEFD3E0000  000007FEFD5B6FFF  001d7000
              2014-07-22 23:22:18.99 spid99      * DEVOBJ                         000007FEFD130000  000007FEFD149FFF  0001a000
              2014-07-22 23:22:18.99 spid99      * usbperf                        000007FEE80A0000  000007FEE80A6FFF  00007000
              2014-07-22 23:22:18.99 spid99      * msxml3                         000007FEE9450000  000007FEE9623FFF  001d4000
              2014-07-22 23:22:18.99 spid99      * SAMLIB                         000007FEF9A30000  000007FEF9A4CFFF  0001d000
              2014-07-22 23:22:18.99 spid99      * xpsqlbot                       000007FEDF4C0000  000007FEDF4C7FFF  00008000
              2014-07-22 23:22:18.99 spid99      * Sort00001000                   000007FEDF2E0000  000007FEDF3B4FFF  000d5000
              2014-07-22 23:22:18.99 spid99      * System.ni                      000007FEF6AC0000  000007FEF777AFFF  00cbb000
              2014-07-22 23:22:18.99 spid99      * xpstar                         000007FEDF270000  000007FEDF2D8FFF  00069000
              2014-07-22 23:22:18.99 spid99      * ODBC32                         000007FEE96F0000  000007FEE97A0FFF  000b1000
              2014-07-22 23:22:18.99 spid99      * SQLSCM                         000007FEDF3C0000  000007FEDF3CEFFF  0000f000
              2014-07-22 23:22:18.99 spid99      * odbcint                        0000000071180000  00000000711B7FFF  00038000
              2014-07-22 23:22:18.99 spid99      * xpstar                         000007FEDF4B0000  000007FEDF4BCFFF  0000d000
              2014-07-22 23:22:18.99 spid99      * System.Data                    000007FEEC810000  000007FEECB2DFFF  0031e000
              2014-07-22 23:22:18.99 spid99      * System.Transactions            000007FEE8AB0000  000007FEE8AF8FFF  00049000
              2014-07-22 23:22:18.99 spid99      * System.Security.ni             000007FEDF180000  000007FEDF26CFFF  000ed000
              2014-07-22 23:22:18.99 spid99      * System.Xml.ni                  000007FEF5E30000  000007FEF67EFFFF  009c0000
              2014-07-22 23:22:18.99 spid99      * dsrole                         000007FEFB690000  000007FEFB69BFFF  0000c000
              2014-07-22 23:22:18.99 spid99      * dbghelp                        000000006DEC0000  000000006E055FFF  00196000
              2014-07-22 23:22:18.99 spid99      *
              2014-07-22 23:22:18.99 spid99      *     P1Home: 0000000012E6DBE0:  00000000C0000005  0000000000000000  000007FEE36765D3  0000000000000002  0000000000000000  0000000000000000  
              2014-07-22 23:22:18.99 spid99      *     P2Home: 0000000012E6D6F0:  0000000012E6DBE0  0000000012E6D6F0  0000000200000000  0000000200000000  0000000000000000  0000000012E6DA40  
              2014-07-22 23:22:18.99 spid99      *     P3Home: 0000000200000000:  000100040002C000  0000000201ECA060  0000000000002000  0000000200002000  0000000200002000  0000000200001F86  
              2014-07-22 23:22:18.99 spid99      *     P4Home: 0000000200000000:  000100040002C000  0000000201ECA060  0000000000002000  0000000200002000  0000000200002000  0000000200001F86  
              2014-07-22 23:22:18.99 spid99      *     P5Home: 0000000000000000:  
              2014-07-22 23:22:18.99 spid99      *     P6Home: 0000000012E6DA40:  000000028C38B788  000007FEE306A145  0000000000000000  0000000000000000  0000B6DF1E0F0000  000000028C38B830  
              2014-07-22 23:22:18.99 spid99      * ContextFlags: 000000000010001F:  0000010000001400  0000340000000200  000001000000D400  0000000000000000  0000000000000000  0000020000000000  
              2014-07-22 23:22:18.99 spid99      *      MxCsr: 0000000000001FA8:  
              2014-07-22 23:22:18.99 spid99      *      SegCs: 0000000000000033:  
              2014-07-22 23:22:18.99 spid99      *      SegDs: 000000000000002B:  
              2014-07-22 23:22:18.99 spid99      *      SegEs: 000000000000002B:  
              2014-07-22 23:22:18.99 spid99      *      SegFs: 0000000000000053:  
              2014-07-22 23:22:18.99 spid99      *      SegGs: 000000000000002B:  
              2014-07-22 23:22:18.99 spid99      *      SegSs: 000000000000002B:  
              2014-07-22 23:22:18.99 spid99      *     EFlags: 0000000000010206:  00007713A0700000  0000FFFFFFFF0000  0000000000000000  0000000000000000  000000000FA00000  0000000000000000  
              2014-07-22 23:22:18.99 spid99      *        Rax: 0000000000000000:  
              2014-07-22 23:22:18.99 spid99      *        Rcx: 0000000000000FF0:  
              2014-07-22 23:22:18.99 spid99      *        Rdx: 0000000000000006:  
              2014-07-22 23:22:18.99 spid99      *        Rbx: 000000000000007F:  
              2014-07-22 23:22:18.99 spid99      *        Rsp: 0000000012E6DCB0:  000000000000007F  0000000012E6DD59  000000026E9B4FD8  0000000000000000  0000000200000000  000007FE00000001  
              2014-07-22 23:22:18.99 spid99      *        Rbp: 0000000012E6DD59:  0100000000000000  0000000000000000  610000000248B151  D10000A5E9CC24E1  50000007FEE2FCC1  000000000248B141  
              2014-07-22 23:22:18.99 spid99      *        Rsi: 000000026E9B4FD8:  000007FEE64E0270  0000004000000004  0000000000000FF0  000000026E9B4EB0  000000026E9B5FE0  0000000248B147F0  
              2014-07-22 23:22:18.99 spid99      *        Rdi: 0000000012E6DDE0:  0000000200007F00  0000000000000000  0000000248B14BF0  000007FEE303EF22  0000000200003800  00000000B6DF1E0F  
              2014-07-22 23:22:18.99 spid99      *         R8: 0000000000000000:  
              2014-07-22 23:22:18.99 spid99      *         R9: 000000026E9B4FA0:  000007FEE64E02E0  00000001C7CF9218  0000000248B147F0  000000026E9B4F40  000000026E9B4E51  0000000000000000  
              2014-07-22 23:22:18.99 spid99      *        R10: 000000026E9B4FE0:  0000004000000004  0000000000000FF0  000000026E9B4EB0  000000026E9B5FE0  0000000248B147F0  000000028A798500  
              2014-07-22 23:22:18.99 spid99      *        R11: 0000000012E6DA90:  00000002886CC040  0000000248B153D0  0000000000000000  000000026E9B5008  0000000000000000  000007FEE307215D  
              2014-07-22 23:22:18.99 spid99      *        R12: 0000000000000000:  
              2014-07-22 23:22:18.99 spid99      *        R13: 0000000000000002:  
              2014-07-22 23:22:18.99 spid99      *        R14: 0000000248B153D0:  000007FEE2B795A0  000007FEE2701390  0000000248B7C440  0000000012E6DDE0  0000000248B7C340  0000000248B15430  
              2014-07-22 23:22:18.99 spid99      *        R15: 00000002886CC040:  00000002886CDF00  00000002886B47F0  00000002886CC0C0  00000002886B4470  00000002886B5560  00000002886CD640  
              2014-07-22 23:22:18.99 spid99      *        Rip: 000007FEE36765D3:  8B4CC88B48108B48  E7558D486852FFF0  FF41C88B48008B4C  1374040A45F61050  8B49D3B60FC78B4C  CDE90007275FE8CE  
              2014-07-22 23:22:18.99 spid99      * *******************************************************************************
              2014-07-22 23:22:18.99 spid99      * -------------------------------------------------------------------------------
              2014-07-22 23:22:18.99 spid99      * Short Stack Dump
              2014-07-22 23:22:19.06 spid99      000007FEE36765D3 Module(sqlmin+00000000006D65D3)
              2014-07-22 23:22:19.06 spid99      000007FEE2701437 Module(sqlTsEs+0000000000001437)
              2014-07-22 23:22:19.06 spid99      000007FEE303FAEB Module(sqlmin+000000000009FAEB)
              2014-07-22 23:22:19.07 spid99      000007FEE2FFE6EF Module(sqlmin+000000000005E6EF)
              2014-07-22 23:22:19.07 spid99      000007FEDFF3F517 Module(sqllang+000000000000F517)
              2014-07-22 23:22:19.07 spid99      000007FEDFF5CEBE Module(sqllang+000000000002CEBE)
              2014-07-22 23:22:19.07 spid99      000007FEDFF5CCB9 Module(sqllang+000000000002CCB9)
              2014-07-22 23:22:19.07 spid99      000007FEDFF3A058 Module(sqllang+000000000000A058)
              2014-07-22 23:22:19.07 spid99      000007FEDFF3B66B Module(sqllang+000000000000B66B)
              2014-07-22 23:22:19.07 spid99      000007FEDFF3AC2E Module(sqllang+000000000000AC2E)
              2014-07-22 23:22:19.08 spid99      000007FEDFF42267 Module(sqllang+0000000000012267)
              2014-07-22 23:22:19.09 spid99      000007FEDFF49087 Module(sqllang+0000000000019087)
              2014-07-22 23:22:19.09 spid99      000007FEE22349D0 Module(sqldk+00000000000049D0)
              2014-07-22 23:22:19.09 spid99      000007FEE22347B4 Module(sqldk+00000000000047B4)
              2014-07-22 23:22:19.09 spid99      000007FEE22345B6 Module(sqldk+00000000000045B6)
              2014-07-22 23:22:19.09 spid99      000007FEE22536FF Module(sqldk+00000000000236FF)
              2014-07-22 23:22:19.09 spid99      000007FEE22538F0 Module(sqldk+00000000000238F0)
              2014-07-22 23:22:19.09 spid99      000007FEE2253246 Module(sqldk+0000000000023246)
              2014-07-22 23:22:19.11 spid99      000007FEE2253558 Module(sqldk+0000000000023558)
              2014-07-22 23:22:19.12 spid99      0000000076DF59ED Module(kernel32+00000000000159ED)
              2014-07-22 23:22:19.12 spid99      000000007702C541 Module(ntdll+000000000002C541)
              2014-07-22 23:22:19.16 spid99      Stack Signature for the dump is 0x000000017A3D8D5C
              2014-07-22 23:22:20.64 spid99      [INFO]          Identity             Begin               End |        State                 Result     Error  Speculate   Prepared LazyCommit   ReadOnly |      Transaction         Database          ThreadId |   ReadSet WriteSet   ScanSet Savepoint LogSizeRq | CommitDep TotalComm       Dependent 0       Dependent 1       Dependent 2       Dependent 3       Dependent 4       Dependent 5       Dependent 6       Dependent 7 |            Area  Location |
              2014-07-22 23:22:25.45 spid99      External dump process return code 0x20000001.
              External dump process returned no errors.

              2014-07-22 23:22:25.50 Server      Error: 17310, Severity: 20, State: 1.
              2014-07-22 23:22:25.50 Server      A user request from the session with SPID 99 generated a fatal exception. SQL Server is terminating this session. Contact Product Support Services with the dump produced in the log directory.

              Tlog just record DML ?

              $
              0
              0

              Dear:

                 I met " 

              Msg 3023, Level 16, 

              Backup, file manipulation operations (such as ALTER DATABASE ADD FILE) and encryption changes on a database must be serialized. Reissue the statement after the current backup or file manipulation operation is completed.

              "

              Does it means I can not add new datafile during the database backup is running ?  Since sql server has TLOG , does not

              it remember the datafiles changed, right ?  It was too weak.

              how to convert float value in hh:mm:ss format

              $
              0
              0

              Hi Everyone,

              I have a requirement that we have time in hours like 21.52 hrs and we want to convert it into hh:mm:ss format

              Please anyone suggest me..

              Thanks 

              Hierarical Query Performance

              $
              0
              0

              Hi Folks,

              I need a quick help from you. I have a hierarical query that is used in the front-end application.

              WITH EMP ([EMP_ID],[NAME],  [MANAGER_NAME]  ,[MANAGER_ID], [CHGS]) AS 

              (   SELECT [EMP_ID],[NAME],[MANAGER_NAME]  ,[MANAGER_ID], [CHGS]  FROM EMPLOYEE
               WHERE [MANAGER_ID]=101 or [EMP_ID]=101 and  BILLDATE  BETWEEN '10-APRIL-2013' and '10-MAY-2013'
                UNION all  
              SELECT a.[EMP_ID], a.[NAME], a.[MANAGER_NAME]  ,a.[MANAGER_ID], a.[CHGS] FROm EMPLOYEE as a inner  JOIN EMP b ON a.[MANAGER_ID]=b.[EMP_ID]) 

              SELECT round(sum(distinct([CHGS]))/100,0) as charges FROM EMP.

              In Employee table there were 2000 records and it is taking 6 minutes.

              Can you kindly suggest me how to improve the performance of this query. Appreciate your help.

              Thanks,

              Ven.

              SQL 2012 OBJECTSTORE_LOCK_MANAGER

              $
              0
              0

              We recently experienced a significant performance degradation on our main TP SQL server (Current primary of SQL2012 - 3 servers in High Availability config)

              This was diagnosed to the OBJECTSTORE_LOCK_MANAGER consuming approx. 66% of available memory (40gb) which it would not release.

              Running 

              DBCC FREESYSTEMCACHE ( 'ALL' )

              cleared the problem

              Investigating log files has not provided info to determine how this situation occurred. What may have caused OBJECTSTORE_LOCK_MANAGER to reach this state?


              hojo

              Viewing all 12644 articles
              Browse latest View live


              <script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>