MSSQL How to fix error MSSQL Error Saving changes is not permitted

Error

Saving changes is not permitted. The changes you have made require the following tables to be dropped and re-created. You have either made changes to a table that can’t be re-created or enabled the option prevent saving changes that require the table to be re-created

Solution

Advertisements
Categories: Software | Leave a comment

Fail to Install Microsoft .NET core 1.0.0 in Visual Studio Enterprise 2015

The Problem

However, right after installing the former, the latter executable refuses to install showing up the following error popup:

Capture

 

The Fix

The issue seems to be generated by the fact that VS Studio 2015 Update 3 is not correctly seen by the setup executable, thus making the internal checks erroneously fail.

Luckily enough, there’s a simple workaround we can use to skip these checks by using a command-line parameter that does just that.

To get past the issue open a command prompt, navigate through the folder where you downloaded the Microsoft .NET Core 1.0.0 VS2015 Tooling Preview Update 2 executable file and type the following:

dotnetcore.1.0.0-vs2015tools.preview2 SKIP_VSU_CHECK=1

As soon as you hit ENTER, the setup program will start by skipping the erroneous Visual Studio Update checks, allowing you to install the package.

Categories: Software | 2 Comments

Prime number check in C#

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace PrimeNumberCheck
  7. {
  8.     class Program
  9.     {
  10.         static void Main(string[] args)
  11.         {
  12.             int number, i;
  13.             Console.WriteLine(“Enter a Number to Check”);
  14.             number = Convert.ToInt32(Console.ReadLine());
  15.             for (i = 2; i < number; i++)
  16.             {
  17.                 if (number%2==0)
  18.                 {
  19.                     Console.WriteLine(“The number is not prime”);
  20.                     break;
  21.                 }
  22.             }
  23.             if (i==number)
  24.             {
  25.                 Console.WriteLine(“The number is prime”);
  26.             }
  27.             Console.ReadKey();
  28.         }
  29.     }
  30. }

Download Code

Categories: Math-Snippets | Leave a comment

Create a free website or blog at WordPress.com.