Tag Archives: SQL

SQL 2012 DPM Backup Failure – The SQL Server instance refused the connection

Some of my DPM Backups on a new 2012 box were failing with the error The fix can be found here and is pretty straight forward. Add the account NT_AUTHORITY\System to have sysadmin priviledges within SSMS. Once added you should receive no more …

Read more »

Cannot insert explicit value for identity column in table when IDENTITY_INSERT is set to OFF

I had this today when getting syncing a foreign DB with a UK one. The fix is pretty simple, just temporarily allow identity inserts for that table:

IIS ODBC SQL Logging

I was basically after a way to make better use of the IIS log files. We use Google Analytics on most of our sites but with all the information being stored in the IIS logs, it made sense to work …

Read more »

web.config Connection String Monitoring with PRTG Network Monitor

I use PRTG Network monitor to check all our websites, and I generally just check the homepage for certain words to make sure it’s loaded ok. I also have checks on the SQL Server to make sure the service is …

Read more »

External MS SQL Database User Authentication with Moodle

We have a Moodle running which I’ve recently moved to a new server. The old server was running PHP 5.2.x and the new one is on 5.3.x. This of course now means that the PHP extension php_mssql.dll is no longer …

Read more »

Modifying SQL Server Memory Usage

This can either be done from the GUI (right click on server, properties, memory) or via the following commands: Advanced Mode: EXEC sp_configure ‘show advanced options’, 1 Limit to 2GB EXEC sp_configure ‘max server memory (MB)’, 1024 Make the change …

Read more »

SQL Backup and Restore Commands

Some useful code snippets for backing up and restoring data in MS SQL. Create full backup: (also output times for reference) select {fn Now()}  as ‘Start Time’ BACKUP DATABASE DBNAME TO DISK = ‘d:\DBNAME.bak’ WITH INIT select {fn Now()}  as …

Read more »

Enabling xp_cmdshell in SQL Server 2008

Another snippet (Originally here):

Migrating Reporting Services from SQL 2005 to 2008

I’m right in the middle of quite a large migration from one of our 2003 boxes to a fresh 2008 box. The box in question is the main SQL backend and is currently running SQL 2005, the new 2008 box …

Read more »