SQL Server Alert System: 'Severity 020'

Hi,
I received the following alert in our PRODuction database server:
SQL Server Alert System: 'Severity 020' occurred on server_name
Cannot attach the file 'DB' as database 'Db'. [CLIENT: xx.xxx.xx.xx]
Can anyone tell me what this error actually mean?
Did the database DB got corrupted?

Hi,
I only configured the alert. I am trying to find the issue which would have caused this alert in the server.
Check
ERRORLOG and see if you have any severity 20 error logged at the same time when you received alert.
Balmukund Lakhani
Please mark solved if I've answered your question, vote for it as helpful to help other users find a solution quicker
This posting is provided "AS IS" with no warranties, and confers no rights.
My Blog |
Team Blog | @Twitter
| Facebook
Author: SQL Server 2012 AlwaysOn -
Paperback, Kindle

Similar Messages

  • Sql server jdbc system

    Hello All,
    My connnection tests for sql server fail when I create a JDBC system object.  I used the exact same steps to create a oracle system object (user mapping,permissions)(of course, i used the url string and driver class pertinent to sql server) and the oracle system connection test works.
    Can anyone advise me regarding this?
    Thanks

    Hi Vijay,
    1. Minimum parameters for SQL Server are
    Connection url-jdbc:sap:sqlserver://server.domain.com:1433;DatabaseName=Northwind
    Driver class name-com.sap.portals.jdbc.sqlserver.SQLServerDriver
    Validate connection- Yes
    User Mapping type- admin,user
    2. Maintain Alias.
    3. Maintain user-mapping in personalize link in mast head.
    4. Test the connection.
    Suppose if it still fails the test, then specify the IP address of the server name in connection url. For more info follow the SAP note - 773401 (Configuring Portal JDBC System connection properties ).
    Hope this helps,
    Thanks,
    Praveen
    PS.Dont forget to reward points

  • Capture duration time and use it in customized the SQL Server Job System Message

    Hi there
    I am trying to capture the job duration time and put it on the customized Job email subject.
    This is the original message from SQL server, the Bold one is what I am trying to capture.
    JOB RUN:            
    'Hello' was run on 7/30/2014 at 8:05:00 AM
    DURATION:       
    0 hours, 0 minutes, 2 seconds
    STATUS:              
    Succeeded
    MESSAGES:        The job succeeded. 
    The Job was invoked by Schedule 27 (Job 2).  The last step to run was step 1 (Test).
    Is there anyway to do that? I have tried to pull it from jobhistory and I did't have any luck.
    Cheers,
    Matt

    You can take this code and send it to a table, then create your reports
    ; WITH CTE as -- Use a Simple Common Table Expression
    SELECT ROW_NUMBER() OVER (PARTITION BY job_name -- Add the comma separate columns that need to be unique in the table
    ORDER BY ( SELECT 0 ) ) RN ,* -- If the order does not matter on the one you want to keep - the select 0 work well; otherwise add the appropriate order by to make the row you want to keep appear at the top
    FROM (
    select TOP 100000 job_name, run_datetime, run_duration,run_status
    from
    select job_name, run_datetime,run_status,
    SUBSTRING(run_duration, 1, 2) + ':' + SUBSTRING(run_duration, 3, 2) + ':' +
    SUBSTRING(run_duration, 5, 2) AS run_duration
    from
    select DISTINCT
    j.name as job_name,
    run_datetime = CONVERT(DATETIME, RTRIM(run_date)) +
    (run_time * 9 + run_time % 10000 * 6 + run_time % 100 * 10) / 216e4,
    run_duration = RIGHT('000000' + CONVERT(varchar(6), run_duration), 6)
    ,h.run_status
    from msdb..sysjobhistory (NOLOCK)h
    inner join msdb..sysjobs (NOLOCK)j
    on h.job_id = j.job_id
    where h.step_id = 0
    ) t
    ) t
    order by job_name, run_datetime desc
    )X
    SELECT @@servername as [ServerName],RN,job_name,run_datetime,run_duration,run_status
    FROM CTE
    ORDER BY run_duration desc
    Javier Villegas |
    @javier_vill | http://sql-javier-villegas.blogspot.com/
    Please click "Propose As Answer" if a post solves your problem or "Vote As Helpful" if a post has been useful to you

  • SQL Server 2012 PowerPivot System Service not visible in Central Administration

    Hi all,
    I want to test PowerPivot 2012 on the following configuration:
    - Windows Server 2008 R2 
    - Sharepoint 2010 - Enterprise edition
    - SQL Server 2008 R2 
    - PowerPivot for Sharepoint<o:p></o:p>
    As such, I downloaded SQL Server 2012 Evaluation and tried to upgrade SQL Server 2008 PowerPivot for Sharepoint instance to SQL Server 2012 PowerPivot
    for Sharepoint. It didn't work as it's not possible to upgrade from Enterprise to Evaluation edition without a pid.
    Next, I uninstalled the existing SQL Server 2008 PowerPivot for Sharepoint and I installed the SQL Server 2012 PowerPivot for Sharepoint. 
    I started to configure PowerPivot in Central administration (http://msdn.microsoft.com/en-us/library/ee210609.aspx) , but I got stuck at the 2nd step Create and Configure a PowerPivot
    Service Application (http://msdn.microsoft.com/en-us/library/ee210685.aspx) in Central Administration.
    The problem is that both SQL Integration Service  and SQL Server PowerPivot System service are not visible in Central administration > Manage
    services on server; however they are visible and running in Windows Administrative Tools > Services.
    Do you think the services are missing in Sharepoint Central Administration because the Sharepoint configuration database is on SQL Server 2008, while the Powerpivot instance is on SQL Server 2012 ?

    Thank you for the suggestion.
    Meanwhile I have managed to solve the problem. What I've done:
    - remove PowerPivot configuration using the Power Configuration Tool
    - uninstall PowerPivot
    - reinstall PowerPivot
    - run PowerPivot Configuration Tool - I still got the parent service error
    - remove PowerPivot configuration using the Power Configuration Tool
    - run PowerPivot Configuration Tool - this time I received another error regarding the user that runs SQL Server Integration services
    - check  Sql Server Analysis Service account in Central Administration > Security > Service accountsManage service account - it seems that it was running under Local System account, although in Administrative Tools > Services it appeared to
    be run by my domain account
    - set a domain account for Sql Server Analysis Service in Central Administration
    - run the PowerPivot Configuration Tool - this time it went smoothly.
    The following url provides very useful info related to this type of issue: http://whitepages.unlimitedviz.com/2012/09/troubleshooting-and-removing-a-failed-installation-or-upgrade-of-powerpivot-for-sharepoint/

  • SQL SERVER AGENT DASHBOARD and Monitoring system

    Hi
    we are shopping around for a SQL SERVER management system where users that are not familiar with SQL can monitor Jobs and Job steps. Users will be able to see when a job failed and restart the job (if allowed) or call DBAs if needed based on instructions.
    does anybody know of such a tool that would help operations peform their job?
    thanks
    eddy
    eddy.a

    Sorry mistakenly marked as proposed answer.
    Sql Server 2012 has come with so many nice features which has helped me also to get validated so many stuffs in on place and that is called as Policy Based Management. Here I need to register all required servers and then all applicable policies will be
    validated by executing them on daily or whenever you like.
    Also Central Management Server:
    An instance of SQL Server that is designated as a Central Management Server maintains server groups that contain the connection information for one or more instances of SQL Server. Transact-SQL statements and Policy-Based Management policies can be executed
    at the same time against server groups. You can also view the SQL Server log files on instances that are managed through a Central Management Server. Versions of SQL Server that are earlier than SQL Server 2008 cannot be designated as a Central Management
    Server.
    Transact-SQL statements can also be executed against local server groups in Registered Servers.
    More on below link:http://msdn.microsoft.com/en-in/library/bb895144.aspx
    For question on SSRS, there is option to embed buttons and by which you have option to put some commaned to execute like you can call some batch file to execute some jobs on other servers by using osql and others. This way you can  try and check.
    Santosh Singh

  • After sql server 2012 installation, I have changed sql server database engine service account from network service user to system user. What is disadvantages of this process?

         After
     sql server 2012 installation, I   attached my production db. Because of some reasons, i
     changed sql engine account from network service user to system user by means of sql server configuration manager.
         Now , there isn’t
     a problem at sql server running system.  But
    I have doubts that
     this can produce problems later. Because  sql server database engine account must have privileges that listed below;
    Log on as a service (SeServiceLogonRight)
    Replace a process-level token (SeAssignPrimaryTokenPrivilege)
    Bypass traverse checking (SeChangeNotifyPrivilege)
    Adjust memory quotas for a process
    (SeIncreaseQuotaPrivilege)
    Permission to start SQL Writer
    Permission to read the Event Log service
    Permission to read the Remote Procedure Call service
     While sql server installation, setup gives these
     privileges to network service user automatically, but changing user by means of sql confugarition manager does not give these
    privileges.
    Now, system user has privileges listed below. And sql server has been running for 1,5 months without any problems.
    Log on as a service (SeServiceLogonRight)
         Bypass traverse checking
    (SeChangeNotifyPrivilege) (Everyone user has his privileges. So i think that system user has this privilege also)
    What problems can occur because of this situation? Shall i give other privileges to system user and restart sql server or not? And how can i give these privileges to system user listed below;
    Replace a process-level token (
    this can be set from user rights assignments)
    Adjust memory quotas for a process
    (this can be set from user rights assignments)
    Permission to start SQL Writer ( 
    ? - give advice )
    Permission to read the Event Log service (
    ? - give advice )
    Permission to read the Remote Procedure Call service (
    ? - give advice )

     Our server is  windows server 2008 r2 enterprise edition. I have looked the bunch of permissions in user rights menu  that is in local security policy settings gui.
    And i have seen those permissions below were not granted to system user;
    Bypass traverse checking (SeChangeNotifyPrivilege)
    Adjust memory quotas for a process
    (SeIncreaseQuotaPrivilege)
    So, briefly you say, don't panic ?

  • System.Data.SqlClient.SqlException: The locale identifier (LCID) 16393 is not supported by SQL Server

    I have SQL Server 2005 Developer Edition. And my operating system is Windows Vista.
    I have written a procedure in C# and deployed it on SQL Server. However when i try to run it i get the following error.
    System.Data.SqlClient.SqlException: The locale identifier (LCID) 16393 is not supported by SQL Server
    Also I tried using same procedure in Windows XP machine and it workd fine. Can anyone help me what could be the problem?

    Hi Jonathan
    I tried posting the error box here but it is not allowing me.
    Here is the error coming up:
    A .NET framework error occured during execution of user-defined routine or aggregate.
    System.Data.SqlClient.Sqlexception:The locale identifier (LCID)1153 is not supported by SQL Server.
    System.Data.SqlClient.Sqlexception:atSystem.Data.SqlClient.SqlConnection.OnError(SqlExceptionexception, Boolean breakConnection)                            atSystem.Data.SqlClient.SqlInternalConnection.OnError(SqlExceptionexception, BoleanbreakConnection)                     atSystem.data.SqlCleitn.SqlInternalConnectionSmi.EventSink.ProcessMessagesandThrow(Boolean ignoreNonFatalMessages)             atMicrosoft.SqlServer.Server.SmiEventSink_Default.ProcessMessagesandThrow(Boolean ignoreNonFatalMessages) atSystem.Data.SqlClient.SqlCommand.RunExecuteNonQuerySmi.(BooleansendTo Pipe)                                           atSystem.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResultresult,StringmethodName,BooleansendToPipe)
                                                       atSystem.Data.SqlClient.SqlCommand.ExecuteNonQuery()
    I hope this will shed some light.
    Cheers

  • Have you moved from Unix/Oracle to Windows/SQL Server

    I am looking for people that have moved from Unix/Oracle to Windows/SQL Server...
    Would you do it again ?
    Did you save money ?
    Were you using Zones to virutalize on Unix ?
    Did you gain or loose overall Performance ?
    Have you had to perform a recovery on SQL Server ? 
    Have you done a recovery in Oracle ?
    Were you using Rman ?
    Which worked better ?
    We are going through an analysis of does it really make sense, save money and effect performance to move from a strong unix/oracle environment to a MS/SQL environment.
    THanks Rob
    [email protected]

    Hi,
    All our R/3 legacy systems are Windows/Oracle.
    All the new systems (BW, SRM, CRM, XI) are Windows/MSSQL.
    It was an order from the management to make the switch because of the high prices of Oracle licences.
    The official motto is now Oracle on Unix only and SQL server on Windows only.
    We get the same level of performance as with Oracle, but we, old SAP Oracle grumpy admins, are much more comfortable with Oracle admin than SQL server admin.
    imho, SQL server may seem simplier but it is much easier to look under the hood whith Oracle.
    We have to reinvent the wheel and it's kind of frustrating but we will cope with it...
    I would say that SQL server is not a good choice for BW usage because there is a lot more litterature on BW database optimisation for Oracle than MSSQL.
    The official SAP class does not speak at all about SQL server but has several chapters on Oracle...
    Regards,
    Olivier

  • Missing "Windows Service - SQL Server Analysis Services"

    Hi
    In my SharePoint 2013 Central Administration (this is a Project Server 2013 deployment), I got an alert for this error:
    PowerPivot: MidTier process account should have 'Full Read' permission on all associated SPWebApplications. 
    After reading
    this thread, I assumed I have the 2 accounts configured the wrong way, so I check
    this article to see how to change the accounts, but on the section
    "Change the account under which each service runs" it says to select
    "Windows Service - SQL Server Analysis Services", which I can't find like as you can see in the screenshot below. How can I solve this? I'm new to this all, so if you could simplify the explanation I would be thankful, if not, I'll
    just work on it anyway. :) Thanks!

    Hi ,
    In the process of configuring PowerPivot for SharePoint 2010, automatically select the Analysis Services for SharePoint Integration feature. After configuring PowerPivot for SharePoint 2010, we can see
    SQL Server Analysis Services and SQL Server PowerPivot System Service are started on manage services on server. So you can verify whether analysis service is installed for SharePoint on manage
    services on server.
    More information, please refer to the links:
    http://sharepointgeorge.com/2012/installing-sql-server-powerpivot-sharepointstep-step-guide/
    http://technet.microsoft.com/en-us/library/855bd055-5ad3-493f-9c5b-1f5297b2e6e2(v=sql.110)
    As Trevor said, for this issue, you can ignore it. Anyway, you can also check the link:
    http://whitepages.unlimitedviz.com/2012/06/the-health-analyzer-and-powerpivot-for-sharepoint/
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • RSA1 DB Connection from SAP BW to external SQL Server databas.

    Hello,
    I am trying to connect our SAP BW system with SQL Server Source System through DB Connect in transaction RSA1.
    Our BW system is running on Windows and MaxDB platform, therefore have I already added the latest dbmssslib.dll library to the kernel for SQL Server.
    But the connection does not work anyhow, I recieve the error "Database error -1 at CON > [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does > exist or access denied." and I am quite sure that my input parameters are correct.
    Therefore I wonder if someone has run into a similar problem and what the problem could be?
    Best Regards,
    Niklas Sandstedt

    Hi,
    I am sorry that my case was assigned to wrong forum.
    That should now have been corrected, however my problem still remains unsolved in one of our systems.
    I found note 178949, which fixed the problem in one system. But even though the system setup seems to be identical, the two systems appears different.
    The following has been done for both systems:
    1. Upgraded kernel to 701 version 111 and added dbmssslib.dll and dbmssslib.pdb files
    2. Created Logical system in BD54.
    3. Tried to create DB connection in transaction DBACOCKPIT.
    In the third step, the setup fails and I receive the following error message when I test the connection:
    Database error -1 at CON > [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not > exist or access denied.
    Database error -1
    All profile parameters AL11-directories also seems to be correct in both systems, so both should find the dbmssslib.dll file.
    One issue that I see is in DBACOCKPIT, the checkbox for "SAP Systems with basis release" is unchangeble and marked. This however, I think was changed in the other system automatically when the connection was established successfully.
    Has anyone run into the same problem?
    Best Regards,
    Niklas Sandstedt

  • Calling all SQL Server users! May TechNet Gurus announced!

    The results for May's
    TechNet Guru competition have been posted!
    http://blogs.technet.com/b/wikininjas/archive/2014/01/16/technet-guru-awards-december-2013.aspx
    Congratulations to all our new Gurus for May!
    We will be interviewing some of the winners and highlighting their achievements, as the month unfolds.
    Post your JUNE contributions here:
    http://social.technet.microsoft.com/wiki/contents/articles/24692.technet-guru-contributions-for-june-2014.aspx
    Read all about June's competition, hopefully in a stickied post, at the top of this forum.
    Below is a summary of the medal winners for May. The last column being a few of the comments from the judges.
    Unfortunately, runners up and their judge feedback comments had to be trimmed from THIS post, to fit into the forum's 60,000 character limit, however
    the full version is available on TechNet Wiki.
    Some articles only just missed out, so we may be returning to discuss those too, in future blogs.
     BizTalk Technical Guru - May 2014  
    Peter Lindgren
    BizTalk 2010: Call SSO from Orchestration
    TGN: "I bet a few people will love you for this, I often see this question at the forums, and you answered it well. Good work!"
    Mandi Ohlinger: "Great topic and great explanation. It also makes SSO seem less scary :)"
    Sandro Pereira: "Very useful sample, well explained with all the necessary code "
    boatseller
    BizTalk: Using an Orchestration Sync or Async
    Sandro Pereira: "Good sample provide by boatseller and well explained."
    TGN: "Hey, great work man! This is a well done article and I love it!"
    Steef-Jan Wiggers
    Exposing data through BizTalk Service Hybrid Connections
    Sandro Pereira: "Nice article with a good overview about BizTalk Service Hybrid Connections and how you can configure them."
    TGN: "Good article, well explained and good pictures. Again Steef-Jan, you know what you're doing!"
    Mandi Ohlinger: "Nice set-up overview. "
     Forefront Identity Manager Technical Guru - May 2014  
    Sheldon.Jaquay
    Forefront Identity Manager - RCDC - Regular Expression
    AM: "Great contribution! Option C is clever, and the other examples are also a useful reference. Thanks for sharing your work with the community."
    Ed Price: "Nice short article. Great topic, and great blend of code, color, and images!"
    Søren Granfeldt: "Nice with a little focus on RegEx with FIM and good help for people wanting to have the portal be just a little more company specific"
    GO: "Thanks for the article, but the images weren't clear enough."
    Scott Eastin
    Installing Oracle MA for FIM R2 on Windows 2012
    GO: "EX-CE-LL-EN-T article!"
    AM: "Very nice article with clear step-by-step instructions - thanks for putting this together. "
    Ed Price: "I love the sections with numbered bullets at the end. They're very clear and easy to read!"
     Microsoft Azure Technical Guru - May 2014  
    João Sousa
    Microsoft Azure - Remote Debbuging How To?
    GO: "Clever. Well Explained and written. Thanks! You absolutely deserve the GOLD medal."
    Ed Price: "Fantastic topic and great use of images!"
    Alex Mang
    The Move to the New Azure SQL Database Tiers
    Ed Price: "Great depth and descriptions! Very timely topic! Lots of collaboration on this article from community members!"
    GO: "great article but images are missing"
    Alex Mang
    Separating Insights Data In Visual Studio Online
    Application Insights For Production And Staging Cloud Services
    Ed Price: "Good descriptions and clarity!"
    GO: "great article but images are missing"
     Microsoft Visio Technical Guru - May 2014  
    Mr X
    How to export your Orchestrator Runbooks to Visio and Word
    Ed Price: "A basic tip, but very helpful. Good job!"
    GO: "Thanks for that!"
    SR: "Nice "How To" article explaining the basic steps."
    AH: "This article is to the point takes a simple tasks and describes it accurately.
     SharePoint 2010 / 2013 Technical Guru - May 2014  
    Dan Christian
    Build a loop workflow using SharePoint 2010
    Jinchun Chen: "Excellent article. Personally speaking, the biggest challenge is SharePoint Designer workflow is “while-loop”. Many customers had the same scene as this article set. I am sure they are like this article.
    Benoît Jester: "An AWESOME, huge, detailed article by Dan. Did I mention the videos? Thanks Dan!"
    GO: "Great article Dan! Thanks!"
    Margriet Bruggeman: "Detailed explanation which I admire, but wouldn't be using a vs workflow be more logical in this case?"
    Geetanjali Arora
    Export User Profile Properties using CSOM
    Benoît Jester: "Great article on this new SharePoint 2013 development capability. I appreciate the code explanations."
    GO: "This is a great article. Love the way how you explain it."
    Margriet Bruggeman: "I will use this piece of code in the future!"
    Jinchun Chen: "Nice. How about customized properties? It would be nice more, if a CSOM script version can be attached. "
    Inderjeet Singh
    Unable
    to restore site collection issue
    GO: "Simple. Good Written. Clear and Clever. Great article."
    Margriet Bruggeman: "Quite handy reference for this particular problem"
    Benoît Jester: "Good explanation on the site collection deletion process."
     Small Basic Technical Guru - May 2014  
    Philip Conrod
    Programming Home Projects with Microsoft Small Basic: Chapter
    1: Writing Programs Using Small Basic
    RZ: "Very systematic introduction."
    Ed Price: "Good overview article that covers all the basics!"
    Michiel Van Hoorn: "Nice introduction into the history of Basic. Needs to be updated to reflect current support for Windows version (Windows NT? LOL )"
    Philip Conrod
    Programming Home Projects with Microsoft Small Basic: Chapter 6: Flash
    Card Math Quiz Project
    Michiel Van Hoorn: "This article (or book chapter) is excellent material to learn how to envision, design and build your program. The actual example program is also very usable."
    Ed Price: "I love how this tutorial keeps building on itself as it goes!"
    Nonki Takahashi
    Small Basic: Variable
    RZ: "Very nice explanation of the concept of variables!"
    Michiel Van Hoorn: "Clear explanation and not frills"
    Ed Price: "Great article with fantastic formatting!"
     SQL BI and Power BI Technical Guru - May 2014  
    Durval Ramos
    SSIS - Event Handling with "OnError" ou "OnTaskFailed"
    Ed Price: "The images are very helpful! Could use a grammar pass. Great descriptions!"
    GO: "This article has everything. A conclusion, reference, see also, other languages section. everybody should write actually like this."
    NN: "An interesting topic and article but unfortunately a bit hard to understand due to grammar problems"
    PT: "This is a good article on a useful topic. Please have your article reviewed and edited for proper language."
    S Kamath
    Expansion of Time dimension in Analysis Service
    PT: "Your article is concise and to the point, and contains useful information. It would be good to conclude with a short summary and perhaps compare this technique to others, discussing best practices."
    Ed Price: "Good details on Time Dimension. The images help us understand as we go."
    GO: "I like this one, but something is missing. Do not know what, but I had a blast reading the other two's. Does not mean that this one is bad, but there is something missing, maybe my knowledge..."
    NN: "Good article, but seems to be missing conclusion. It will also benefit from adding See Also section"
    Sherry Li
    SSAS – Ignore unrelated dimension or not
    NN: "Good and interesting article based on the blog"
    GO: "Wonderful article!"
    PT: "This is an important topic and contains helpful information but this is a simple topic that can be explained in fewer words. I found this article to be overly detailed and hard to read. I suggest having it reviewed and edited for
    proper language."
    Ed Price: "Good descriptions. Could be shorter. Good use of images!"
     SQL Server General and Database Engine Technical Guru - May 2014  
    Shanky
    Curious Case Of Logging In Online and Offline Index Rebuild In Full Recovery
    Model
    Jinchun Chen: "Good article. Thank you!"
    GO: "One of the best Wiki Articles ever! Thanks buddy!"
    DRC: "-- This is a great article which provides in-depth information on internals of Online & Offline rebuild index and Transaction logging. -- The following statement need to be re-written for more clarity. “The less logging can be
    attributed to the fact that no information about page allocation is logged information about de-allocation is logged please see below figure 13. Also if you compare amount of record returned in this case we had output containing just 64 rows while offline
    index rebuild had ____ rows.” -- Overall, a great article, thoroughly enjoyed reading it."
    NN: "Very interesting article, another great contribution by Shanky"
    Ed Price: "Thorough descriptions and great solution! Good article!"
    Uwe Ricken
    SQL Server: Be aware of the correct data type for predicates in queries
    Ed Price: "Incredibly well formatted! Great breakdown of sections!"
    GO: "Whoo, this is a wonderful article!"
    DRC: "-- This article explains the Query execution behaviour when the Query is not optimally written which could cause increased execution time. Great article. -- This topic is clearly explained and documented using a simple example and
    sample output which is easy is understand. -- Simple, very well written and great article to read. "
    NN: "Very good, easy to understand article and important information to know to all SQL Server developers"
     System Center Technical Guru - May 2014  
    Mr X
    Central Management of DSRM password on Domain Controllers using Orchestrator
    Ed Price: "The images really carry you through this article. Great execution!"
    GO: "Great article. I like your article Mr X! Thanks for your passion!"
    Kevin Holman: "Nice to see real world examples of Orchestrator in action solving problems that all customers have. This was very simple, but provides an excellent solution."
    W P Chomak
    System Center Operations Manager 2012 R2 - Customizing E-Mail Notifications
    AB: "Easy reading info that can help many"
    Ed Price: "Short and sweet. An incredibly valuable topic and needed addition to the Wiki!"
    GO: "Clever and well written. Thanks"
    Christoffer S
    System Center Configuration Manager 2012 R2 - Install applications in a task sequence based on AD-Groups
    Ed Price: "Good mix of code, images, and information. Could use more in-depth descriptions. Great article!"
    GO: "Clear and simple! Thank you!"
     Transact-SQL Technical Guru - May 2014  
    Naomi N
    T-SQL: Random Equal Distribution
    Jinchun Chen: "Nice."
    JS: "The crucial thing about such a procedure is to check the data before the randomization and afterwards. You might encounter situations where "John Smith" and "John Meyers" might have exchanged their First names
    which is technically correct, but logically and obviously wrong. So make sure that there is one additional check afterwards that makes sure that eventual privicy concerns will not survive the random process. Normally this would not happen, but I have already
    checked this is one of my older blog entries, where we exactly had that problem obfuscating data to make that operational and live data will not be recognized afterwards. http://blogs.msdn.com/b/jenss/archive/2009/04/08/when-is-random-random-enough.aspx In
    addition to this some attributes are sticky to each other like gender and First Name. You also have to make sure that your distribution might change statistically in relation to other attributes."
    Richard Mueller: "Very instructive. Perhaps the See Also section should have more links."
    Ed Price: "Great formatting and topic! Could benefit from more descriptions. Great article!"
    GO: "Naomi, your article is nice. Simple to understand the 'problem' and execute the 'solution""
    Manoj Pandey: "Nice article with a different way to resolve a given problem. I think this can also be done by using NTILE() function. I've added the code in comments section."
    Rogge H
    Extending SYS.Geometry to Utilize Temporal Data
    GO: "Great article, I enjoyed reading it. Thank you"
    Manoj Pandey: "I like the idea, but it took me some more time to understand the overall logic as I'm new to Geo datatypes, Thanks."
    JS: "For me not using this sort of things regularly, I don't see the problem and the benefit. I have no doubt that this is a brilliant explanations how to cope with a problem, but for me this is missing yet the red line. More pictures
    would be helpful describing the problem and outlining the results produced."
    Richard Mueller: "Needs more explanation, and perhaps an example. There should be links to relevant references."
    Ed Price: "Good job on the opening descriptions! Could benefit from breaking up and explaining the code more. Images and references would be helpful. Good article!"
    Hasham Niaz
    DataCleanUp() Function Implementation in MS SQL Server
    Jinchun Chen: "Good."
    JS: "-Does actually not work for Case senstive areas where I want to remoce certain Upper/lower case characters. This might be not interesting for some people, but is extremely important and relevant to other people. The limitation is
    that I can´t pass multiple values to be removed from the string, right ? Could this be implemented as well as many people wash out their data from unused / unimportant control characters. "I have tested it on a table which has got more than 11 Million
    rows and it executed fine returning the correct results. Since this is a scalar function you will notice decrease in performance." Once you want to maintain the old data and keep the new cleaned up one seperately, you could suggest something like persisting
    the data in a computed column which could be indexed and then help improving the performance. This would not be the case for any adhoc queries though."
    Richard Mueller: "Very clever and also very useful. There should be links to references, for example to explain the PATINDEX function."
    Ed Price: "Great job on this article! Very clear and well executed! See JS's comments for some thoughts about what's possible. Great article!"
    Manoj Pandey: "A good utility Function that I can use and tweak for my future needs, Thanks."
    Jaliya Udagedara
    Calling WCF Service from a Stored Procedure in Microsoft SQL Server 2012
    GO: "Gold Winner. For sure!"
    Ed Price: "Amazing article! The depth, images, and code formatting make this fantastic!"
    NN: "Great article, thorough explanations, great interaction in the comments - very useful tutorial"
    Søren Granfeldt: "Nice work."
    João Sousa
    ASP.NET MVC 5 - Bootstrap 3.0 in 3 Steps
    GO: "Thanks for that great article"
    Ed Price: "Great formatting! Good use of images!"
    NN: "Nice introduction to Bootstrap in ASP.MVC project"
    Søren Granfeldt: "Just a little more technical explanation would be nice"
    Critical_stop
    Using 64-bit shortcuts from a 32-bit application
    NN: "Good and short article, right to the point"
    Søren Granfeldt: "Mixing and matching 32/64 bit always seems to give people a hassle. This will help those having issues."
    GO: "good one!"
    Ed Price: "Good article. Short and sweet."
     Wiki and Portals Technical Guru - May 2014  
    XAML guy
    TechNet Guru Competition: Judge System Explanation
    GO: "No one could do it beter than you Pete! Thanks!"
    Richard Mueller: "Excellent explanation of the judging system. Perhaps could use a See Also section."
    Ed Price: "Good quote from Shanky in the comments, "Awesome....Kudos to your for your beautiful work" -- Great job!"
    NN: "Very good article. It may also benefit from See Also section"
    Payman Biukaghazadeh
    TechNet Wiki Persian Council
    GO: "Go Persion GOOO!"
    Richard Mueller: "The Persian Council is an excellent idea. The link to "How to Write an Article" should be in a See Also section, along with other articles."
    NN: "Great article, missing a link to other portals and councils pages"
    Ed Price: "Thank you to Payman and the Persian community for jumping in! The Wiki is warm!"
    Durval Ramos
    Wiki: Best Practices for building TechNet Wiki Portals
    Ed Price: "Fantastic job from Durval on helping us standardize the portals!"
    NN: "Good article, but unfortunately a bit hard to read and understand due to bad grammar. "
    Richard Mueller: "Excellent and important topic. Grammar still needs work. I like the links and See Also."
     Windows Phone and Windows Store Apps Technical Guru - May 2014  
    Sara Silva
    Authentication using Facebook, Google and Microsoft account in WP8.0 App (MVVM)
    Ed Price: "Great article! Great code formatting and good use of code comments for descriptions of what your code's doing! Could be improved by breaking out the code with more descriptions in the article (in addition to
    the code comments). Very in-depth article! "
    Peter Laker: "An excellent article, pulling together all the bits you need to make this happen"
    SubramanyamRaju.B
    WindowsPhone Facebook Integration:How to post message/image to FaceBook Fan
    Page(C#-XAML)
    Ed Price: "Good topic! Code blocks would help with the formatting. Good job on this article!"
    Peter Laker: "Love this, very useful to many I'm sure, thanks!"
    Saad Mahmood
    Creating a custom control in Expression Blend with Custom Properties (WindowsPhone
    & Store)
    Ed Price: "This has a good mix of descriptions and clarity! The images help a lot!"
    Peter Laker: "A nice introduction to our beloved Blend. Great work!"
     Windows Presentation Foundation (WPF) Technical Guru - May 2014  
    Magnus (MM8)
    WPF/MVVM: Merging Cells In a ListView
    KJ: "Ah the collectionViewSource -- never used it myself but this looks like a good reference article if I ever needed to..."
    GO: "Thank you!"
    Ed Price: "Great formatting and good descriptions. Short and sweet! Another fantastic entry from Magnus!"
    Peter Laker: "Thank you again Magnus"
     Windows Server Technical Guru - May 2014  
    Mr X
    How to implement User
    Activity Recording for AD-Integrated Critical Servers by combining the use of Group Policy, Powershell and Orchestrator
    Philippe Levesque: "Really good information and detailed step."
    JH: "brilliant, love how it combines different technologies to achieve a solution, clearly written and well illustrated."
    JM: "Another excellent article, thanks again for your many great contributions"
    Richard Mueller: "Very creative solution. Great to have such detailed steps and images."
    GO: "I like the conclusion. Thanks"
    Mr X
    How Domain Controllers are located in Windows
    GO: "Super article Mr X! Merci!"
    JM: "Yet again, excellent article."
    Richard Mueller: "Good documentation. An explanation of how the priorities and weights are determined would help. A See Also section would also help."
    Philippe Levesque: "Good "In deep" information. Good to know to help diagnose computer problem in AD's site."
    JH: "another good article, great diagrams. Some repetition but it does help clarify a complex issue. "
    Mahdi Tehrani
    Detailed Concepts:Secure Channel Explained
    JH: "great article. This fills an important gap in this content space. Editing is a little rough, but diagrams and explanations are clear."
    JM: "This is a very good article, however you need to provide more detail in the section on how to fix a broken Channel."
    Richard Mueller: "Excellent topic. Grammar needs work. Good images. Could use a See Also section."
    Philippe Levesque: "Really good explanation of the secure's channel, I like the debugging step included ! "
    GO: "Thanks for this, not everybody know about secure channel."
    As mentioned above, runners up and their judge feedback were removed from this forum post, to fit into the forum's 60,000 character limit.
    A great big thank you to EVERYONE who contributed an article to last month's competition.
    Hopefully we will see you ALL again in this month's listings?
    As mentioned above, runners up and comments were removed from this post, to fit into the forum's 60,000 character limit.
    You will find the complete post, comments and feedback on the
    main post.
    Please join the discussion, add a comment, or suggest future categories.
    If you have not yet contributed an article for this month, and you think you can write a more useful, clever, or better produced wiki article than the winners above,
    here's your chance! :D
    More about the TechNet Guru Awards:
    TechNet Guru Competitions
    #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 only
    TechNet 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.

    Congrats to Shanky and Uwe!
     SQL Server General and Database Engine Technical Guru - May 2014  
    Shanky
    Curious Case Of Logging In Online and Offline Index Rebuild In Full Recovery
    Model
    Jinchun Chen: "Good article. Thank you!"
    GO: "One of the best Wiki Articles ever! Thanks buddy!"
    DRC: "-- This is a great article which provides in-depth information on internals of Online & Offline rebuild index and Transaction logging. -- The following statement need to be re-written for more clarity. “The less logging can be attributed
    to the fact that no information about page allocation is logged information about de-allocation is logged please see below figure 13. Also if you compare amount of record returned in this case we had output containing just 64 rows while offline index rebuild
    had ____ rows.” -- Overall, a great article, thoroughly enjoyed reading it."
    NN: "Very interesting article, another great contribution by Shanky"
    Ed Price: "Thorough descriptions and great solution! Good article!"
    Uwe Ricken
    SQL Server: Be aware of the correct data type for predicates in queries
    Ed Price: "Incredibly well formatted! Great breakdown of sections!"
    GO: "Whoo, this is a wonderful article!"
    DRC: "-- This article explains the Query execution behaviour when the Query is not optimally written which could cause increased execution time. Great article. -- This topic is clearly explained and documented using a simple example and sample
    output which is easy is understand. -- Simple, very well written and great article to read. "
    NN: "Very good, easy to understand article and important information to know to all SQL Server developers"
    Also worth a mention were the other entries this month:
    SQL Server installation error Could Not  Find Database Engine Startup Handle by
    Shanky
    Ed Price: "Wow, what an amazing article! Fantastic code formatting, great descriptions, and the images help you when you need it!"
    NN: "I read this article with great interest. The funny thing is that at the same time I was reading someone was having this exact problem in UniversalThread.com forum, so I was able to refer him to this article. UPDATE. Looks like he is still
    having problems"
    GO: "Thank you so much!"
    DRC: " -- This article -- Explains on modifying/deleting the registry keys after backup -- But it doesn't provide the level/how to back up the registry. -- We also need to warn the users that if we modify/delete the wrong registry key it might
    lead to crash of SQL or even WINDOWS -- In case there are multiple instances on the same machine following this article would cause all the SQL instance to crash. -- So it would be better to contact the support team or before trying out the action steps. "
    5 Top Features Your Company Can Use in SQL Server 2014 Standard Edition by Richard
    Douglas
    NN: "Very well written and quite interesting. Since it's originated from the blog, it has a personal touch which is more appropriate for a blog " 
    DRC: " -- Expand the word GA (General Availability) in the below sentence and correct the spelling mistake "it was written before the GA of SQL Server 2014" "SSD technology and a chunk of this session was on BPE" "who doesn't’t like playing
    with new cool stuff!" "which doesn't’t sound as impressive" "business from the likes of Oracle et al." -- This is a good article and provides all the required information and links to Microsoft website for more details. " 
    Ed Price: "Fantastic topic, but it should be made more "Wiki like" and less personalized. Anybody in the community can help us do that! " 
    Ed Price, Power BI & SQL Server Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • Tons of Cannot Find SQL Server errors in ULS log

    Background: I inherited the maintenance of this farm. The previous consultant migrated the client from WSS 3.0 to 2013 by way of 2007 MOSS and 2010 (unsure of version). I do not know if there was a "temporary" SQL server used during this process
    that no longer exists. It seems likely given all of the errors regarding a missing SQL server.
    The current 2013 Enterprise farm contains 1 WFE and 3 App servers, 2 of which comprise the search topology. There is one SQL server, not aliased. All machines are VMs. One of the search servers (App) is on a different ESXi host. The timer job that is creating
    all of the ULS errors is running on the WFE. Beyond that, the farm has these symptoms:
    It "works" albeit very slowly. Crawl rate of 2-7 dps for both external file shares and the SP content (both with and without Task Offloading / Chimney Offloading enabled). It seems to frequently recycle or take an otherwise long time to render
    in the browser (any page). Finally, it  spews tens of thousands of errors 24x7 on the WFE saying a SQL server (unnamed) cannot be contacted via Named Pipes.
    Specifically: "Unknown SQL Exception 53 occurred. Additional error information from SQL Server is included below.  A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or
    was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)".
    The next error in the sequence is: "An internal error occurred while running a timer job: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that
    the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject,
    UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)..."
    This is followed by an error such as this: "There was an internal error invoking the timer job '{E4DDC92E-0056-4E7E-BD3F-1CF5670ACB7D}' for service '{6105D588-FB34-4F1C-82F6-479D7FE146EA}'."
    Of course, each time the timer job mentioned is different. 
    One more error appears consistently with these although not as frequently: "The Execute method of job definition Microsoft.SharePoint.Diagnostics.SPDiagnosticsMetricsProvider (ID 36e6942a-9a80-440f-94a4-e4a606362734) threw an exception. More information
    is included below.  Connection Timeout Expired.  The timeout period elapsed while attempting to consume the pre-login handshake acknowledgement.  This could be because the pre-login handshake failed or the server was unable to respond back in
    time.  The duration spent while attempting to connect to this server was - [Pre-Login] initialization=21276; handshake=0;"
    I have been troubleshooting this for days but am not making much progress. How can I determine just what SQL server it says it cannot find and where that server name is stored? It seems like it has to be part of the Timer job configuration since the two
    things are related.

    Hi,
    Thanks for your sharing and have a good day.
    Jason
    Jason Guo
    TechNet Community Support

  • After restoring SharePoint farm backup ( The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connection)

    Hi,
    I have taken farm back and restore it in new UAT environment, while access to the main site getting the below error: 
    Error  
    An unexpected error has occurred. 
    Troubleshoot issues with Microsoft SharePoint Foundation. 
    Correlation ID: 866476f3-23dd-4e1e-97af-bffc62cc2d57 
    Date and Time: 7/15/2014 11:26:35 AM 
    When i checked in log i got below error
    System.Data.SqlClient.SqlException: A network-related or instance-specific
    error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40
    - Could not open a connection to SQL Server)    at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)     at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject
    stateObj)     at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecu... 
    Thanks in advance
    Said Al Balushi

    Hi Wendy,
    i have checked all below points, every thing is fine but still i am getting the same error.
    Check SQL services are runing
    Check remote conenctions are enabled
    Check SQL Browser service is runing
    Check TCP/IP protocal enabled at SQL server
    Check out windows firewall setting
    Thanks,
    Said
     

  • Upgrating SQL Server 2008 R2 SP2 to SQL Server 2014 Standard "UpgradeFeatureSpecificRules: KJRTMUpgradeBlockRule"

    I've been searching for HOURS how to resolve this issue:
    I am trying to upgrade SQL Server 2008 R2 (Express Edition with advanced services) to SQL SERVER 2014 Standard edition, my first issue was to update the 2008 R2 to Service pack 2 on the first FEATURE RULE TEST, at this time on it's keep saying this:
    ======================================================================================
    Rule Check Result
    Rule "SQL Server 2008 R2 Service pack 2 or later is requered for upgrade.: failed.
    This SQL Server 2008 R2 features that have been selected to be upgraded to SQL Server 2014 are not at the require service pack. To continue with this upgrade, install SQL Server 2008 Service Pack 2 or lager to the selected instance and the shared features.
    =====================================================================================
    This is the Configuration Report issue:
    Microsoft SQL Server 2014 - System Configuration Check Report
    UpgradeFeatureSpecificRules: SQL Server 2014 Setup configuration checks for rules group 'UpgradeFeatureSpecificRules'
        KJRTMUpgradeBlockRule     
    Checks if the currently selected SQL Server 2008 R2 features to upgrade are at the supported service pack.     Failed     The SQL Server 2008 R2 features that have been selected to be upgraded to SQL Server 2014 are not at the
    required service pack. To continue with this upgrade, install SQL Server 2008 Service Pack 2 or later to the selected instance and the shared features.
    ====================================================================================
    I try after hours and finally did install the Upgrade Advisor and got not issues, the last choice I was to uninstall the Management Studio because in other upgrade express versions got blocked, but in this new version of SQL Server 2014 I don't see any way
    out!!!
    Thanks.

    Hi again
    This is the scenario:
    -I have installed the SQL SERVER 2008 R2 With Advanced services (version 10.50.1600.1), and now my guest decide to upgrade to an STARNDARD version which nowadays Microsoft is offering the 2014 version.
    -As all IT Support and DBA I try to upgrade to SQL 2014 to check and see with requirements were missing or updates. The first check report only ask to upgrade to SQL SERVER 2008 R2 SP2 (version 10.51.2500.0) which I found in the optional update list and
    resolved immediately with the Windows Update service.
    -Finally, I realise doing the discovery report (suggested in the last post) is that Windows update only download the service pack 2 for SQL Server 2008 instead of the 2008 R2 (I downloaded manually) then the version was upgrade to 10.52.4000.0
    Next time I might download the updates manually and not loosing a lot hours with Windows Update, another point very important is that when SQL Server 2008 R2 is installed, create the Microsoft SQL Server 2008 folder at all programas in the Startup menu:
    with the SQL Server Installation Center, but there is not one R2, when you execute this one just show the 2008 installed features.
    Now we are on 12.0.2000.8
    Thanks anyway and all of you for your interest!!!

  • Why the non-cluster SQL Server appeared in the cluster nodes list

    1, I install the node rs6 standalone, Why it appeared in the cluster node list by inquiry the dmv?
    2, how to removed the rs6 from the cluster node list ?
    by "set -clusterownernode -resource "XXXASQL" -owners NODE1,NODE2"?
    But how to find the resource  name? I tried to use window cluster name, SQL cluster name, and SQL role name , All of them say failed to get the cluster object.
     3,how to set the owers to {}, I try below, but failed.

    IMHO, sys.dm_os_cluster_nodes  DMV is associated with the SQL Server
    Operating System (SQLOS), sys.dm_os_cluster_nodes returns one row for each node in the failover cluster configuration.
    As you are running standalone instance on cluster I am assuming this information is being picked from
    OS and not from RS6 SQL instance.
    As you have confirmed Is_cluster is false and if you don’t see RS6 instance in failover cluster manager I don’t think anything damaged here. Everything looking as expected, dont change owner node as its standalone instance.

Maybe you are looking for