Archive for the ‘C#’ Category

Quiz Time

Aamir Butt, Ultimus Pakistan

You have used sizeof() operator, right? If you haven’t; sizeof() operator is used to get the size of the object passed to it, simple. Now I want you to not-to-use sizeof() operator, and tell me a way to find the size of an object. Yes in C++ please.
Share with us the solutions on dcsiiui@yahoogroups.com, the best chosen result will be printed here next month. Code efficiency and optimization are the standards 🙂


Read Full Post »

Muhammad Shoaib Anjum, Ultimus Pakistan



Ever wondered if you can write a neat piece of code that can perform SQL Server backups for you? Or restore a database from a backup file for you. If this makes you think that it may take you guts to do that, don’t worry.

I thought the same before I came across SMO (SQL Management Objects). SMO is a collection of objects provided by Microsoft for developers to interact with SQL Server, or you may call it SQL Server API in simpler words. Using SMO, you can do virtually everything with a SQL Server instance from within your application. In this article we’ll briefly go through the steps needed to be followed in order to perform a backup and to restore a backup.

Among others, SMO provides a Backup object. All you need to do is to set some properties and call some methods on this object, and BOOOMMMM! The backup is there.


Read Full Post »