Howtos / Articles

Microsoft are bringing SQL Server 2016 to Linux

Microsoft have just announced that they will be releasing a version of SQL Server 2016 for the Linux operating system. This is a welcome move away from Microsoft’s historical stance of not releasing software for open source operating systems. They are starting to embrace the open source community more and more, giving end users what they want. They even support Linux operating systems on their Azure cloud platform. Its only available in the form of an early private preview, with…

Read more [...]

Delete a user from a MySQL server

This howto outlines the steps to remove a user from a MySQL server. Run the MySQL client: $ mysql -u root -p You will be asked for a password. If you don’t have a password set, simply press enter when prompted. Run the following command to delete the user: DROP USER ‘usertodelete’@'localhost’; This deletes the user called ‘usertodelete’. Change the user name and host values as required. Flush the privileges to make sure the dropped user has been removed: FLUSH…

Read more [...]

Database Recovery models for Microsoft SQL Server

Microsoft SQL server provides three recovery models; full, simple, and bulk-logged. Each have their benefits. The details of the three recovery models is outlined below. You will need to choose the best option for your scenario. For a production database that you need to be able to recover from, the best option will generally be the full recover model. Full recovery model: The full recovery model maintains the entire transaction log history up until the point where the database log…

Read more [...]

Fix Database Integrity Errors in Microsoft SQL Server

Sometimes you may encounter data integrity issues with one or more tables on a Microsoft SQL server. These errors may be found during a data integrity check using DBCC CHECKDB, or even via general use of the database. There are 3 options to correct the database integrity issues; safe repair, restore, and non safe repair (in that order). Its always good practice to take an extra backup before any of these commands are run (specifically the non-safe repair option). Safe…

Read more [...]

Automatically shrink database files in Microsoft SQL 2008

Microsoft SQL server 2008 has the ability to automatically shrink database files. By default this option is disabled. With automatic shrinking of database files turned on, the SQL server will periodically check the available free space within the database files, and will automatically shrink the files if needed. If your database has heavy use, it might be best to keep this option disabled to prevent performace degration. To check what the current auto shrink setting: SELECT DATABASEPROPERTYEX(‘<database_name>’, ‘IsAutoShrink’) Replace <database_name>…

Read more [...]

Page 1 of 812345678