Wrong version of ISDeploymentWizard in SSMS 17.8.1

The problem

Years ago, with SQL Server 2016 release, Microsoft came up with a separated brand new version of SQL Server Management Studio. It’s been a happy day for the SQL Server community and database developers.

Shortly afterwards, our company started to migrate every instances from older version of SQL Server to the 2016, using SSMS 17.*. Developers have already jumped into Visual Studio 2017 and everything seemed to work like a charm, until we started deploying integration services via the new SSMS, after we converted them to 2016 TargetServerVersion (which is NOT the Project Version).

The TargetServerVersion is the SSIS version, also for the deploy operations, while the Project Version setting tells to Visual Studio how to open projects based on .dtproj specifications on the XML projects definitions.

Some days ago I’ve realized that after updating to the latest build of SSMS (17.8.1), the .ispac deployment is actually executing the latest build of the Integration Services Deployment wizard (aka ISDeploymentWizard.exe). As a result every deploy of .ispac files, regardless trying double click or deploying directly from the Integration Services Catalog, the SSISDB, failed with one of the most scaring error message ever:

“[…] The Script Task <unique_name> uses version 15.0 script that is not supported in this release of Integration Services […]

What? Why? I’ve a workstation with SQL Server 2016 and the related Integration Services 13.0:

blog_ssis_error_001

The computer I’m speaking of has the same build of mine, nobody has installed any other Integration Services versions anywhere. Andy Leonard explained this behavior in this blog post. Unfortunately, in my scenario, I cannot solve the problem.

Let’s try to explain better.

Scenario

The workstation I’m working on has SQL Server 2016 (build 13.0.5149.0) and Integration Services 13.0 on Windows 10 Pro. I’ve got a simple package with a single script task which does literally anything:
blog_ssis_error_002bAs Andy suggested us, I’ve changed the TargetServerVersion to SQL Server 2016, so I’ve got C# 2015 compiler for scripts:

First execution and deploy

Executing it locally, nothing happens, but it happens in a green way (success):

blog_ssis_error_002a.PNG

Ok, now we’re going to deploy to the other machine, generating the .ispac file and double clickin on it. It’s important to make sure that you’re double-cliking the .ispac file. Do not right click on the Integration Service Catalog project folders because SSMS will execute the latest build of ISDeploymentWizard.exe by design.

blog_ssis_error_008b
deploy from SSMS 17.8.1

 

When double clicking, the app selector should use the version related to the TargetServerVersion setting of the .ispac. This works for many of my other computers. But for one of them, here is the screen:

blog_ssis_error_005
double click on .ispac file

Hey! This is 2017 also when clicking on .ispac file. Let’s try to deploy using the new tool. The deploy succeeded.

blog_ssis_error_006.PNG

And now, let’s try to validate the package execution via SSISDB, right clicking on the project itself and selecting “Validate…”. This is the result of the empty script package validation:

blog_ssis_error_007.PNG

I’ve tried on six different machines, five ran successfully and ONLY ONE returned the above error message. Still stuck in the middle.

What have we changed?

Just the setup of SSMS (17.8.1) updating the 17.7 one. Once again, the same setup on all six machines. Five by six worked, this one is trying to kill me.

For some strange reason, something (I assure you all, not someone) has changed the registry in the .ispac application association, maybe when double clicking for the first time the file in a pending reboot (?). We’re still investigating, since we used to avoid any change in production without permissions and processes. That said, it’s weird. And it was so difficult to get.

Solution

Easy to say, now that we’ve figured out the root consequence. Not so good, but changing the registry on the key HKEY_CLASSES_ROOT\.ispac with the 130 executable (IntegrationServices.ProjectDeploymentFile.130) fixed the unwanted behavior. The key has been set to IntegrationServices.ProjectDeploymentFile.140 right after the update from 17.7 and 17.8.1.

Instead of changing it via regedit, you can try an “open with…” with “use default” checked in order to force the association between .ispac file and the right ISDeploymentWizard.exe version. But this time, in this machine, it didn’t work. This is the reason why I tried the regedit action.

Conclusions

I have to say a big thanks to Andrea Amantini, one of my peer, which is well known for his ability to find out “a needle in a haystack.”. Strange things happened here. A combination of Murphy’s law, a sort of “black” friday and a pending reboot. Hopefully this helps someone, at least.

