Understanding abstraction in java

In computer science, abstraction is the process by which data and programs are defined with a representation similar in form to its meaning (semantics), while hiding away the implementation details. Source : WikiPedia abstraction – a concept or idea not associated with any specific instance. Sections: What is abstraction Types of abstraction How to use abstraction in … Continue reading Understanding abstraction in java

Adding and accessing custom sections in your C# App.config

So I recently thought I’d try using the app.config file to specify some data for my application (such as URLs) rather than hard-coding it into my app, which would require a recompile and redeploy of my app if one of our URLs changed.  By using the app.config it allows a user to just open up … Continue reading Adding and accessing custom sections in your C# App.config

In C++, what’s a virtual destructor and when is it needed?

In C++, what’s a virtual destructor and when is it needed? As you may know, in C++ a destructor is generally used to deallocate memory and do some other cleanup for a class object and it’s class members whenever an object is destroyed. Destructors are distinguished by the tilde, the ‘~’ that appears in front … Continue reading In C++, what’s a virtual destructor and when is it needed?

Difference between Int32.Parse(), Convert.ToInt32() and Int32.TryParse()

Int32.Parse() Int32.Parse (string s) method converts the string representation of a number to its 32-bit signed integer equivalent. When s is a null reference, it will throw ArgumentNullException. If s is other than integer value, it will throw FormatException. When s represents a number less than MinValue or greater than MaxValue, it will throw OverflowException. Int32.TryParse() Int32.TryParse(string s, out int result) method converts the specified string representation of 32-bit signed integer … Continue reading Difference between Int32.Parse(), Convert.ToInt32() and Int32.TryParse()

Restore SQL Server Database Using C#

In previous post SQL Server Database BackUp using C#, I explained how to take backup of SQL Server database using C#. Today I am going to describe how to restore SQL Server database backup programmatically using C# and SQL Server Management Objects (SMO). You can also check more articles related to C#, ASP.Net , SQL Server and … Continue reading Restore SQL Server Database Using C#

SQL Server Database BackUp using C#

There are various ways to take the SQL Server database backup. You can take the database backup using SQL Server backup wizard or using SQL Server BackUp Database statement. Here I am going to describe how to take the SQL Server database backup programatically using C# and SQL Server Management Objects (SMO). In my previous … Continue reading SQL Server Database BackUp using C#