Migrating multiple databases into a single Azure SQL DB
Migrating multiple databases into a single Azure SQL DB

If you have a bunch of databases that you want to migrate into a single Azure SQL DB, and the table names are all different then that’s quite easy. If you don’t mind renaming things, then there’s a solution for same-named tables too… Add/migrate one database Head over to the Azure SQL section https://portal.azure.com/#create/Microsoft.AzureSQL Create... » read more

Can’t find the compatibility tab in the properties of a file
Can’t find the compatibility tab in the properties of a file

Sometimes you might be asked to run a compatibility troubleshooter, like this: You might be experiencing the problem due to compatibility issues. To fix it, run Program Compatibility Troubleshooter. Follow the steps below: Right-click on the Microsoft Visual Studio icon on your desktop and select Properties. In the Properties window, click on the Compatibility tab. Now, click on... » read more

An unhandled exception occurred while processing the request. Win32Exception: An existing connection was forcibly closed by the remote host
An unhandled exception occurred while processing the request. Win32Exception: An existing connection was forcibly closed by the remote host

Azure .NET web apps connecting to an AWS SQL database kept throwing up this error sporadically, seemingly without any pattern. The full message was this: An unhandled exception occurred while processing the request. Win32Exception: An existing connection was forcibly closed by the remote host. Unknown location.SqlException: A connection was successfully established with the server, but... » read more

#C .NET Core, JsonConvert fails to convert null to bool
#C .NET Core, JsonConvert fails to convert null to bool

Newtonsoft.Json.JsonSerializationException: ‘Error converting value {null} to type “System.Boolean”. Code like this can generate the error: This happens when the bool field in your source is null, and the model you’re converting into’s matching field does not allow nulls. If you don’t mind this field being null in your destination model item, then you can just... » read more

Import of flat file into SQL Server Management Studio fails
Import of flat file into SQL Server Management Studio fails

With this error: Error inserting data into table. (Microsoft.SqlServer.Import.Wizard)Error inserting data into table. (Microsoft.SqlServer.Prose.Import)Object reference not set to an instance of an object. (Microsoft.SqlServer.Prose.Import) In my case this was due to extra carriage returns at the end of the CSV file – SSMS doesn’t like them! Remove them in a text editor and try again.... » read more