SQL Server 2012 - Dropping Snapshots takes hours

We recently did a SQL Server upgrade from 2005 to 2012. We have a nightly job that drops a snapshot of an active database. The snapshots gets created again later in the day. Before upgrading, in SQL 2005 the Job that drops the snapshots used to finish in few
seconds. But once the server has been upgraded to 2012, the same job takes close to an hour to complete.
The log files for the job contains a message "Nonqualified transactions are being rolled back. Estimated rollback completion: 0%. [SQLSTATE 01000] (Message 5060) Nonqualified transactions are being rolled back. Estimated rollback completion: 100%."
This message is repeated several times. While monitoring the underlying database, we have found some blocking on the database during that time. But if I am correct, a blocking on the underlying database should not delay a statement to drop its snapshot. May
I know if I am correct? If so, what could be the reasons for this delay after upgrading to 2012? Any missing settings at the server or database level? Thanks.

Hi, Please check fot eh entire errors from the error log file. the error: "Nonqualified transactions are being rolled back. Estimated rollback completion: 100%." usually come with another statement like "Database 'MyDB' is already
open and can only have one user at a time.", Another option might be right after the message that you post that you get "Cannot open backup device '<some path to a file> Not Found'". In short, we are missing part
of the error massage :-)
In the example above when you see "Database 'MyDB' is already open and can only have one user at a time." then the problem is pretty clear.
  Ronen Ariely
 [Personal Site]    [Blog]    [Facebook]

