Archive for the ‘SQLServer’ Category

Media Family Incorrectly Formed- Sql Server Restore Error

When I was trying to restore sql server database from a client’s backup file, I had following error message:

The media family on device ‘C:\Temp\databasebackup.bak’ is incorrectly formed. SQL Server cannot process this media family. Read the rest of this entry »

How to do LINQ DateDiff in .NET 3.5

You would have thought that doing datetime comparison in LINQ is nothing particular. But it turns out to be tricky and little bit difficult especially in .Net 3.5. Read the rest of this entry »

Tags:

ConversionPattern of Log4net

One of the things I like about log4net is that you can dramatically change logging contents by just fiddling with its configuration. It would otherwise be a very tedious task to revisit every place log function was called in your code.
Read the rest of this entry »