Insert multiple rows into a Microsoft SQL Server database
There is a great way to insert multiple rows into a Microsoft SQL Server database in one statement. This notation has multiple advantages: simplicity and the grouping of multiple instructions into one transaction. INSERT MyTable (name,…
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)…
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…
Add if conditional statement to the Visual Studio pre-build and post-build events
There are times when you want to execute statements in the pre-build and post-build events of a Microsoft Visual Studio project when certain conditions met. In the next example we will copy the environment specific config file to the web application…
How to add the Config folder to a Microsoft Visual Studio project even if the folder is not in the project directory
Corporations maintain multiple server environments for development, testing and production purposes. All of these environments require specific settings to connect to the databases and other resources. When the build master builds the application for the…
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…
How to enable jQuery intellisense in Microsoft Visual Studio
To enable jQuery intellisense in Microsoft Visual Studio Open the _references.js file in the editor by double clicking it Drag the jquery-x.x.x.intellisense.js file into the _references.js file in the editor. The name of the file will be added to the…
Microsoft Visual Studio editor settings
There are some settings that can make your work easier in Visual Studio. Start Microsoft Visual Studio, and in the “Tools” menu select “Options” – To insert new tabs to the right of existing tabs and keep the already opened…
Unable to open a setup project in Microsoft Visual Studio 2010 on Windows 7 64 bit
I work on multiple computers using different operating systems. When I tried to open a web service solution in Microsoft Visual Studio 2010 on my Windows 7 64 bit workstation I got the following error message: “The project file … has been…
How to set the application pool automatically during Microsoft Visual Studio 2010 web application and web service deployment
During the Visual Studio 2010 Web Application and Web Service deployment the prior setting of the application pool name is lost. The installer does not assign the correct application pool to the virtual directory, it will be assigned to the Default…