The ‘Microsoft.ACE.OLEDB.12.0’ provider is not registered on the local machine. (System.Data)

When you try to import Excel 2007 or later “.xlsx” files into an SQL Server 2008 database you may get the following error mesage : The ‘Microsoft.ACE.OLEDB.12.0’ provider is not registered on the local machine. (System.Data)   To solve this problem install the appropriate version of the Microsoft Access Database Engine.   On 32 bit …

How to open SQL files in Visual Studio 2012

The default installation of Visual Studio 2012 cannot open SQL documents when you double click on them in Source Control Explorer.  To be able to do that you have to install the SQL Server Data Tools  for Visual Studio 2012 Open the ” December 2012″ update page at http://msdn.microsoft.com/en-us/jj650015 Download and install SSDTSetup.exe by clicking Download …

Create a backup of a Microsoft SQL Server database to a location outside of the database server

The Microsoft SQL Server Management Studio 2008 user interface only allows you to create a backup of a database to one of the local drives of the database server. To create a backup of a Microsoft SQL Server database to a location outside of the database server execute the following SQL script: BACKUP DATABASE MyDatabase TO …

How to bypass the “Saving changes is not permitted…” message in Microsoft SQL Management Studio

You made a change to a Microsoft SQL Server database table that requires the re-creation of the table you get the following error message when you try to save your changes: 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 …