Similar Messages

  • Issue installing SQL Server 2012(with SP1) on windows 7 Error result: -2067529718

    When running the installation, it suddenly stops without any error popup.
    I ran the installation from the command prompt and this is what I get:
    An error occurred during the SQL Server 2012 Setup operation.
    Error result: -2067529718
    Result facility code: 1220
    Result error code: 10
    I recently uninstalled SQL Server 2012 SP1, because the SQL server service was not starting up, it would just hang in there with no response. I tried many things to get that issue fixed, finally I decided to uninstall and start fresh but I couldn't since
    I was getting an error stating that I needed Windows 7 SP1(which was already installed). I downloaded the
    microsoft fix it tool which fixed the issue.
    On the control panel/Programs and features, I still see that SQL Server 2012 is listed if I click to uninstall again it tells me:
    An error occurred while trying to uninstall Microsoft SQL Server 2012. it may have already been uninstalled. do you want to remove Microsoft SQL Server 2012 from the Programs and features list?
    if I click yes, eventually it will be listed again.
    currently I'm not able to install SQL server again and besides the info provided there are not error messages (I also copied the installation files to disk).
    UPDATE: it appears that the sql server was not completely removed from the system, I still see listed the SQL server(SQLExpress) and server browser services on the SQL server configuration manager.
    Thanks.

    1) First Reboot your server and try again for the installation.
    2) If first fail again than Take a backup of Registry first for safe side and then delete the entries of SQL server 2012 if found take a reboot again and try to install again.
    One more thing if installation created any file then move/Delete that also before installation.

  • SQL server 2012 - Database Availability Group

    We have 2 new Servers ready to be deployed as Database Servers for Sharepoint 2013.
    both server have 1TB RAID 5 Hard Disk Space.
    We don't have any kind of Shared Storage/SAN etc & we cannot afford to buy this.
    I have Configured Windows Server Fail-over Cluster with File Share Quorum.
    May i Configure the SQL Database 2012 on Each Server on local disk and then make High Availability Groups?

    As well as the youtube video that Edwin has posted for you have a read of my article on SimpleTalk.com.
    https://www.simple-talk.com/sql/database-administration/sql-server-2012-alwayson/
    This takes you through the step by step process.
    HTH
    Warwick Rudd (MCM - SQL 2008 | MCT)
    (SQL Masters Consulting |
    My SQL Server Blog | Twitter)

  • SQL Server 2012 not auto-shrinking logfile

    We recently deployed SQL Server 2012 Standard on a Server 2008 R2 SP1 machine and, for the most part, everything behaves the same as SQL 2008 R2 (no surprise there). However, one issue I've been experiencing is that the transaction logs will not automatically
    shrink like they do in SQL 2008 R2. The database recovery model is set to full, and we have full backups running weekly and transaction log backups running every 12 hours. The transaction log backups work fine, but the files themselves never shrink. Autoshrink
    is set to true. If I manually run a shrink operation on the transaction log files, it works like a charm - it just shrank the 29GB file down to 3GB. Why does the transaction log not automatically shrink anymore?
    Microsoft SQL Server 2012 - 11.0.2100.60 (X64)  
    Windows Server 2008 R2 SP1 (Build 7601: Service Pack 1)

    Hallo Daniel,
    I understand the reason for the action of shrink now but I'm not agreeing to your arguments :)
    But that is an issue what you may decide...
    I meant RTO (recovery time objectives) because with your backup strategy you have to restore at least 10 log backups if the database will crash.
    RPO may fail with the log backup period of 12 hrs in between, too!
    (But all measures are part of a SLA we don't know - so maybe your business may tolerate such values)
    e.g. Full Backup is on Sunday night 10:00 pm
    The database crashes at Friday afternoon 5:00 pm
    You have to restore the last full backup and 9 transaction log backups (2 each day from Mo - Thursday + 1 from Friday)
    All data from 12:00 am to point of crash are lost!
    If you would have a full backup and a daily diff backup you would decrease the numbers of restoring actions to 3 instead of 10
    Restore of the full backup from Sunday
    Restore of the diff backup from Friday
    Restore of the log backup from Friday noon
    Sorry for my OT because this has not really to do with your problems but I would take theses objectives into consideration.
    We don't activate "auto shrink" for ANY productive database because we can not foresee what processes will run on the databases at any time - this is a decision the business has to make.
    Uwe Ricken
    MCITP Database Administrator 2005
    MCITP Database Administrator 2008
    MCITP Microsoft SQL Server 2008, Database Development
    db Berater GmbH
    http://www-db-berater.de

  • MS SQL Server 2012 Developers Freeze At ODBC Setup

    I am attempting to create an ODBC connection using my local computer's
    Admin Tools-ODBC Connection interface.
    I can select the MS SQL Server driver type, enter the odbc name I want to call the connection , then click browse so to look for sql databases in a local install of MS SQL Server 2012 Developers Edition
    The odbc setup goes into a search mode that ran for over 4 hours and the process could not be terminated using Task Manager - End Task. 
    After rebooting, I tried the Options - Create New Connection using Microsoft SQL Server Data Tools interface and get the same result where I again have to reboot the computer to stop the setup.
    Is this an expected result when setting up an odbc this way and/or is there another way odbcs are created so to connect to MS SQL Server 2012 databases?
    I am a database

    Hello,
    I can't reproduce this issue on my test environment, and I'm sure what do you mean hang on search mode while create a SQL Server ODBC Data Source. Could you please share a screenshot about this issue?
    I would suggest you take a look at the following articles about how to create a ODBC DSN to SQL Server 2012:
    Creating a SQL Server ODBC Data Source:
    http://technet.microsoft.com/en-us/library/cc879308(v=sql.105).aspx
    http://hodentekmsss.blogspot.com/2013/08/how-do-you-create-odbc-dsn-to-sql.html
    Hope this helps.
    Elvis Long
    TechNet Community Support

  • CDC for Oracle Continually goes to Aborted State - SQL Server 2012

    I am setting up a test environment for CDC with an Oracle system.  I have everything set up to the point where logs are being read and data appears to be getting added to the CDC tables in SQL Server.  However, at different times during the day,
    the status of the service goes to Aborted and the service is completely stopped.  The first time I start the service, it will run for about 1 hour, before it aborts.  After that, it only takes 2 or 3 minutes, sometimes less, before this happens again.
    Below are the last entries in the log when the instance aborted.  Whenever the instance aborts, the last message is always "Reading Complementary records for large log miner SQL_REDO/SQL_UNDO".  I'm guessing there's a permission or setting
    in Oracle that I'm missing, but I don't know what it is.
    Version information:
    Oracle: 10.2.0.5.0
    CDC Service: SQL Server 2012 SP 1
    SQL Server Database Engine: 11.0.3128
    record","source","","0xDD070A00170012001C0004000043073800000000000000000626001100F8DD3A00000000061474B6B30100000100012B190000CC8E01340000000000"
    "10/23/2013 6:28:04 PM","TRACE","ETL-BI12-01-T","RUNNING","IDLE","ORACDC000T:Reading next record","source","",""
    "10/23/2013 6:28:04 PM","TRACE","ETL-BI12-01-T","RUNNING","IDLE","ORACDC000T:Enqueue transaction record","source","","0xDD070A00170012001C0004004085163800000000000000000626002F00E2DD3A00000000061474B6B40100000100012B190000CCA201C40000000000"
    "10/23/2013 6:28:04 PM","TRACE","ETL-BI12-01-T","RUNNING","IDLE","ORACDC000T:Reading next record","source","",""
    "10/23/2013 6:28:04 PM","TRACE","ETL-BI12-01-T","RUNNING","IDLE","ORACDC000T:Enqueue transaction record","source","","0xDD070A00170012001C000400C009353800000000000000000026002F00E2DD3A00000000061474B6B50100000100012B190000CCA500A00000000000"
    "10/23/2013 6:28:04 PM","TRACE","ETL-BI12-01-T","RUNNING","IDLE","ORACDC000T:Reading next record","source","",""
    "10/23/2013 6:28:04 PM","TRACE","ETL-BI12-01-T","RUNNING","IDLE","ORACDC000T:Enqueue transaction record","source","","0xDD070A00170012001C000400408E533800000000000000000026001100F8DD3A00000000061474B6B70100000100012B190000CCAF00440000000000"
    "10/23/2013 6:28:04 PM","TRACE","ETL-BI12-01-T","RUNNING","IDLE","ORACDC000T:Reading next record","source","",""
    "10/23/2013 6:28:04 PM","TRACE","ETL-BI12-01-T","RUNNING","IDLE","ORACDC000T:Enqueue transaction record","source","","0xDD070A00170012001C00040080D0623800000000000000000626002D00DBDD3A00000000061474B8780100000100012B19000108B500280000000000"
    "10/23/2013 6:28:04 PM","TRACE","ETL-BI12-01-T","RUNNING","IDLE","ORACDC000T:Reading next record","source","",""
    "10/23/2013 6:28:04 PM","TRACE","ETL-BI12-01-T","RUNNING","IDLE","ORACDC000T:Enqueue transaction record","source","","0xDD070A00170012001C0004000055813800000000000000000626001500E0DD3A00000000061474B8790100000100012B19000108C7003C0000000000"
    "10/23/2013 6:28:04 PM","TRACE","ETL-BI12-01-T","RUNNING","IDLE","ORACDC000T:Reading next record","source","",""
    "10/23/2013 6:28:04 PM","TRACE","ETL-BI12-01-T","RUNNING","IDLE","ORACDC000T:Enqueue transaction record","source","","0xDD070A00170012001C00040080D99F3800000000000000000026001500E0DD3A00000000061474B87A0100000100012B19000108C901140000000000"
    "10/23/2013 6:28:04 PM","TRACE","ETL-BI12-01-T","RUNNING","IDLE","ORACDC000T:Reading next record","source","",""
    "10/23/2013 6:28:04 PM","TRACE","ETL-BI12-01-T","RUNNING","IDLE","ORACDC000T:Enqueue transaction record","source","","0xDD070A00170012001C000400C01BAF3800000000000000000026002D00DBDD3A00000000061474B87C0100000100012B19000108D301540000000000"
    "10/23/2013 6:28:04 PM","TRACE","ETL-BI12-01-T","RUNNING","IDLE","ORACDC000T:Reading next record","source","",""
    "10/23/2013 6:28:04 PM","TRACE","ETL-BI12-01-T","RUNNING","IDLE","ORACDC000T:Reading Complementary records for large log miner SQL_REDO/SQL_UNDO","source","",""

    Here are the permissions we have set up on the Oracle side: (Please forgive the poor formatting.  The editor wants to remove all of the spaces and add extra carriage returns.)
    GRANT
    EXECUTE
    ON 
    "SYS"."DBMS_LOGMNR"
    TO
    "LOGREADER";
    GRANT
    EXECUTE
    ON 
    "SYS"."DBMS_LOGMNR_D"
    TO
    "LOGREADER";
    grant
    select
    any
    transaction
    to
    logreader;
    GRANT
    "CONNECT"
    TO
    "LOGREADER";
    GRANT
    select
    ON
    sys.v_$database
    to
    "LOGREADER";
    GRANT
    select
    ON
    sys.v_$logmnr_contents
    to
    "LOGREADER";
    GRANT
    select ON
    sys.v_$logmnr_dictionary
    to
    "LOGREADER";
    GRANT
    selectONsys.v_$logmnr_logfileto"LOGREADER";
    GRANT
    selectONsys.v_$logmnr_logsto"LOGREADER";
    GRANT
    selectONsys.v_$logmnr_parametersto"LOGREADER";
    GRANT
    selectONsys.v_$logmnr_sessionto"LOGREADER";
    GRANT
    selectONsys.v_$logmnr_transactionto"LOGREADER";
    GRANT
    selectONsys.v_$logto"LOGREADER";
    GRANT
    selectONsys.v_$logfileto"LOGREADER";
    GRANT
    selectONsys.v_$archived_logto"LOGREADER";
    GRANT
    select
    ON
    sys.dba_registry
    to
    "LOGREADER";
    GRANT
    select
    ON
    sys.v_$instance
    to
    "LOGREADER";
    GRANT
    select
    ON
    sys.v_$thread
    to
    "LOGREADER";
    GRANT
    select
    ON
    sys.v_$parameter
    to
    "LOGREADER";
    For each table we want to capture changes on, select rights have been granted to this user, as well.

  • SQL Server 2012 Reporting Services, Report Manager - Page not found

    Hi all,
    I am working on migrating reports to a new server so we can upgrade to a new machine and to SQL Server 2012 SP2.  The machine is up and running on Windows Server 2012 and I have installed SQL Server EE 2012 SP2.  I have imported the three databases
    from 2008R2
    * Report Server
    * ReportServer TempDB
    * RSSubscribers
    I have re-applied the encryption keys and I was thinking that everything was good to go until I went to try and manage the subscriptions on a report.  I select a report, use the drop arrow to get to manage
    and then try to select any of the options such as subscriptions and I get a "Page Not Found Error"
    If I take the URL and paste it in another browser, putting the previous server name in, it works fine.  So, the URL works fine...  I have no idea as to what I should do to figure out the problem.  I am considering rebuilding the whole install
    just to see if that would fix it.
    Thanks

    Hi SqlDude,
    According to your description, you have bind SSL to a Reporting Services URL Reservation. Now you find in your Report Manager, the Subscription page still start with "http://". Right?
    In this scenario, we need to change setting in rsreportserver.config file. Go to rsreportserver.config in "\Program Files\Microsoft SQL Server\MSSQL\Reporting Services\ReportServer". Find <Add Key="SecureConnectionLevel" Value="0"/>.
    Change the value into "3".
    Acceptable values are: 
    3 Most secure—Use SSL for absolutely everything.
    2 Secure—Use SSL for rendering and methods that pass credentials but don't insist on it for all SOAP calls.
    1 Basic Security—Accepts http but rejects any calls that might be involved in the passing of credentials.
    0 Least Secure—Don't use SSL at all.
    Besides, if you want to submit a feedback to Microsoft, please feel free to submit
    your situation on our product to the following link:
    https://connect.microsoft.com/SQLServer/Feedback.
    If you have any other questions, please feel free to ask.
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Microsoft SQL Server 2012 Management Studio Express silent installation very slow

    Iam doing silent installations often on several Systems.
    I install the Microsoft SQL Server 2012 Management Studio Express with this command:
    "SQLManagementStudio_x64_DEU.exe /ACTION=INSTALL /QUIET /IAcceptSQLServerLicenseTerms="True" /FEATURES=CONN,BC,SSMS /indicateprogress"
    The installation will take almost an hour to finish. 
    I never get error messages or so. The installation afterwards is fine.
    Is there a way to speed up the installation process?
    Thanks!

    Hi Dennis,
    When installing SQL Server Management Studio, it is normal for us taking an hour to finish the installation.
     Personally, if you want to speed up the installation process, I recommend improve your hardware device on your computer, such as CPU, RAM, hard disk and so on.
    Or you can submit an submit the requirement at https://connect.microsoft.com/SQLServer/. 
    If the requirement mentioned by customers for many times, the product team may consider to add or improve this requirement in the future SQL Server version. Thanks for your understanding.
    Thanks,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • SQL Server 2012 SP2 Cumulative Update 5

    We are starting to take a look at Cumulative update 5 for SQL Server 2012 SP2.  The Installation was going smooth until the very in, where it sat on trying to start MSSQLServer for several minutes and finally timed out.  Why does Cumulative
    patch 5 says it failed to start the service when the server is already running?  Version number changed, and everthing looks ok, except for the error message in the log file.
    Is this a valid installation or do I need to try again? 
    Thanks.
    DJ

    Thanks for the reply.  The ErrorLog is too large to post in 1 reply.  Will post multiple times.
    Version of the SQL Server shows 11.0.5582.0
    Dj
    Post 1
    2015-03-24 14:13:23.82 Server      Microsoft SQL Server 2012 - 11.0.5582.0 (X64)
     Feb 27 2015 18:10:15
     Copyright (c) Microsoft Corporation
     Enterprise Edition: Core-based Licensing (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1) (Hypervisor)
    2015-03-24 14:13:23.82 Server      (c) Microsoft Corporation.
    2015-03-24 14:13:23.82 Server      All rights reserved.
    2015-03-24 14:13:23.82 Server      Server process ID is 37184.
    2015-03-24 14:13:23.82 Server      System Manufacturer: 'VMware, Inc.', System Model: 'VMware Virtual Platform'.
    2015-03-24 14:13:23.82 Server      Authentication mode is MIXED.
    2015-03-24 14:13:23.82 Server      Logging SQL Server messages in file 'L:\SQL Server\Log Files\ERRORLOG'.
    2015-03-24 14:13:23.82 Server      The service account is 'NT Service\MSSQLSERVER'. This is an informational message; no user action is required.
    2015-03-24 14:13:23.82 Server      Registry startup parameters:
      -d H:\\System DB\Data\master.mdf
      -e L:\SQL Server\Log Files\ERRORLOG
      -l G:\\System DB\Logs\mastlog.ldf
    2015-03-24 14:13:23.82 Server      Command Line Startup Parameters:
      -s "MSSQLSERVER"
    2015-03-24 14:13:24.15 Server      SQL Server detected 1 sockets with 2 cores per socket and 2 logical processors per socket, 2 total logical processors; using 2 logical processors based on SQL Server licensing. This is an informational
    message; no user action is required.
    2015-03-24 14:13:24.15 Server      SQL Server is starting at normal priority base (=7). This is an informational message only. No user action is required.
    2015-03-24 14:13:24.15 Server      Detected 8191 MB of RAM. This is an informational message; no user action is required.
    2015-03-24 14:13:24.15 Server      Using locked pages in the memory manager.
    2015-03-24 14:13:24.15 Server      Common Criteria compliance mode is enabled. This is an informational message only; no user action is required.
    2015-03-24 14:13:24.22 Server      This instance of SQL Server last reported using a process ID of 39820 at 3/24/2015 2:09:46 PM (local) 3/24/2015 6:09:46 PM (UTC). This is an informational message only; no user action is required.
    2015-03-24 14:13:24.23 Server      Node configuration: node 0: CPU mask: 0x0000000000000003:0 Active CPU mask: 0x0000000000000003:0. This message provides a description of the NUMA configuration for this computer. This is an informational
    message only. No user action is required.
    2015-03-24 14:13:24.23 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.
    2015-03-24 14:13:24.24 Server      Software Usage Metrics is disabled.
    2015-03-24 14:13:24.24 spid4s      Starting up database 'master'.
    2015-03-24 14:13:24.30 spid4s      9 transactions rolled forward in database 'master' (1:0). This is an informational message only. No user action is required.
    2015-03-24 14:13:24.32 spid4s      0 transactions rolled back in database 'master' (1:0). This is an informational message only. No user action is required.
    2015-03-24 14:13:24.32 spid4s      Recovery is writing a checkpoint in database 'master' (1). This is an informational message only. No user action is required.
    2015-03-24 14:13:24.33 Server      CLR version v4.0.30319 loaded.
    2015-03-24 14:13:24.36 Server      Common language runtime (CLR) functionality initialized using CLR version v4.0.30319 from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\.
    2015-03-24 14:13:39.41 spid6s      SQL Server has encountered 1 occurrence(s) of I/O requests taking longer than 15 seconds to complete on file [H:\\System DB\Data\master.mdf] in database [master] (1).  The OS file handle is 0x0000000000000598. 
    The offset of the latest long I/O is: 0x0000000002a000
    2015-03-24 14:13:53.94 spid4s      Recovery completed for database master (database ID 1) in 29 second(s) (analysis 3 ms, redo 39 ms, undo 8 ms.) This is an informational message only. No user action is required.
    2015-03-24 14:13:54.19 spid4s      CHECKDB for database 'master' finished without errors on 2015-03-06 08:35:22.387 (local time). This is an informational message only; no user action is required.
    2015-03-24 14:13:54.19 spid4s      Resource governor reconfiguration succeeded.
    2015-03-24 14:13:54.19 spid4s      SQL Server Audit is starting the audits. This is an informational message. No user action is required.
    2015-03-24 14:13:54.19 spid4s      SQL Server Audit has started the audits. This is an informational message. No user action is required.
    2015-03-24 14:13:54.21 spid4s      Server name is 'Server'. This is an informational message only. No user action is required.
    2015-03-24 14:13:54.22 spid4s      Failed to verify Authenticode signature on DLL 'S:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Binn\ftimport.dll'.
    2015-03-24 14:13:54.22 spid9s      Starting up database 'mssqlsystemresource'.
    2015-03-24 14:13:54.22 spid14s     Starting up database 'msdb'.
    2015-03-24 14:13:54.23 spid15s     Starting up database 'Mgmt'.
    2015-03-24 14:13:54.24 spid16s     Starting up database 'Web2'.
    2015-03-24 14:13:54.24 spid12s     The certificate [Cert Hash(sha1) "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"] was successfully loaded for encryption.
    2015-03-24 14:13:54.24 spid18s     Starting up database 'Web2A'.
    2015-03-24 14:13:54.24 spid9s      The resource database build version is 11.00.5582. This is an informational message only. No user action is required.
    2015-03-24 14:13:54.25 spid12s     Server is listening on [ 'any' <ipv6> 1433].
    2015-03-24 14:13:54.25 spid12s     Server is listening on [ 'any' <ipv4> 1433].
    2015-03-24 14:13:54.25 spid12s     Server local connection provider is ready to accept connection on [
    \\.\pipe\SQLLocal\MSSQLSERVER ].
    2015-03-24 14:13:54.26 spid12s     Server local connection provider is ready to accept connection on [
    \\.\pipe\sql\query ].
    2015-03-24 14:13:54.26 Server      Server is listening on [ ::1 <ipv6> 1434].
    2015-03-24 14:13:54.26 Server      Server is listening on [ 127.0.0.1 <ipv4> 1434].
    2015-03-24 14:13:54.26 Server      Dedicated admin connection support was established for listening locally on port 1434.
    2015-03-24 14:13:54.26 Server      SQL Server is attempting to register a Service Principal Name (SPN) for the SQL Server service. Kerberos authentication will not be possible until a SPN is registered for the SQL Server service. This
    is an informational message. No user action is required.
    2015-03-24 14:13:54.33 Server      The SQL Server Network Interface library successfully registered the Service Principal Name (SPN) [ MSSQLSvc/Server.local ] for the SQL Server service.
    2015-03-24 14:13:54.33 Server      The SQL Server Network Interface library successfully registered the Service Principal Name (SPN) [ MSSQLSvc/Server.local:1433 ] for the SQL Server service.
    2015-03-24 14:13:54.39 spid9s      Starting up database 'model'.
    2015-03-24 14:13:54.42 spid4s      1 transactions rolled back in database 'msdb' (4:0). This is an informational message only. No user action is required.
    2015-03-24 14:13:54.42 spid4s      Recovery is writing a checkpoint in database 'msdb' (4). This is an informational message only. No user action is required.
    2015-03-24 14:13:54.46 spid9s      1 transactions rolled forward in database 'model' (3:0). This is an informational message only. No user action is required.
    2015-03-24 14:13:54.47 spid9s      0 transactions rolled back in database 'model' (3:0). This is an informational message only. No user action is required.
    2015-03-24 14:13:54.62 spid9s      Clearing tempdb database.
    2015-03-24 14:14:17.34 spid9s      Starting up database 'tempdb'.
    2015-03-24 14:14:27.05 spid19s     The Service Broker endpoint is in disabled or stopped state.
    2015-03-24 14:14:27.06 spid19s     The Database Mirroring endpoint is in disabled or stopped state.
    2015-03-24 14:14:27.07 spid19s     Service Broker manager has started.
    2015-03-24 14:14:27.21 spid15s     CHECKDB for database 'Mgmt' finished without errors on 2014-09-14 00:02:54.637 (local time). This is an informational message only; no user action is required.
    2015-03-24 14:14:27.58 spid16s     CHECKDB for database 'Web2' finished without errors on 2015-03-22 00:00:43.253 (local time). This is an informational message only; no user action is required.
    2015-03-24 14:14:27.65 spid4s      Database 'master' is upgrading script 'ProvisionAgentIdentity.sql' from level 184554434 to level 184554958.
    2015-03-24 14:14:27.65 spid4s      Database 'master' is upgrading script 'no_op.sql' from level 184554434 to level 184554958.
    2015-03-24 14:14:27.93 spid4s      Database 'master' is upgrading script 'no_op.sql' from level 184554434 to level 184554958.
    2015-03-24 14:14:27.94 spid4s      -----------------------------------------
    2015-03-24 14:14:27.94 spid4s      Starting execution of dummy.sql
    2015-03-24 14:14:27.94 spid4s      -----------------------------------------
    2015-03-24 14:14:27.94 spid4s      Database 'master' is upgrading script 'repl_upgrade.sql' from level 184554434 to level 184554958.
    2015-03-24 14:14:27.94 spid4s      Executing replication upgrade scripts.
    2015-03-24 14:14:27.99 spid4s      Attempting to load library 'xpstar.dll' into memory. This is an informational message only. No user action is required.
    2015-03-24 14:14:28.07 spid4s      Using 'xpstar.dll' version '2011.110.5058' to execute extended stored procedure 'xp_instance_regread'. This is an informational message only; no user action is required.
    2015-03-24 14:14:28.09 spid4s      Executing sp_vupgrade_replication.
    2015-03-24 14:14:28.50 spid4s      Upgrading publication settings and system objects in database [Mgmt].
    2015-03-24 14:14:28.89 spid4s      Upgrading publication settings and system objects in database [Web2].
    2015-03-24 14:14:29.98 spid4s      Upgrading publication settings and system objects in database [Web2A].
    2015-03-24 14:14:30.48 spid4s      Could not open database [LEGACY_DSS]. Replication settings and system objects could not be upgraded. If the database is used for replication, run sp_vupgrade_replication in the [master] database when
    the database is available.
    2015-03-24 14:14:30.48 spid4s      Could not open database [PROD_1]. Replication settings and system objects could not be upgraded. If the database is used for replication, run sp_vupgrade_replication in the [master] database when the
    database is available.
    2015-03-24 14:14:30.48 spid4s      Could not open database [PROD_LS]. Replication settings and system objects could not be upgraded. If the database is used for replication, run sp_vupgrade_replication in the [master] database when
    the database is available.
    2015-03-24 14:14:30.48 spid4s      Could not open database [PROD_NG]. Replication settings and system objects could not be upgraded. If the database is used for replication, run sp_vupgrade_replication in the [master] database when
    the database is available.
    2015-03-24 14:14:30.48 spid4s      Could not open database [PROD_RSV]. Replication settings and system objects could not be upgraded. If the database is used for replication, run sp_vupgrade_replication in the [master] database when
    the database is available.
    2015-03-24 14:14:30.52 spid4s      Upgrading subscription settings and system objects in database [Mgmt].
    2015-03-24 14:14:31.17 spid4s      Attempting to load library 'xprepl.dll' into memory. This is an informational message only. No user action is required.
    2015-03-24 14:14:31.19 spid4s      Using 'xprepl.dll' version '2011.110.5582' to execute extended stored procedure 'xp_repl_encrypt'. This is an informational message only; no user action is required.
    2015-03-24 14:14:31.19 spid4s      Upgrading subscription settings and system objects in database [Web2].
    2015-03-24 14:14:31.75 spid4s      Upgrading subscription settings and system objects in database [Web2A].
    2015-03-24 14:14:32.31 spid4s      Could not open database [LEGACY]. Replication settings and system objects could not be upgraded. If the database is used for replication, run sp_vupgrade_replication in the [master] database when the
    database is available.
    2015-03-24 14:14:32.31 spid4s      Could not open database [PROD_1]. Replication settings and system objects could not be upgraded. If the database is used for replication, run sp_vupgrade_replication in the [master] database when the
    database is available.
    2015-03-24 14:14:32.31 spid4s      Could not open database [PROD_LS]. Replication settings and system objects could not be upgraded. If the database is used for replication, run sp_vupgrade_replication in the [master] database when
    the database is available.
    2015-03-24 14:14:32.31 spid4s      Could not open database [PROD_NG]. Replication settings and system objects could not be upgraded. If the database is used for replication, run sp_vupgrade_replication in the [master] database when
    the database is available.
    2015-03-24 14:14:32.31 spid4s      Could not open database [PROD_RSV]. Replication settings and system objects could not be upgraded. If the database is used for replication, run sp_vupgrade_replication in the [master] database when
    the database is available.
    2015-03-24 14:14:32.33 spid4s      Attempting to copy article resolvers from SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL11.MSSQLSERVER\Replication\ArticleResolver
    2015-03-24 14:14:32.59 spid4s      sp_vupgrade_replication executed successfully
    2015-03-24 14:14:32.59 spid4s      Saving upgrade script status to 'SOFTWARE\Microsoft\MSSQLServer\Replication\Setup'.
    2015-03-24 14:14:32.59 spid4s      Saved upgrade script status successfully.
    2015-03-24 14:14:32.59 spid4s      Database 'master' is upgrading script 'upgrade_ucp_cmdw_discovery.sql' from level 184554434 to level 184554958.
    2015-03-24 14:14:32.92 spid4s      Database 'master' is upgrading script 'msdb110_upgrade.sql' from level 184554434 to level 184554958.
    2015-03-24 14:14:32.92 spid4s      ----------------------------------
    2015-03-24 14:14:32.92 spid4s      Starting execution of PRE_MSDB.SQL
    2015-03-24 14:14:32.92 spid4s      ----------------------------------
    2015-03-24 14:14:33.08 spid4s      Setting database option COMPATIBILITY_LEVEL to 100 for database 'msdb'.
    2015-03-24 14:14:33.17 spid4s      -----------------------------------------
    2015-03-24 14:14:33.17 spid4s      Starting execution of PRE_SQLAGENT100.SQL
    2015-03-24 14:14:33.17 spid4s      -----------------------------------------
    2015-03-24 14:14:33.17 spid4s      Setting database option COMPATIBILITY_LEVEL to 110 for database 'msdb'.
    2015-03-24 14:14:33.22 spid4s      Configuration option 'allow updates' changed from 0 to 1. Run the RECONFIGURE statement to install.
    2015-03-24 14:14:33.22 spid4s      Configuration option 'allow updates' changed from 0 to 1. Run the RECONFIGURE statement to install.
    2015-03-24 14:15:00.06 spid6s      SQL Server has encountered 1 occurrence(s) of I/O requests taking longer than 15 seconds to complete on file [G:\\System DB\Logs\MSDBLog.ldf] in database [msdb] (4).  The OS file handle is 0x0000000000000790. 
    The offset of the latest long I/O is: 0x00000000efac00
    2015-03-24 14:16:00.87 spid4s      DBCC TRACEOFF 1717, server process ID (SPID) 4. This is an informational message only; no user action is required.
    2015-03-24 14:16:00.87 spid4s      DBCC execution completed. If DBCC printed error messages, contact your system administrator.
    2015-03-24 14:16:00.88 spid4s      
    2015-03-24 14:16:00.88 spid4s      Creating table temp_sysjobschedules
    2015-03-24 14:16:01.00 spid4s      
    2015-03-24 14:16:01.00 spid4s      Alter table sysdownloadlist...
    2015-03-24 14:16:01.00 spid4s      
    2015-03-24 14:16:01.00 spid4s      Alter table sysjobhistory...
    2015-03-24 14:16:01.02 spid4s      
    2015-03-24 14:16:01.02 spid4s      Alter table systargetservers...
    2015-03-24 14:16:01.02 spid4s      
    2015-03-24 14:16:01.02 spid4s      Alter table sysjobsteps...
    2015-03-24 14:16:01.09 spid4s      Configuration option 'allow updates' changed from 1 to 0. Run the RECONFIGURE statement to install.
    2015-03-24 14:16:01.09 spid4s      Configuration option 'allow updates' changed from 1 to 0. Run the RECONFIGURE statement to install.
    2015-03-24 14:16:01.09 spid4s      
    2015-03-24 14:16:01.09 spid4s      -----------------------------------------
    2015-03-24 14:16:01.09 spid4s      Execution of PRE_SQLAGENT100.SQL complete
    2015-03-24 14:16:01.09 spid4s      -----------------------------------------
    2015-03-24 14:16:01.10 spid4s      DMF pre-upgrade steps...
    2015-03-24 14:16:01.25 spid4s      DC pre-upgrade steps...
    2015-03-24 14:16:01.25 spid4s      Check if Data collector config table exists...
    2015-03-24 14:16:01.25 spid4s      Data Collector state before upgrade: 0
    2015-03-24 14:16:01.25 spid4s      pre_dc100::Check if syscollector_collection_sets_internal table exists...
    2015-03-24 14:16:01.25 spid4s      pre_dc100::Capturing Collection set status in temp table...
    2015-03-24 14:16:01.33 spid4s      Deleting cached auto-generated T-SQL Data Collection packages from msdb...
    2015-03-24 14:16:01.33 spid4s      End of DC pre-upgrade steps.
    2015-03-24 14:16:01.33 spid4s      DAC pre-upgrade steps...
    2015-03-24 14:16:01.33 spid4s      Starting DAC pre-upgrade steps ...
    2015-03-24 14:16:01.33 spid4s      End of DAC pre-upgrade steps.
    2015-03-24 14:16:01.33 spid4s      ----------------------------------
    2015-03-24 14:16:01.33 spid4s      Starting execution of MSDB.SQL
    2015-03-24 14:16:01.33 spid4s      ----------------------------------
    2015-03-24 14:16:01.39 spid4s      Configuration option 'allow updates' changed from 0 to 1. Run the RECONFIGURE statement to install.
    2015-03-24 14:16:01.39 spid4s      Configuration option 'allow updates' changed from 0 to 1. Run the RECONFIGURE statement to install.
    2015-03-24 14:16:01.42 spid4s      Checking the size of MSDB...
    2015-03-24 14:16:01.60 spid4s      
    2015-03-24 14:16:01.60 spid4s      Setting database option TRUSTWORTHY to ON for database 'msdb'.
    2015-03-24 14:16:01.60 spid4s      Setting database option RECOVERY to SIMPLE for database 'msdb'.
    2015-03-24 14:16:01.63 spid4s      ----------------------------------
    2015-03-24 14:16:01.63 spid4s      Finished execution of MSDB.SQL
    2015-03-24 14:16:01.63 spid4s      ----------------------------------
    2015-03-24 14:16:01.63 spid4s      -----------------------------------------
    2015-03-24 14:16:01.63 spid4s      Starting execution of MSDB_VERSIONING.SQL
    2015-03-24 14:16:01.63 spid4s      -----------------------------------------
    2015-03-24 14:16:01.63 spid4s      -----------------------------------------
    2015-03-24 14:16:01.63 spid4s      Finished execution of MSDB_VERSIONING.SQL
    2015-03-24 14:16:01.63 spid4s      -----------------------------------------
    2015-03-24 14:16:01.63 spid4s      Dropping view MSdatatype_mappings...
    2015-03-24 14:16:01.63 spid4s      Dropping view sysdatatypemappings...
    2015-03-24 14:16:30.94 spid4s      Dropping table MSdbms_datatype_mapping...
    2015-03-24 14:16:30.95 spid4s      Dropping table MSdbms_map...
    2015-03-24 14:16:30.96 spid4s      Dropping table MSdbms_datatype...
    2015-03-24 14:16:30.96 spid4s      Dropping table MSdbms...
    2015-03-24 14:16:30.99 spid4s      Creating table MSdbms
    2015-03-24 14:16:31.00 spid4s      Creating table MSdbms_datatype
    2015-03-24 14:17:30.96 spid4s      Creating table MSdbms_map
    2015-03-24 14:17:30.96 spid4s      Creating table MSdbms_datatype_mapping
    2015-03-24 14:17:30.97 spid4s      Definining default datatype mappings
    2015-03-24 14:17:30.98 spid4s      Creating datatype mappings for MSSQLSERVER to ORACLE8
    2015-03-24 14:17:31.08 spid4s      Creating datatype mappings for MSSQLSERVER to ORACLE9
    2015-03-24 14:17:31.12 spid4s      Creating datatype mappings for MSSQLSERVER to ORACLE10
    2015-03-24 14:17:31.17 spid4s      Creating datatype mappings for MSSQLSERVER to ORACLE11
    2015-03-24 14:17:31.22 spid4s      Creating datatype mappings for MSSQLSERVER to DB2
    2015-03-24 14:17:31.28 spid4s      Creating datatype mappings for MSSQLSERVER to SYBASE
    2015-03-24 14:17:31.33 spid4s      Creating datatype mappings for ORACLE8 to MSSQLSERVER
    2015-03-24 14:17:31.38 spid4s      Creating datatype mappings for ORACLE9 to MSSQLSERVER
    2015-03-24 14:17:31.45 spid4s      Creating datatype mappings for ORACLE10 to MSSQLServer
    2015-03-24 14:17:50.00 spid4s      Creating datatype mappings for ORACLE11 to MSSQLServer
    2015-03-24 14:17:59.30 spid4s      Creating view MSdatatype_mappings
    2015-03-24 14:17:59.31 spid4s      Creating view sysdatatypemappings
    2015-03-24 14:17:59.89 spid4s      Dropping signature from: sp_enum_proxy_for_subsystem
    2015-03-24 14:17:59.89 spid4s      Dropping signature from: sp_enum_login_for_proxy
    2015-03-24 14:17:59.89 spid4s      Dropping signature from: sysmail_delete_mailitems_sp
    2015-03-24 14:17:59.89 spid4s      Dropping signature from: sp_sqlagent_get_startup_info
    2015-03-24 14:17:59.89 spid4s      Dropping signature from: sp_sqlagent_has_server_access
    2015-03-24 14:17:59.89 spid4s      Dropping signature from: sp_sqlagent_get_perf_counters
    2015-03-24 14:17:59.89 spid4s      Dropping signature from: sp_sqlagent_notify
    2015-03-24 14:17:59.89 spid4s      Dropping signature from: sysmail_delete_log_sp
    2015-03-24 14:17:59.89 spid4s      Dropping signature from: sp_is_sqlagent_starting
    2015-03-24 14:17:59.89 spid4s      Dropping signature from: sp_verify_job_identifiers
    2015-03-24 14:17:59.89 spid4s      Dropping signature from: sp_verify_schedule_identifiers
    2015-03-24 14:17:59.90 spid4s      Dropping signature from: sp_verify_jobproc_caller
    2015-03-24 14:17:59.90 spid4s      Dropping signature from: sp_downloaded_row_limiter
    2015-03-24 14:17:59.90 spid4s      Dropping signature from: sp_post_msx_operation
    2015-03-24 14:17:59.90 spid4s      Dropping signature from: sp_verify_performance_condition
    2015-03-24 14:17:59.90 spid4s      Dropping signature from: sp_verify_job_date
    2015-03-24 14:17:59.90 spid4s      Dropping signature from: sp_verify_job_time
    2015-03-24 14:17:59.90 spid4s      Dropping signature from: sp_verify_alert
    2015-03-24 14:17:59.90 spid4s      Dropping signature from: sp_update_alert
    2015-03-24 14:17:59.90 spid4s      Dropping signature from: sp_delete_job_references
    2015-03-24 14:17:59.90 spid4s      Dropping signature from: sp_delete_all_msx_jobs
    2015-03-24 14:17:59.90 spid4s      Dropping signature from: sysmail_verify_accountparams_sp
    2015-03-24 14:17:59.90 spid4s      Dropping signature from: sp_generate_target_server_job_assignment_sql
    2015-03-24 14:17:59.90 spid4s      Dropping signature from: sp_generate_server_description
    2015-03-24 14:17:59.90 spid4s      Dropping signature from: sysmail_verify_principal_sp
    2015-03-24 14:17:59.90 spid4s      Dropping signature from: sp_msx_set_account
    2015-03-24 14:17:59.90 spid4s      Dropping signature from: sysmail_verify_profile_sp
    2015-03-24 14:17:59.90 spid4s      Dropping signature from: sp_msx_get_account
    2015-03-24 14:17:59.90 spid4s      Dropping signature from: sysmail_verify_account_sp
    2015-03-24 14:17:59.90 spid4s      Dropping signature from: sp_delete_operator
    2015-03-24 14:17:59.90 spid4s      Dropping signature from: sysmail_add_profile_sp
    2015-03-24 14:17:59.90 spid4s      Dropping signature from: sp_msx_defect
    2015-03-24 14:17:59.90 spid4s      Dropping signature from: sysmail_update_profile_sp
    2015-03-24 14:17:59.90 spid4s      Dropping signature from: sp_msx_enlist
    2015-03-24 14:17:59.91 spid4s      Dropping signature from: sysmail_delete_profile_sp
    2015-03-24 14:17:59.91 spid4s      Dropping signature from: sp_delete_targetserver
    2015-03-24 14:17:59.91 spid4s      Dropping signature from: sysmail_help_profile_sp
    2015-03-24 14:17:59.91 spid4s      Dropping signature from: sp_enlist_tsx
    2015-03-24 14:17:59.91 spid4s      Dropping signature from: sysmail_create_user_credential_sp
    2015-03-24 14:17:59.91 spid4s      Dropping signature from: sp_get_sqlagent_properties
    2015-03-24 14:17:59.91 spid4s      Dropping signature from: sysmail_alter_user_credential_sp
    2015-03-24 14:17:59.91 spid4s      Dropping signature from: sp_set_sqlagent_properties
    2015-03-24 14:17:59.91 spid4s      Dropping signature from: sysmail_drop_user_credential_sp
    2015-03-24 14:17:59.91 spid4s      Dropping signature from: sp_add_targetservergroup
    2015-03-24 14:17:59.91 spid4s      Dropping signature from: sysmail_add_account_sp
    2015-03-24 14:17:59.91 spid4s      Dropping signature from: sp_update_targetservergroup
    2015-03-24 14:17:59.91 spid4s      Dropping signature from: sysmail_update_account_sp
    2015-03-24 14:17:59.91 spid4s      Dropping signature from: sp_delete_targetservergroup
    2015-03-24 14:17:59.91 spid4s      Dropping signature from: sysmail_delete_account_sp
    2015-03-24 14:17:59.91 spid4s      Dropping signature from: sp_help_targetservergroup
    2015-03-24 14:17:59.91 spid4s      Dropping signature from: sysmail_help_account_sp
    2015-03-24 14:17:59.91 spid4s      Dropping signature from: sp_add_targetsvrgrp_member
    2015-03-24 14:17:59.91 spid4s      Dropping signature from: sysmail_help_admin_account_sp
    2015-03-24 14:17:59.91 spid4s      Dropping signature from: sp_delete_targetsvrgrp_member
    2015-03-24 14:17:59.91 spid4s      Dropping signature from: sysmail_add_profileaccount_sp
    2015-03-24 14:17:59.91 spid4s      Dropping signature from: sp_verify_category
    2015-03-24 14:17:59.91 spid4s      Dropping signature from: sysmail_update_profileaccount_sp
    2015-03-24 14:17:59.92 spid4s      Dropping signature from: sp_add_category
    2015-03-24 14:17:59.92 spid4s      Dropping signature from: sysmail_delete_profileaccount_sp
    2015-03-24 14:17:59.92 spid4s      Dropping signature from: sp_update_category
    2015-03-24 14:17:59.92 spid4s      Dropping signature from: sysmail_help_profileaccount_sp
    2015-03-24 14:17:59.92 spid4s      Dropping signature from: sp_delete_category
    2015-03-24 14:17:59.92 spid4s      Dropping signature from: sysmail_configure_sp
    2015-03-24 14:17:59.92 spid4s      Dropping signature from: sp_help_category
    2015-03-24 14:17:59.92 spid4s      Dropping signature from: sysmail_help_configure_sp
    2015-03-24 14:17:59.92 spid4s      Dropping signature from: sp_help_targetserver
    2015-03-24 14:17:59.92 spid4s      Dropping signature from: sysmail_help_configure_value_sp
    2015-03-24 14:17:59.92 spid4s      Dropping signature from: sp_resync_targetserver
    2015-03-24 14:17:59.92 spid4s      Dropping signature from: sysmail_add_principalprofile_sp
    2015-03-24 14:17:59.92 spid4s      Dropping signature from: sp_purge_jobhistory
    2015-03-24 14:17:59.92 spid4s      Dropping signature from: sysmail_update_principalprofile_sp
    2015-03-24 14:17:59.92 spid4s      Dropping signature from: sp_help_jobhistory_full
    2015-03-24 14:17:59.92 spid4s      Dropping signature from: sysmail_delete_principalprofile_sp
    2015-03-24 14:17:59.92 spid4s      Dropping signature from: sp_help_jobhistory_summary
    2015-03-24 14:17:59.92 spid4s      Dropping signature from: sysmail_help_principalprofile_sp
    2015-03-24 14:17:59.92 spid4s      Dropping signature from: sp_help_jobhistory
    2015-03-24 14:17:59.92 spid4s      Dropping signature from: sysmail_logmailevent_sp
    2015-03-24 14:17:59.92 spid4s      Dropping signature from: sp_add_jobserver
    2015-03-24 14:17:59.92 spid4s      Dropping signature from: sysmail_start_sp
    2015-03-24 14:17:59.92 spid4s      Dropping signature from: sp_delete_jobserver
    2015-03-24 14:17:59.93 spid4s      Dropping signature from: sysmail_stop_sp
    2015-03-24 14:17:59.93 spid4s      Dropping signature from: sp_help_jobserver
    2015-03-24 14:17:59.93 spid4s      Dropping signature from: sysmail_help_status_sp
    2015-03-24 14:17:59.93 spid4s      Dropping signature from: sp_help_downloadlist
    2015-03-24 14:17:59.93 spid4s      Dropping signature from: sysmail_help_queue_sp
    2015-03-24 14:17:59.93 spid4s      Dropping signature from: sp_enum_sqlagent_subsystems_internal
    2015-03-24 14:17:59.93 spid4s      Dropping signature from: sp_SendMailMessage
    2015-03-24 14:17:59.93 spid4s      Dropping signature from: sp_enum_sqlagent_subsystems
    2015-03-24 14:17:59.93 spid4s      Dropping signature from: sp_isprohibited
    2015-03-24 14:17:59.93 spid4s      Dropping signature from: sp_verify_subsystem
    2015-03-24 14:17:59.93 spid4s      Dropping signature from: sp_SendMailQueues
    2015-03-24 14:17:59.93 spid4s      Dropping signature from: sp_verify_schedule
    2015-03-24 14:17:59.93 spid4s      Dropping signature from: sp_ProcessResponse
    2015-03-24 14:17:59.93 spid4s      Dropping signature from: sp_add_schedule
    2015-03-24 14:17:59.93 spid4s      Dropping signature from: sp_MailItemResultSets
    2015-03-24 14:17:59.93 spid4s      Dropping signature from: sp_attach_schedule
    2015-03-24 14:17:59.93 spid4s      Dropping signature from: sp_process_DialogTimer
    2015-03-24 14:17:59.93 spid4s      Dropping signature from: sp_detach_schedule
    2015-03-24 14:17:59.93 spid4s      Dropping signature from: sp_readrequest
    2015-03-24 14:17:59.93 spid4s      Dropping signature from: sp_update_replication_job_parameter
    2015-03-24 14:17:59.93 spid4s      Dropping signature from: sp_GetAttachmentData
    2015-03-24 14:17:59.93 spid4s      Dropping signature from: sp_update_schedule
    2015-03-24 14:17:59.93 spid4s      Dropping signature from: sp_RunMailQuery
    2015-03-24 14:17:59.94 spid4s      Dropping signature from: sp_delete_schedule
    2015-03-24 14:17:59.94 spid4s      Dropping signature from: sp_validate_user
    2015-03-24 14:17:59.94 spid4s      Dropping signature from: sp_get_jobstep_db_username
    2015-03-24 14:17:59.94 spid4s      Dropping signature from: sp_send_dbmail
    2015-03-24 14:17:59.94 spid4s      Dropping signature from: sp_verify_jobstep
    2015-03-24 14:17:59.94 spid4s      Dropping signature from: sp_ExternalMailQueueListener
    2015-03-24 14:17:59.94 spid4s      Dropping signature from: sp_add_jobstep_internal
    2015-03-24 14:17:59.94 spid4s      Dropping signature from: sp_sysmail_activate
    2015-03-24 14:17:59.94 spid4s      Dropping signature from: sp_add_jobstep
    2015-03-24 14:17:59.94 spid4s      Dropping signature from: sp_update_jobstep
    2015-03-24 14:17:59.94 spid4s      Dropping signature from: sp_delete_jobstep
    2015-03-24 14:17:59.94 spid4s      Dropping signature from: sp_help_jobstep
    2015-03-24 14:17:59.94 spid4s      Dropping signature from: sp_write_sysjobstep_log
    2015-03-24 14:17:59.94 spid4s      Dropping signature from: sp_maintplan_delete_log
    2015-03-24 14:17:59.94 spid4s      Dropping signature from: sp_help_jobsteplog
    2015-03-24 14:17:59.94 spid4s      Dropping signature from: sp_maintplan_delete_subplan
    2015-03-24 14:17:59.94 spid4s      Dropping signature from: sp_delete_jobsteplog
    2015-03-24 14:17:59.94 spid4s      Dropping signature from: sp_maintplan_update_subplan_tsx
    2015-03-24 14:17:59.94 spid4s      Dropping signature from: sp_get_schedule_description
    2015-03-24 14:17:59.94 spid4s      Dropping signature from: sp_maintplan_subplans_by_job
    2015-03-24 14:17:59.94 spid4s      Dropping signature from: sp_add_jobschedule
    2015-03-24 14:17:59.94 spid4s      Dropping signature from: sp_maintplan_open_logentry
    2015-03-24 14:17:59.94 spid4s      Dropping signature from: sp_update_jobschedule
    2015-03-24 14:17:59.95 spid4s      Dropping signature from: sp_maintplan_close_logentry
    2015-03-24 14:17:59.95 spid4s      Dropping signature from: sp_delete_jobschedule
    2015-03-24 14:17:59.95 spid4s      Dropping signature from: sp_maintplan_update_log
    2015-03-24 14:17:59.95 spid4s      Dropping signature from: sp_help_schedule
    2015-03-24 14:17:59.95 spid4s      Dropping signature from: sp_maintplan_update_subplan
    2015-03-24 14:17:59.95 spid4s      Dropping signature from: sp_help_jobschedule
    2015-03-24 14:17:59.95 spid4s      Dropping signature from: sp_maintplan_delete_plan
    2015-03-24 14:17:59.95 spid4s      Dropping signature from: sp_verify_job
    2015-03-24 14:17:59.95 spid4s      Dropping signature from: sp_maintplan_start
    2015-03-24 14:17:59.95 spid4s      Dropping signature from: sp_add_job
    2015-03-24 14:17:59.95 spid4s      Dropping signature from: sp_get_script
    2015-03-24 14:17:59.95 spid4s      Dropping signature from: sp_update_job
    2015-03-24 14:17:59.95 spid4s      Dropping signature from: sp_clear_dbmaintplan_by_db
    2015-03-24 14:17:59.95 spid4s      Dropping signature from: sp_delete_job
    2015-03-24 14:17:59.95 spid4s      Dropping signature from: sp_add_maintenance_plan
    2015-03-24 14:17:59.95 spid4s      Dropping signature from: sp_get_composite_job_info
    2015-03-24 14:17:59.95 spid4s      Dropping signature from: sp_delete_maintenance_plan
    2015-03-24 14:17:59.95 spid4s      Dropping signature from: sp_help_job
    2015-03-24 14:17:59.95 spid4s      Dropping signature from: sp_add_maintenance_plan_db
    2015-03-24 14:17:59.95 spid4s      Dropping signature from: sp_help_jobcount
    2015-03-24 14:17:59.95 spid4s      Dropping signature from: sp_delete_maintenance_plan_db
    2015-03-24 14:17:59.95 spid4s      Dropping signature from: sp_help_jobs_in_schedule
    2015-03-24 14:17:59.95 spid4s      Dropping signature from: sp_add_maintenance_plan_job
    2015-03-24 14:17:59.96 spid4s      Dropping signature from: sp_manage_jobs_by_login
    2015-03-24 14:17:59.96 spid4s      Dropping signature from: sp_delete_maintenance_plan_job
    2015-03-24 14:17:59.96 spid4s      Dropping signature from: sp_apply_job_to_targets
    2015-03-24 14:17:59.96 spid4s      Dropping signature from: sp_help_maintenance_plan
    2015-03-24 14:17:59.96 spid4s      Dropping signature from: sp_remove_job_from_targets
    2015-03-24 14:17:59.96 spid4s      Dropping signature from: sp_get_job_alerts
    2015-03-24 14:17:59.96 spid4s      Dropping signature from: sp_start_job
    2015-03-24 14:17:59.96 spid4s      Dropping signature from: sp_stop_job
    2015-03-24 14:17:59.96 spid4s      Dropping signature from: sp_add_log_shipping_monitor_jobs
    2015-03-24 14:17:59.96 spid4s      Dropping signature from: sp_cycle_agent_errorlog
    2015-03-24 14:17:59.96 spid4s      Dropping signature from: sp_add_log_shipping_primary
    2015-03-24 14:17:59.96 spid4s      Dropping signature from: sp_get_chunked_jobstep_params
    2015-03-24 14:17:59.96 spid4s      Dropping signature from: sp_add_log_shipping_secondary
    2015-03-24 14:17:59.96 spid4s      Dropping signature from: sp_check_for_owned_jobs
    2015-03-24 14:17:59.96 spid4s      Dropping signature from: sp_delete_log_shipping_monitor_jobs
    2015-03-24 14:17:59.96 spid4s      Dropping signature from: sp_check_for_owned_jobsteps
    2015-03-24 14:17:59.96 spid4s      Dropping signature from: sp_delete_log_shipping_primary
    2015-03-24 14:17:59.96 spid4s      Dropping signature from: sp_sqlagent_refresh_job
    2015-03-24 14:17:59.96 spid4s      Dropping signature from: sp_delete_log_shipping_secondary
    2015-03-24 14:17:59.96 spid4s      Dropping signature from: sp_jobhistory_row_limiter
    2015-03-24 14:17:59.96 spid4s      Dropping signature from: sp_log_shipping_in_sync
    2015-03-24 14:17:59.96 spid4s      Dropping signature from: sp_sqlagent_log_jobhistory
    2015-03-24 14:17:59.96 spid4s      Dropping signature from: sp_log_shipping_get_date_from_file
    2015-03-24 14:17:59.97 spid4s      Dropping signature from: sp_sqlagent_check_msx_version
    2015-03-24 14:17:59.97 spid4s      Dropping signature from: sp_get_log_shipping_monitor_info
    2015-03-24 14:17:59.97 spid4s      Dropping signature from: sp_sqlagent_probe_msx
    2015-03-24 14:17:59.97 spid4s      Dropping signature from: sp_update_log_shipping_monitor_info
    2015-03-24 14:17:59.97 spid4s      Dropping signature from: sp_set_local_time
    2015-03-24 14:17:59.97 spid4s      Dropping signature from: sp_delete_log_shipping_monitor_info
    2015-03-24 14:17:59.97 spid4s      Dropping signature from: sp_multi_server_job_summary
    2015-03-24 14:17:59.97 spid4s      Dropping signature from: sp_remove_log_shipping_monitor_account
    2015-03-24 14:17:59.97 spid4s      Dropping signature from: sp_target_server_summary
    2015-03-24 14:17:59.97 spid4s      Dropping signature from: sp_log_shipping_monitor_backup
    2015-03-24 14:17:59.97 spid4s      Dropping signature from: sp_uniquetaskname
    2015-03-24 14:17:59.97 spid4s      Dropping signature from: sp_log_shipping_monitor_restore
    2015-03-24 14:17:59.97 spid4s      Dropping signature from: sp_addtask
    2015-03-24 14:17:59.97 spid4s      Dropping signature from: sp_change_monitor_role
    2015-03-24 14:17:59.97 spid4s      Dropping signature from: sp_droptask
    2015-03-24 14:17:59.97 spid4s      Dropping signature from: sp_create_log_shipping_monitor_account
    2015-03-24 14:17:59.97 spid4s      Dropping signature from: trig_targetserver_insert
    2015-03-24 14:17:59.97 spid4s      Dropping signature from: sp_add_alert_internal
    2015-03-24 14:17:59.97 spid4s      Dropping signature from: sp_ssis_addlogentry
    2015-03-24 14:17:59.97 spid4s      Dropping signature from: sp_add_alert
    2015-03-24 14:17:59.97 spid4s      Dropping signature from: sp_ssis_listpackages
    2015-03-24 14:17:59.97 spid4s      Dropping signature from: sp_delete_alert
    2015-03-24 14:17:59.97 spid4s      Dropping signature from: sp_ssis_listfolders
    2015-03-24 14:17:59.98 spid4s      Dropping signature from: sp_help_alert
    2015-03-24 14:17:59.98 spid4s      Dropping signature from: sp_ssis_deletepackage
    2015-03-24 14:17:59.98 spid4s      Dropping signature from: sp_verify_operator
    2015-03-24 14:17:59.98 spid4s      Dropping signature from: sp_ssis_deletefolder
    2015-03-24 14:17:59.98 spid4s      Dropping signature from: sp_add_operator
    2015-03-24 14:17:59.98 spid4s      Dropping signature from: sp_sqlagent_is_srvrolemember
    2015-03-24 14:17:59.98 spid4s      Dropping signature from: sp_ssis_getpackage
    2015-03-24 14:17:59.98 spid4s      Dropping signature from: sp_update_operator
    2015-03-24 14:17:59.98 spid4s      Dropping signature from: sp_verify_category_identifiers
    2015-03-24 14:17:59.98 spid4s      Dropping signature from: sp_ssis_getfolder
    2015-03-24 14:17:59.98 spid4s      Dropping signature from: sp_help_operator
    2015-03-24 14:17:59.98 spid4s      Dropping signature from: sp_ssis_putpackage
    2015-03-24 14:17:59.98 spid4s      Dropping signature from: sp_help_operator_jobs
    2015-03-24 14:17:59.98 spid4s      Dropping signature from: sp_verify_proxy_identifiers
    2015-03-24 14:17:59.98 spid4s      Dropping signature from: sp_verify_operator_identifiers
    2015-03-24 14:17:59.98 spid4s      Dropping signature from: sp_verify_credential_identifiers
    2015-03-24 14:17:59.98 spid4s      Dropping signature from: sp_ssis_addfolder
    2015-03-24 14:17:59.98 spid4s      Dropping signature from: sp_notify_operator
    2015-03-24 14:17:59.98 spid4s      Dropping signature from: sp_verify_subsystems
    2015-03-24 14:17:59.98 spid4s      Dropping signature from: sp_ssis_renamefolder
    2015-03-24 14:17:59.98 spid4s      Dropping signature from: sp_verify_notification
    2015-03-24 14:17:59.98 spid4s      Dropping signature from: sp_verify_subsystem_identifiers
    2015-03-24 14:17:59.98 spid4s      Dropping signature from: sp_ssis_setpackageroles
    2015-03-24 14:17:59.99 spid4s      Dropping signature from: sp_add_notification
    2015-03-24 14:17:59.99 spid4s      Dropping signature from: sp_verify_login_identifiers
    2015-03-24 14:17:59.99 spid4s      Dropping signature from: sp_ssis_getpackageroles
    2015-03-24 14:17:59.99 spid4s      Dropping signature from: sp_update_notification
    2015-03-24 14:17:59.99 spid4s      Dropping signature from: sp_verify_proxy
    2015-03-24 14:17:59.99 spid4s      Dropping signature from: sp_delete_notification
    2015-03-24 14:17:59.99 spid4s      Dropping signature from: sp_add_proxy
    2015-03-24 14:17:59.99 spid4s      Dropping signature from: sp_help_notification
    2015-03-24 14:17:59.99 spid4s      Dropping signature from: sp_delete_proxy
    2015-03-24 14:17:59.99 spid4s      Dropping signature from: sp_help_jobactivity
    2015-03-24 14:17:59.99 spid4s      Dropping signature from: sp_update_proxy
    2015-03-24 14:17:59.99 spid4s      Dropping signature from: sp_sqlagent_is_member
    2015-03-24 14:17:59.99 spid4s      Dropping signature from: sp_verify_proxy_permissions
    2015-03-24 14:17:59.99 spid4s      Dropping signature from: sp_sem_add_message
    2015-03-24 14:17:59.99 spid4s      Dropping signature from: sp_help_proxy
    2015-03-24 14:17:59.99 spid4s      Dropping signature from: sp_sem_drop_message
    2015-03-24 14:17:59.99 spid4s      Dropping signature from: sp_get_message_description
    2015-03-24 14:17:59.99 spid4s      Dropping signature from: sp_grant_proxy_to_subsystem
    2015-03-24 14:17:59.99 spid4s      Dropping signature from: sp_help_jobhistory_sem
    2015-03-24 14:17:59.99 spid4s      Dropping signature from: sp_grant_login_to_proxy
    2015-03-24 14:17:59.99 spid4s      Dropping signature from: sp_convert_jobid_to_char
    2015-03-24 14:17:59.99 spid4s      Dropping signature from: sp_revoke_login_from_proxy
    2015-03-24 14:17:59.99 spid4s      Dropping signature from: sp_revoke_proxy_from_subsystem

  • Rule "SQL Server 2012 feature Upgrade" Failed

    I am doing an in-place upgrade of SQL Server 2008 R2 SP2 > SQL Server 2012 SP1, both 64-bit, installed on Windows Server 2008 R2.
    I ran the SQL Server Upgrade Advisor tool prior to upgrade which reported no issues.
    The error I am getting is:
    In the detailed.txt log I can see the following:
    (11) 2013-12-29 12:28:10 Slp: Initializing rule      : SQL Server 2012 Feature Upgrade
    (11) 2013-12-29 12:28:10 Slp: Rule is will be executed  : True
    (11) 2013-12-29 12:28:10 Slp: Init rule target object: Microsoft.SqlServer.Configuration.SetupExtension.SkuUpgradeRule
    (11) 2013-12-29 12:28:10 Slp: -- SkuUpgradeRule : Rule 'FeatureUpgradeMatrixCheck' looking for previous version upgrade data for feature package 'sql_as_Cpu64'.
    (11) 2013-12-29 12:28:10 Slp: -- SkuUpgradeRule : Found feature package  'sql_as_ctp6_Cpu64' with SkuValue=ENTERPRISE (Enterprise) ProductVersion=10.52.4000.0
    (11) 2013-12-29 12:28:10 Slp: -- SkuUpgradeRule : Rule 'FeatureUpgradeMatrixCheck' found sourceVersion 10.0 and edition ENTERPRISE for feature package 'sql_as_Cpu64'.
    (11) 2013-12-29 12:28:10 Slp: -- SkuPublicConfigObject : ValidateSkuMatrix checking sku matrix for sourceVersion=10.0 sourceEdition=ENTERPRISE (Enterprise) sourceArchitecture=X64 targetEdition=STANDARD (Standard) targetArchitecture=X64
    (11) 2013-12-29 12:28:10 Slp: -- SkuPublicConfigObject : ValidateSkuMatrix source and target architecture match.
    (11) 2013-12-29 12:28:10 Slp: -- SkuPublicConfigObject : ValidateSkuMatrix did not find a match in sku matrix .
    (11) 2013-12-29 12:28:10 Slp: -- SkuUpgradeRule : Rule 'FeatureUpgradeMatrixCheck' feature package 'sql_as_Cpu64' is blocking upgrade.
    (11) 2013-12-29 12:28:10 Slp: -- SkuUpgradeRule : Rule 'FeatureUpgradeMatrixCheck' detection result: IsValidFeatureUpgrade=False
    (11) 2013-12-29 12:28:10 Slp: Evaluating rule        : FeatureUpgradeMatrixCheck
    (11) 2013-12-29 12:28:10 Slp: Rule running on machine: TAUPE-SERVER
    (11) 2013-12-29 12:28:10 Slp: Rule evaluation done   : Failed
    (11) 2013-12-29 12:28:10 Slp: Rule evaluation message: The specified edition upgrade is not supported. For information about supported upgrade paths, see the SQL Server 2012 version and edition upgrade in Books Online.
    (11) 2013-12-29 12:28:10 Slp: Send result to channel : RulesEngineNotificationChannel
    Prior to upgrade:
    From Summary.txt file:
    Overall summary:
      Final result:                  Passed
      Exit code (Decimal):           0
      Start time:                    2013-12-29 12:04:28
      End time:                      2013-12-29 12:08:02
      Requested action:              RunRules
    Machine Properties:
      Machine name:                  TAUPE-SERVER
      Machine processor count:       1
      OS version:                    Windows Server 2008 R2
      OS service pack:               Service Pack 1
      OS region:                     United States
      OS language:                   English (United States)
      OS architecture:               x64
      Process architecture:          64 Bit
      OS clustered:                  No
    Product features discovered:
      Product              Instance             Instance ID                   
    Feature                                  Language            
    Edition              Version         Clustered
      SQL Server 2008 R2   MSSQLSERVER          MSSQL10_50.MSSQLSERVER         Database Engine Services                
    1033                 Enterprise Edition   10.52.4000.0    No       
      SQL Server 2008 R2   MSSQLSERVER          MSSQL10_50.MSSQLSERVER         Full-Text and Semantic Extractions for Search 1033                
    Enterprise Edition   10.52.4000.0    No       
      SQL Server 2008 R2   MSSQLSERVER          MSAS10_50.MSSQLSERVER          Analysis Services                       
    1033                 Enterprise Edition   10.52.4000.0    No       
      SQL Server 2008 R2   MSSQLSERVER          MSRS10_50.MSSQLSERVER          Reporting Services - Native             
    1033                 Enterprise Edition   10.52.4000.0    No       
      SQL Server 2008 R2                                                      
    Management Tools - Basic                 1033                 Enterprise Edition   10.52.4000.0   
    No       
      SQL Server 2008 R2                                                      
    Management Tools - Complete              1033                 Enterprise Edition   10.52.4000.0   
    No       
      SQL Server 2008 R2                                                      
    Client Tools Connectivity                1033                 Enterprise Edition   10.52.4000.0   
    No       
    Package properties:
      Description:                   Microsoft SQL Server 2012
      ProductName:                   SQL Server 2012
      Type:                          RTM
      Version:                       11
      Installation location:        
    \\dovekie\drop\TFS2013\SQLServer2012SP1\x64\setup\
      Installation edition:          Standard
      Slipstream:                    True
    User Input Settings:
      ACTION:                        RunRules
      CONFIGURATIONFILE:            
      ENU:                           true
      FEATURES:                     
      HELP:                          false
      IACCEPTSQLSERVERLICENSETERMS:  false
      INDICATEPROGRESS:              false
      INSTANCENAME:                  <empty>
      PID:                           *****
      QUIET:                         false
      QUIETSIMPLE:                   false
      RULES:                         GlobalRules
      UIMODE:                        Normal
      X86:                           false
      Configuration file:            C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\20131229_120425\ConfigurationFile.ini
    Rules with failures:
    Global rules:
    There are no scenario-specific rules.
    Rules report file:               C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\20131229_120425\SystemConfigurationCheck_Report.htm
    As far as I'm aware, the upgrade path I am following is a supported one, any suggestions will be much appreciated!
    Thank you.

    Product features discovered:
      Product              Instance             Instance ID                   
    Feature                                  Language            
    Edition              Version         Clustered
      SQL Server 2008 R2   MSSQLSERVER          MSSQL10_50.MSSQLSERVER         Database Engine Services                
    1033                 Enterprise Edition   10.52.4000.0    No       
      SQL Server 2008 R2   MSSQLSERVER          MSSQL10_50.MSSQLSERVER         Full-Text and Semantic Extractions for Search 1033                
    Enterprise Edition   10.52.4000.0    No       
      SQL Server 2008 R2   MSSQLSERVER          MSAS10_50.MSSQLSERVER          Analysis Services                       
    1033                 Enterprise Edition   10.52.4000.0    No       
      SQL Server 2008 R2   MSSQLSERVER          MSRS10_50.MSSQLSERVER          Reporting Services - Native             
    1033                 Enterprise Edition   10.52.4000.0    No       
      SQL Server 2008 R2                                                      
    Management Tools - Basic                 1033                 Enterprise Edition   10.52.4000.0   
    No       
      SQL Server 2008 R2                                                      
    Management Tools - Complete              1033                 Enterprise Edition   10.52.4000.0   
    No       
      SQL Server 2008 R2                                                      
    Client Tools Connectivity                1033                 Enterprise Edition   10.52.4000.0   
    No       
    Package properties:
      Description:                   Microsoft SQL Server 2012
      ProductName:                   SQL Server 2012
      Type:                          RTM
      Version:                       11
      Installation location:        
    \\dovekie\drop\TFS2013\SQLServer2012SP1\x64\setup\
      Installation edition:          Standard
      Slipstream:                    True
    User Input
    Hello ,
    You are trying to upgrade to SQL 2012 standard edition which is not supported .you can only upgrade from SQL server 2008 R2 Sp2 Enterprise edition to SQL 2012 Enterprise or business intellgience. see below link for supported upgrade paths
    http://technet.microsoft.com/en-us/library/ms143393.aspx
    If you want to move ahead you should try Side by side approach.Create new SQL server 2012 box and restore backup.
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • Msg 8631 Internal error: Server stack limit has been reached on SQL Server 2012 from T-SQL script that runs on SQL Server 2008 R2

    I have an Script mostly that is generated by SSMS which works with-out issue on SQL Server 2008, but when I attempt to run it on a new fresh install of SQL Server 2012 I get an Msg 8631. Internal error: Server stack limit has been reached. Please look for
    potentially deep nesting in your query, and try to simplify it.
    The script itself doesn't seem to be all that deep or nested.  The script is large 2600 lines and when I remove the bulk of the 2600 lines, it does run on SQL Server 2012.  I'm just really baffled why something that SQL Server generated with very
    few additions/changes AND that WORKS without issue in SQL Server 2008 R2 would suddenly be invalid in SQL Server 2012
    I need to know why my script which is working great on our current SQL Server 2008 R2 servers suddenly fails and won't run on an new SQL Server 2012 server.  This script is used to create 'bulk' Replications on a large number of DBs saving a tremendous
    amount of our time doing it the manual way.
    Below is an 'condensed' version of the script which fails.  I have removed around 2550 lines of specific sp_addarticle statements which are mostly just copy and pasted from what SQL Management Studio 'scripted' for me went I when through the Replication
    Wizard and told it to save to script.
    declare @dbname varchar(MAX), @SQL nvarchar(MAX)
    declare c_dblist cursor for
    select name from sys.databases WHERE name like 'dbone[_]%' order by name;
    open c_dblist
    fetch next from c_dblist into @dbname
    while @@fetch_status = 0
    begin
    print @dbname
    SET @SQL = 'DECLARE @dbname NVARCHAR(MAX); SET @dbname = ''' + @dbname + ''';
    use ['+@dbname+']
    exec sp_replicationdboption @dbname = N'''+@dbname+''', @optname = N''publish'', @value = N''true''
    use ['+@dbname+']
    exec ['+@dbname+'].sys.sp_addlogreader_agent @job_login = N''DOMAIN\DBServiceAccount'', @job_password = N''secret'', @publisher_security_mode = 1, @job_name = null
    -- Adding the transactional publication
    use ['+@dbname+']
    exec sp_addpublication @publication = N'''+@dbname+' Replication'', @description = N''Transactional publication of database
    '''''+@dbname+''''' from Publisher ''''MSSQLSRV\INSTANCE''''.'', @sync_method = N''concurrent'', @retention = 0, @allow_push = N''true'', @allow_pull = N''true'', @allow_anonymous = N''false'', @enabled_for_internet
    = N''false'', @snapshot_in_defaultfolder = N''true'', @compress_snapshot = N''false'', @ftp_port = 21, @allow_subscription_copy = N''false'', @add_to_active_directory = N''false'', @repl_freq = N''continuous'', @status = N''active'', @independent_agent = N''true'',
    @immediate_sync = N''true'', @allow_sync_tran = N''false'', @allow_queued_tran = N''false'', @allow_dts = N''false'', @replicate_ddl = 1, @allow_initialize_from_backup = N''true'', @enabled_for_p2p = N''false'', @enabled_for_het_sub = N''false''
    exec sp_addpublication_snapshot @publication = N'''+@dbname+' Replication'', @frequency_type = 1, @frequency_interval = 1, @frequency_relative_interval = 1, @frequency_recurrence_factor = 0, @frequency_subday = 8,
    @frequency_subday_interval = 1, @active_start_time_of_day = 0, @active_end_time_of_day = 235959, @active_start_date = 0, @active_end_date = 0, @job_login = N''DOMAIN\DBServiceAccount'', @job_password = N''secret'', @publisher_security_mode = 1
    -- There are around 2400 lines roughly the same as this only difference is the tablename repeated below this one
    use ['+@dbname+']
    exec sp_addarticle @publication = N'''+@dbname+' Replication'', @article = N''TABLE_ONE'', @source_owner = N''dbo'', @source_object = N''TABLE_ONE'', @type = N''logbased'', @description = null, @creation_script =
    null, @pre_creation_cmd = N''drop'', @schema_option = 0x000000000803509F, @identityrangemanagementoption = N''manual'', @destination_table = N''TABLE_ONE'', @destination_owner = N''dbo'', @vertical_partition = N''false'', @ins_cmd = N''CALL sp_MSins_dboTABLE_ONE'',
    @del_cmd = N''CALL sp_MSdel_dboTABLE_ONE'', @upd_cmd = N''SCALL sp_MSupd_dboTABLE_ONE''
    EXEC sp_executesql @SQL
    SET @dbname = REPLACE(@dbname, 'dbone_', 'dbtwo_');
    print @dbname
    SET @SQL = 'DECLARE @dbname NVARCHAR(MAX); SET @dbname = ''' + @dbname + ''';
    use ['+@dbname+']
    exec sp_replicationdboption @dbname = N'''+@dbname+''', @optname = N''publish'', @value = N''true''
    use ['+@dbname+']
    exec ['+@dbname+'].sys.sp_addlogreader_agent @job_login = N''DOMAIN\DBServiceAccount'', @job_password = N''secret'', @publisher_security_mode = 1, @job_name = null
    -- Adding the transactional publication
    use ['+@dbname+']
    exec sp_addpublication @publication = N'''+@dbname+' Replication'', @description = N''Transactional publication of database
    '''''+@dbname+''''' from Publisher ''''MSSQLSRV\INSTANCE''''.'', @sync_method = N''concurrent'', @retention = 0, @allow_push = N''true'', @allow_pull = N''true'', @allow_anonymous = N''false'', @enabled_for_internet
    = N''false'', @snapshot_in_defaultfolder = N''true'', @compress_snapshot = N''false'', @ftp_port = 21, @allow_subscription_copy = N''false'', @add_to_active_directory = N''false'', @repl_freq = N''continuous'', @status = N''active'', @independent_agent = N''true'',
    @immediate_sync = N''true'', @allow_sync_tran = N''false'', @allow_queued_tran = N''false'', @allow_dts = N''false'', @replicate_ddl = 1, @allow_initialize_from_backup = N''true'', @enabled_for_p2p = N''false'', @enabled_for_het_sub = N''false''
    exec sp_addpublication_snapshot @publication = N'''+@dbname+' Replication'', @frequency_type = 1, @frequency_interval = 1, @frequency_relative_interval = 1, @frequency_recurrence_factor = 0, @frequency_subday = 8,
    @frequency_subday_interval = 1, @active_start_time_of_day = 0, @active_end_time_of_day = 235959, @active_start_date = 0, @active_end_date = 0, @job_login = N''DOMAIN\DBServiceAccount'', @job_password = N''secret'', @publisher_security_mode = 1
    -- There are around 140 lines roughly the same as this only difference is the tablename repeated below this one
    use ['+@dbname+']
    exec sp_addarticle @publication = N'''+@dbname+' Replication'', @article = N''DB_TWO_TABLE_ONE'', @source_owner = N''dbo'', @source_object = N''DB_TWO_TABLE_ONE'', @type = N''logbased'', @description = null, @creation_script
    = null, @pre_creation_cmd = N''drop'', @schema_option = 0x000000000803509D, @identityrangemanagementoption = N''manual'', @destination_table = N''DB_TWO_TABLE_ONE'', @destination_owner = N''dbo'', @vertical_partition = N''false''
    EXEC sp_executesql @SQL
    fetch next from c_dblist into @dbname
    end
    close c_dblist
    deallocate c_dblist
    George P Botuwell, Programmer

    Hi George,
    Thank you for your question. 
    I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated. 
    Thank you for your understanding and support.
    If you have any feedback on our support, please click
    here.
    Allen Li
    TechNet Community Support

  • Full-Text search is not working with PDF files - SQL Server 2012 64 bit

    Hi,
    We are in the process of storing PDF files in SQL Server 2012 with Full-Text search capability.
    I followed the steps as below and it works fine with word document but not for PDF files. I tried with PDF ifiler 11 & 9 and both are unsuccessful.
    Server/DB Level Settings:
    1)
    Enable FileStream
    2)
    Install Full-Text
    then restart
    3)
    Use [specific db]
    alter
    database [db name]
    add
    filegroup Files
    contains filestream;
    alter
    database [db name]
    add
    file (
    name = N'Files',
    filename =
    N'D:\SQL\DATA') to
    filegroup [Files];
    3)
    Database level
    Settings:
    FileStream:
    FileStream
    Directory name:
    [Set the name]
    FileStream
    non-transacted
    Access: [set Appropriate]
    3a)
    Add a
    datafile to DB
    with filestreamdata
    filetype.
    4)
    Share D:\SQL\DATA
    directory and
    add specific accounts
    with read/write
    access
    5)
    Give bulkadmin
    access to those
    specific accounts
    at server
    level
    6)
    From the
    page (link)
    download and
    install the *.pdf
    IFilter for
    FTS. Link:
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=5542
    7)
    To the
    PATH global system
    variable add
    path to the
    catalog,
    where you installed
    the plugin.
    Default for
    this version is:
    C:\Program
    Files\Adobe\Adobe
    PDF iFilter 9
    for 64-bit
    platforms\bin
    8)
    From the
    page (link)
    download a
    FilterPackx64.exe
    and install
    it. Link:
    http://www.microsoft.com/en-us/download/confirmation.aspx?id=20109
    9)
    Now from
    SSMS execute the following
    procedures:
    -sp_fulltext_service
    'load_os_resources',1
    -sp_fulltext_service
    'verify_signature', 0
    EXEC
    sp_fulltext_service
    'update_languages';
    -- update language list
    EXEC
    sp_fulltext_service
    'restart_all_fdhosts';
    -- restart daemon
    reconfigure
    with override;
    10)
    Restart the
    server
    11)
    select document_type,
    path from
    sys.fulltext_document_types
    where document_type
    = '.pdf'
    -select
    document_type,
    path from sys.fulltext_document_types
    where document_type
    = '.docx'
    12) Results are OK.
    Following is my Table /Index/ catalog script:
    CREATE
    TABLE dbo.DocumentFilesTest
    DocumentId  INT
    IDENTITY(1,1)
    NOT NULL
    PRIMARY KEY,
    AddDate datetime
    NOT NULL,
    Name nvarchar(50)
    NOT NULL,
    Extension nvarchar(10)
    NOT NULL,
    Description nvarchar(1000)
    NULL,
    FileStream_Id UNIQUEIDENTIFIER
    ROWGUIDCOL NOT
    NULL UNIQUE DEFAULT
    NEWSEQUENTIALID(),
    FileSource varbinary(MAX)
    FILESTREAM DEFAULT(0x)
    go
    --Add default add date for document   
    ALTER
    TABLE dbo.DocumentFilesTest
    ADD CONSTRAINT
    DF_DocumentFilesTest_AddDate
    DEFAULT sysdatetime()
    FOR AddDate
    EXEC
    sp_fulltext_database
    'enable'
    GO
    IF
    NOT EXISTS
    (SELECT
    TOP 1 1 FROM sys.fulltext_catalogs
    WHERE name
    = 'Ducuments_Catalog_test')
    BEGIN
    EXEC sp_fulltext_catalog
    'Ducuments_Catalog_test',
    'create',
    'D:\SQL\PDFBlob';
    END
    --EXEC sp_fulltext_catalog 'Ducuments_Catalog_test', 'drop'
    DECLARE
    @indexName nvarchar(255)
    = (SELECT
    Top 1 i.Name
    from sys.indexes
    i
    Join sys.tables
    t on 
    i.object_id
    = t.object_id
    WHERE t.Name
    = 'DocumentFilesTest'
    AND i.type_desc
    = 'CLUSTERED')
    PRINT @indexName
    EXEC
    sp_fulltext_table
    'DocumentFilesTest',
    'create',
    'Ducuments_Catalog_test', 
    @indexName
    EXEC
    sp_fulltext_column
    'DocumentFilesTest',
    'FileSource',
    'add', 0,
    'Extension'
    EXEC
    sp_fulltext_table
    'DocumentFilesTest',
    'activate'
    EXEC
    sp_fulltext_catalog
    'Ducuments_Catalog_test',
    'start_full'
    ALTER
    FULLTEXT INDEX
    ON [dbo].[DocumentFilesTest]
    ENABLE
    ALTER
    FULLTEXT INDEX
    ON [dbo].[DocumentFilesTest]
    SET CHANGE_TRACKING
    = AUTO
    ALTER
    FULLTEXT CATALOG
    Ducuments_Catalog_test REBUILD
    WITH ACCENT_SENSITIVITY=OFF;
    INSERT
    INTO DocumentFilesTest(Extension,
    Name,
    FileSource)
    SELECT
     'pdf'
    'BOL12006553.pdf'
    * FROM
    OPENROWSET(BULK
    'd:\SQL\PDFBlob\BOL12006553.pdf',
    SINGLE_BLOB)
    AS BLOB;
    GO
    INSERT
    INTO DocumentFilesTest(Extension,
    Name,
    FileSource)
    SELECT
     'docx'
    'test.docx'
    * FROM
    OPENROWSET(BULK
    'd:\SQL\PDFBlob\test.docx',
    SINGLE_BLOB)
    AS Document;
    GO
    SELECT
    d.*
    FROM dbo.DocumentFilesTest
    d WHERE
    Contains(d.FileSource,
    'BILL')
    Returns nothing. it should come from PDF file
    SELECT
    d.*
    FROM dbo.DocumentFilesTest
    d WHERE
    Contains(d.FileSource,
    'TEST')
    Returns from word document as follows:
    2           2014-06-04 10:11:41.393            test.docx docx           
    NULL   [BINARY Value]  [Binary Value]
    Any help is appreciated. Its been a long wait.
    Thanks,
    Vel
    Vel Thavasi

    Hello,
    Did you check the fulltext log files for more details about the errors. If the filter isn’t working, there should be errors in the error log file.
    The following thread is about similar issue, please refer to:
    http://social.msdn.microsoft.com/forums/sqlserver/en-US/69535dbc-c7ef-402d-a347-d3d3e4860d72/sql-server-2008-64bit-fulltext-indexing-pdf-not-working-cant-find-ifilter
    Regards,
    Fanny Liu
    If you have any feedback on our support, please click here.
    Fanny Liu
    TechNet Community Support

  • XML Schema Collection (SQL Server 2012): How to create an XML Schema Collection that can be used to Validate a field name (column title) of an existing dbo Table of a Database in SSMS2012?

    Hi all,
    I used the following code to create a new Database (ScottChangDB) and a new Table (marvel) in my SQL Server 2012 Management Studio (SSMS2012) successfully:
    -- ScottChangDB.sql saved in C://Documents/SQL Server XQuery_MacLochlainns Weblog_code
    -- 14 April 2015 09:15 AM
    USE master
    IF EXISTS
    (SELECT 1
    FROM sys.databases
    WHERE name = 'ScottChangDB')
    DROP DATABASE ScottChangDB
    GO
    CREATE DATABASE ScottChangDB
    GO
    USE ScottChangDB
    CREATE TABLE [dbo].[marvel] (
    [avenger_name] [char] (30) NULL, [ID] INT NULL)
    INSERT INTO marvel
    (avenger_name,ID)
    VALUES
    ('Hulk', 1),
    ('Iron Man', 2),
    ('Black Widow', 3),
    ('Thor', 4),
    ('Captain America', 5),
    ('Hawkeye', 6),
    ('Winter Soldier', 7),
    ('Iron Patriot', 8);
    SELECT avenger_name FROM marvel ORDER BY ID For XML PATH('')
    DECLARE @x XML
    SELECT @x=(SELECT avenger_name FROM marvel ORDER BY ID FOR XML PATH('Marvel'))--,ROOT('root'))
    SELECT
    person.value('Marvel[4]', 'varchar(100)') AS NAME
    FROM @x.nodes('.') AS Tbl(person)
    ORDER BY NAME DESC
    --Or if you want the completed element
    SELECT @x.query('/Marvel[4]/avenger_name')
    DROP TABLE [marvel]
    Now I am trying to create my first XML Schema Collection to do the Validation on the Field Name (Column Title) of the "marvel" Table. I have studied Chapter 4 XML SCHEMA COLLECTIONS of the book "Pro SQL Server 2008 XML" written by
    Michael Coles (published by Apress) and some beginning pages of XQuery Language Reference, SQL Server 2012 Books ONline (published by Microsoft). I mimicked  Coles' Listing 04-05 and I wanted to execute the following first-drafted sql in
    my SSMS2012:
    -- Reference [Scott Chang modified Listing04-05.sql of Pro SQL Server 2008 XML by Michael Coles (Apress)]
    -- [shcColes04-05.sql saved in C:\\Documents\XML_SQL_Server2008_code_Coles_Apress]
    -- [executed: 2 April 2015 15:04 PM]
    -- shcXMLschemaTableValidate1.sql in ScottChangDB of SQL Server 2012 Management Studio (SSMS2012)
    -- saved in C:\Documents\XQuery-SQLServer2012
    tried to run: 15 April 2015 ??? AM
    USE ScottChangDB;
    GO
    CREATE XML SCHEMA COLLECTION dbo. ComplexTestSchemaCollection_all
    AS
    N'<?xml version="1.0"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:element name="marvel">
    <xsd:complexType>
    <xsd:all>
    <xsd:element name="avenger_name" />
    <xsd:element name="ID" />
    </xsd:all>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>';
    GO
    DECLARE @x XML (dbo. ComplexTestSchemaCollection_all);
    SET @x = N'<?xml version="1.0"?>
    <marvel>
    <avenger_name>Thor</name>
    <ID>4</ID>
    </marvel>';
    SELECT @x;
    GO
    DROP XML SCHEMA COLLECTION dbo.ComplexTestSchemaCollection_all;
    GO
    I feel that drafted sql is very shaky and it needs the SQL Server XML experts to modify to make it work for me. Please kindly help, exam the coding of my shcXMLTableValidate1.sql and modify it to work.
    Thanks in advance,
    Scott Chang

    Hi Scott,
    2) Yes, FOR XML PATH clause converts relational data to XML format with a specific structure for the "marvel" Table. Regarding validate all the avenger_names, please see below
    sample.
    DECLARE @x XML
    SELECT @x=(SELECT ID ,avenger_name FROM marvel FOR XML PATH('Marvel'))
    SELECT @x
    SELECT
    n.value('avenger_name[1]','VARCHAR(99)') avenger_name,
    n.value('ID[1]','INT') ID
    FROM @x.nodes('//Marvel') Tab(n)
    WHERE n.value('ID[1]','INT') = 1 -- specify the ID here
    --FOR XML PATH('Marvel')  --uncommented this line if you want the result as element type
    3)i.check the xml schema content
    --find xml schema collection
    SELECT ss.name,xsc.name collection_name FROM sys.xml_schema_collections xsc JOIN sys.schemas ss ON xsc.schema_id= ss.schema_id
    select * from sys.schemas
    --check the schema content,use the name,collection_name from the above query
    SELECT xml_schema_namespace(N'name',N'collection_name')
    3)ii. View can be viewed as virtual table. Use a view to list the XML schema content.
    CREATE VIEW XSDContentView
    AS
    SELECT ss.name,xsc.name collection_name,cat.content
    FROM sys.xml_schema_collections xsc JOIN sys.schemas ss ON xsc.schema_id= ss.schema_id
    CROSS APPLY(
    SELECT xml_schema_namespace(ss.name,xsc.name) AS content
    ) AS cat
    WHERE xsc.name<>'sys'
    GO
    SELECT * FROM XSDContentView
    By the way, it would be appreciated if you can spread your questions into posts. For any question, feel free to let me know.
    Eric Zhang
    TechNet Community Support

  • SQL Server 2012 Management Studio:In the Database, how to print out or export the old 3 dbo Tables that were created manually and they have a relationship for 1 Parent table and 2 Child tables?How to handle this relationship in creating a new XML Schema?

    Hi all,
    Long time ago, I manually created a Database (APGriMMRP) and 3 Tables (dbo.Table_1_XYcoordinates, dbo.Table_2_Soil, and dbo.Table_3_Water) in my SQL Server 2012 Management Studio (SSMS2012). The dbo.Table_1_XYcoordinates has the following columns: file_id,
    Pt_ID, X, Y, Z, sample_id, Boring. The dbo.Table_2_Soil has the following columns: Boring, sample_date, sample_id, Unit, Arsenic, Chromium, Lead. The dbo.Table_3_Water has the following columns: Boring, sample_date, sample_id, Unit, Benzene, Ethylbenzene,
    Pyrene. The dbo.Table_1_XYcoordinates is a Parent Table. The dbo.Table_2_Soil and the dbo.Table_3_Water are 2 Child Tables. The sample_id is key link for the relationship between the Parent Table and the Child Tables.
    Problem #1) How can I print out or export these 3 dbo Tables?
    Problem #2) If I right-click on the dbo Table, I see "Start PowerShell" and click on it. I get the following error messages: Warning: Failed to load the 'SQLAS' extension: An exception occurred in SMO while trying to manage a service. 
    --> Failed to retrieve data for this request. --> Invalid class.  Warning: Could not obtain SQL Server Service information. An attemp to connect to WMI on 'NAB-WK-02657306' failed with the following error: An exception occurred in SMO while trying
    to manage a service. --> Failed to retrieve data for this request. --> Invalid class.  .... PS SQLSERVER:\SQL\NAB-WK-02657306\SQLEXPRESS\Databases\APGriMMRP\Table_1_XYcoordinates>   What causes this set of error messages? How can
    I get this problem fixed in my PC that is an end user of the Windows 7 LAN System? Note: I don't have the regular version of Microsoft Visual Studio 2012 in my PC. I just have the Microsoft 2012 Shell (Integrated) program in my PC.
    Problem #3: I plan to create an XML Schema Collection in the "APGriMMRP" database for the Parent Table and the Child Tables. How can I handle the relationship between the Parent Table and the Child Table in the XML Schema Collection?
    Problem #4: I plan to extract some results/data from the Parent Table and the Child Table by using XQuery. What kind of JOIN (Left or Right JOIN) should I use in the XQuerying?
    Please kindly help, answer my questions, and advise me how to resolve these 4 problems.
    Thanks in advance,
    Scott Chang    

    In the future, I would recommend you to post your questions one by one, and to the appropriate forum. Of your questions it is really only #3 that fits into this forum. (And that is the one I will not answer, because I have worked very little with XSD.)
    1) Not sure what you mean with "print" or "export", but when you right-click a database, you can select Tasks from the context menu and in this submenu you find "Export data".
    2) I don't know why you get that error, but any particular reason you want to run PowerShell?
    4) If you have tables, you query them with SQL, not XQuery. XQuery is when you query XML documents, but left and right joins are SQL things. There are no joins in XQuery.
    As for left/right join, notice that these two are equivalent:
    SELECT ...
    FROM   a LEFT JOIN b ON a.col = b.col
    SELECT ...
    FROM   b RIGHT JOIN a ON a.col = b.col
    But please never use RIGHT JOIN - it gives me a headache!
    There is nothing that says that you should use any of the other. In fact, if you are returning rows from parent and child, I would expect an inner join, unless you want to cater for parents without children.
    Here is an example where you can study the different join types and how they behave:
    CREATE TABLE apple (a int         NOT NULL PRIMARY KEY,
                        b varchar(23) NOT NULL)
    INSERT apple(a, b)
       VALUES(1, 'Granny Smith'),
             (2, 'Gloster'),
             (4, 'Ingrid-Marie'),
             (5, 'Milenga')
    CREATE TABLE orange(c int        NOT NULL PRIMARY KEY,
                        d varchar(23) NOT NULL)
    INSERT orange(c, d)
       VALUES(1, 'Agent'),
             (3, 'Netherlands'),
             (4, 'Revolution')
    SELECT a, b, c, d
    FROM   apple
    CROSS  JOIN orange
    SELECT a, b, c, d
    FROM   apple
    INNER  JOIN orange ON apple.a = orange.c
    SELECT a, b, c, d
    FROM   apple
    LEFT   OUTER JOIN orange ON apple.a = orange.c
    SELECT a, b, c, d
    FROM   apple
    RIGHT  OUTER JOIN orange ON apple.a = orange.c
    SELECT a, b, c, d
    FROM   apple
    FULL OUTER JOIN orange ON apple.a = orange.c
    go
    DROP TABLE apple, orange
    Erland Sommarskog, SQL Server MVP, [email protected]

  • SQL Server 2012 with SP2 Slipstream ISO images do not install SP2

    We see the same issue as described here:
    http://support.microsoft.com/kb/2783963
    when using the newly posted en_sql_server_2012_enterprise_edition_with_service_pack_2_x64_dvd_4351704.iso from MSDN.
    We end up with SQL Server 2012 RTM instead of SP2 and have to run a second pass to install SP2 on top of RTM. 
    Is this a confirmed problem with an expected solution soon to follow?

    Hi,
    As per the link this seems to me a known issue. I cannot 100 % say because I have seen/faced this issue with
    SP1 and you mentioned SP2. I would always suggest to install RTM only there is option to un select SP2 during installing.
    Well thank you for reporting I guess Microsoft would take this as feedback.
    Can you share setup log files please just for analysis
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
    My TechNet Wiki Articles

Maybe you are looking for

  • Problems with Mapping Input Parameter

    Hi everybody, just another question. I have a Mapping with an Mapping Input Parameter. If i provide a Parameter with an prefixed 0 e.g.: 01234 the output of this is 1234. How can i manage this that the output of the Input Parameter ist 01234 and not

  • My Microsoft Word inserts a page break when I hit return

    If I press delete to remove the page break, it brings the sentence back into the previous paragraph.  If I hit return again to make the sentence into a new paragraph, as it is supposed to be, the computer/program inserts a page break, vaulting me ont

  • How do I edit the file

    I scanned a document in Adobe then converted it to microsoft but it still will not let me type new

  • How to see blob as "normal data"

    Hi , i have a table with a column of BLOB type how can i see it as normal data ? i.e text or numeric instead of binary tks & rdgs

  • Anzeige des Aufnahmebereichs PS CS4

    Hi, in PS CS4 wird zumindest seit der CS2 der Aufnahmebereich des Stempel- oder Reparatur-Pinsel-Werkzeugs als Werkzeugdarstellung angezeigt. Es ist ein sehr gutes Feature, wenn mann Strukturen wie eine Linie aufgreifen will. Dort möchte ich es nicht