SysTools SQL Transaction Log Reader 5.0 : Know What is New

The SQL Transaction Log reader is a standalone utility, which helps to view SQL server transaction log files without any difficulty. It is capable enough to preview LDF activity, including Transaction, Time, Name, Query and Table Name.

Moreover, it allows a user to fetch and display all records from the live database. This application offers an option to filter and export as SQL database, as SQL script or CSV file format. It supports to analyze one or more NDF data files without losing a single bit of data. Also, it is compatible with all latest Windows versions, including Windows 10 and its below versions.

SQL Transaction Log reader Tool: Demo vs Licensed

The SQL Log viewer is available in two different versions i.e., Demo and Licensed Version. Let us have a look:

  • Demo Version: The demo version of the software is freely available for download and supports to preview of SQL Server Transactions (INSERT, UPDATE, DELETE), preview Login users that has made changes on database tables, transaction Query, Time. But, doesn’t allow to export Transaction details for recovery purpose.
  • Licensed Version: The licensed version of SQL Transaction Log reader tool permit users to preview all the records within the database. Moreover, it can open and read the complete log activity in SQL server database. Also, it allow you to export all tables data along with deleted records direct in SQL Server Database or SQL Server Compatible script or CSV format.

The Demo version of this SQL Log Recovery available for download in SysTools Group Official Website

Preview SQL Logs

What is New Added in SQL Log Reader Tool to Explore LDF

  1. Allows to View Multiple LDF Files: SQL LDF File Viewer permits you to open and read multiple transaction log files activity in single go. For this, you just need to add parent .ldf file of your database, if you are scanning with offline option. The software will scan and preview transaction activities of all other .ldf database files of that database.
  2. Analyze Same record Update
    Multiple Times and then Delete: SQL log file reader allow you to preview the transactional activity of same record (Updated multiple times and then Delete). This will allow users to track all the database changes for a specific record.
  3. Auto Fetch SQL Server Name: While scanning the transaction logs of a specific database with Online DB option,The SQL transaction log reader tool will allow you to click on drop-down button to auto fetch the Server Name. In case, the software doesn’t shows the desired Server Name, then you can enter it manually.

Existing Features of SQL Log Viewer

  1. Preview All Transaction Records: SQL Server log file viewer scans and load all available tables transactional activities, present in SQL database and creates a preview. It will help to view SQL transaction log file with fields such as Transaction, transaction time, Table name and query. Users can view all records with Login Name Authentication for Insert, Delete, Update etc.
  2. Option to Sort LDF File Elements: The sorting option is available within SQL Log viewer to re-arrange the order of the listed items. Moreover, users can sort each element according to their properties such as transaction, transaction name, transaction time, table name, and query.
  3. Scan with Online or Offline Options: The SQL log file viewer offers two different scanning options to read transactional activities of your database. The Online option asks for SQL Server information like: Server Name, Authentication Type. In Offline option, the software will allow you to browse .ldf file along with its associated .mdf file and preview the transaction log activities.
  4. Export Selective Tables: While moving the SQL LDF file queries, you can check or uncheck all tables for saving only selected data. If you want to restore SQL Log file data from the desired table, then, select and export the desired tables direct to SQL Server Database or SQL Server compatible script or CSV format.

Technical Description of SQL Server LDF Reader Tool

Processor Intel® Pentium® 1 GHz processor (x86, x64) or equivalent
Support RAM Around 2GB (gigabyte) of RAM
Hard Disk Storage Space Minimum 100 MB space for installation
Operating System Windows 10 & all below editions

Final Verdict

After considering the overall functionality of the software, we can summarize that SQL Transaction Log Reader is a reliable tool that allows a user to read and view multiple .ldf files. The software is capable enough to view SQL transaction log with fields such as Transaction, transaction time, Table name and query. Regardless, we can say that the SQL log Viewer is a robust software due to its great features.

SQL Server Latest Updates (Mar.-Apr. 2018)

Directly from the SQL Server Release Service blog, here the latest updates for SQL Server 2014 SP2, 2016 SP1 and 2017 RTM:

Cumulative Update #5 for SQL Server 2017 RTM

