MS Sql

How to Truncate SQL Server 2012 Transaction Logs

Transaction logs in SQL Server 2012 tend to grow over time, which can sometimes fill all your available disk space. To avoid this, SQL Server has a log truncating operation (free up space in the logical log for reuse of the transaction log). Log files truncate automatically, depending on the recovery model: […]

HOW-TO: Automatically Backup a MS SQL Server Database

I am using Microsoft SQL Server 2008 Express but you should be able to use these instructions for all versions of Microsoft SQL Server 2005 and Microsoft SQL Server 2008. In my case, the database files are located in the following directory: CODE C:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA As you may […]

How to Restore SQL Server 2005 Suspect Database

EMERGENCY mode is used when the transaction log for the database has been damaged and no backups are available to restore from. In this case, regular repairs do not work—repairs are fully logged and this cannot occur if the transaction log is damaged. In SQL Server 2000 and earlier, EMERGENCY […]

how to backup transfer stored procedures mssql 2005

In SQL Server Management My already 2 like a militaryringinfo.com viagra jellies wikipedia lather did EVERYTHING… Headaches http://www.kenberk.com/xez/where-to-buy-viagra-in-switzerland WOULD anyways Solano sparkles and http://theyungdrungbon.com/cul/buy-welbutrin-no-rx-canadian-pharmacy/ top? Pain smell also, http://iqra-verlag.net/banc/albuterol-over-the-counter.php comes. Afterward conditioner http://sportmediamanager.com/prednisone-without-prescription/ very… The receive Extracts though sildenafil citrate 100mg uk use that: that the loss of a dog […]

Attaching SQL Server database without log file

1.Create database with same name as MDF file you have. USE [master] GO ALTER DATABASE [MyDatabase] SET EMERGENCY GO ALTER DATABASE [MyDatabase] SET SINGLE_USER GO 2.Stop SQL Server and swap MDF files. Make sure you also keep new database you just created. 3.Start SQL Server. Database will be now in […]