Cumulative Update #6 for SQL Server 2017 RTM

Cumulative Update #11 for SQL Server 2014 SP2

Cumulative Update #8 for SQL Server 2016 SP1

The SQL Server 2016 Service Pack 2 is available here.

You can also download the new OLE DB driver for SQL Server.

…Stay Tuned! 🙂

How to Fix Corruption Related Issues in SQL Server Database

SQL database is a popular and useful relational database, but it is not free from technical flaws. SQL users often face various corruption related issues in SQL Server database. These issues occur due to the damage or corruption in the database of SQL Server. As these are common issues, SQL users must have clear concept regarding these issues. We will be discussing some major corruption related issues of SQL database and their symptoms. Users will also learn the remedial methods of these issues from this post. Let’s begin our discussion with the SQL Server errors and their symptoms.

Issues Related to SQL Server Corruption

Due to damaged or corrupt SQL Server database, users have to encounter different issues. We will discuss three major issues here.

SQL Fatal Error 823:

This error is caused by database corruption or some discrepancies of file system. It indicates that underlying hardware or driver situated n the path of I/O request is having some problem. This problem will generate some error messages that will display these information:

  • Operating system’s error code and error description
  • The file name that was executed against I/O operation
  • If I/O operation request is written or read

SQL Error 5172

This error is caused by unhealthy MDF files. It occurs due to the mismatched header file information, so accessing data becomes really tough. In such cases, recovering damaged SQL database is very important. Here are the major causes of error 5172:

  • Sudden shutdown of system
  • Hardware malfunctioning
  • Improper shut down of SQL Server
  • Virus or Malware attack

3. SQL Error 8946: If a particular assigned page does not contain valid page header, error 8946 can appear. If the header gets damaged, the entire page faces corruption. This results in data loss and inaccessible file. Power failure, hardware problems, virus attack, etc. are responsible for this particular error.

How to Resolve Corruption Related Issues in SQL Server Database

If you are facing one of the above corruption based issues in your SQL database, it means the database has been corrupt or damaged. The only way to resolve these issues is to free the SQL database from all types of corruption. To repair the corrupt database of SQL Server, users can adopt any of the two different methods. One is called manual method and another is called one-stop method.

Method 1: Manually Fix SQL Database Corruption

If users want to fix their corrupt SQL database manually, they can try these different methods. First of all, they can restore updated backup of SQL Server. They can also try database console commands to repair database. DBCC Repair commands that can fix minor corruption of SQL database.

Limitations of Manual Technique

These manual methods have got some limitations too. The biggest limitation is that none of these methods guarantee to recover SQL Server database. Moreover, all these methods take a lot of time to perform. Users need to be technically expert to execute these steps. Inexperienced people needs to be careful about their database, when performing these methods. Also, major corruptions cannot be fixed by these methods.

Method 2: Fix Corrupt SQL Server Database using Sure-Shot Solution

It is clear from above discussion that manual methods cannot fix damaged database for sure. To repair corrupt database, users have to apply the one-stop solution. Using third-party tools is called sure-shot solution as they can fix all types of database corruption. SysTools SQL Database Repair is such a tool that can remove both major and minor SQL Server database corruption. It can fix corruption of SQL Server 2016 & all previous versions. This program is also capable of recovering data from MDF files affected by Wallet Ransomware.

Conclusion

If you are facing any of these corruption related issues in SQL Server database, be sure that SQL Server has been damaged. Users need to fix the SQL Server in order to get rid of these issues. we have mentioned some methods to make your SQL database corruption free. Users can try manual methods, but there is no guarantee that the damaged database will be fixed for sure. One can also try the third party tool to recover corrupted database. It can easily fix the damage of SQL Server and all related issues will get solved.

SQL Server Latest Updates (Nov. 2017)

Directly from the SQL Server Release Service blog, here the latest updates for SQL Server 2016 RTM and SP1 and 2017 RTM,:

Cumulative Update #2 for SQL Server 2017 RTM

Cumulative Update #9 for SQL Server 2016 RTM

Cumulative Update #6 for SQL Server 2016 SP1

Starting from this month, we finally get AdventureWorks on github! The direct location is https://github.com/Microsoft/sql-server-samples/releases/tag/adventureworks

Stay Tuned! 🙂