Understanding and Creating Classes in C#

Find out how classes are defined and new instances are created, how to define Properties, and how to both set values and get values for a given instance of the class. A class is a construct that enables you to create your own custom types by grouping together variables of other types, methods and events. A class is like a blueprint. It defines the data and behavior of a type. If the class is not declared as static, client code can use it by creating objects or instances which are assigned to a variable.

How to Monitor a Database in Microsoft Azure

Find out how the Basic Monitoring via Web Console operates, and get an overview of deadlocks, failed connections, successful connections, and blocking by firewall. Review three categories of views: Database-Related, Execution-Related, and Transaction-Related.

Monitoring tools and techniques that you might be accustomed to using on an on-premises server, such as auditing logins, running traces, and using performance counters, are not available for SQL Database. On Azure, you use Data Management Views (DMVs) to monitor data capacity, query problems, and current connections.

How to Create Database in Microsoft SQL Azure

Microsoft Azure SQL Database is a relational database-as-a-service that delivers predictable performance, scalability, business continuity, data protection, and near-zero administration to cloud developers and solution architects.

Microsoft Azure offers several choices for data storage. These include Azure storage and SQL Azure. You may choose to use one or both in your particular project. Azure storage currently contains three types of storage structures: tables, queues and blobs.

Abstract Class in C# Explained

Abstract class provides a common definition of a base class that many derived classes can share.

The abstract keyword enables you to create classes and class members that are incomplete and must be implemented in a derived class.

Tips:

  • An abstract class cannot be instantiated.
  • Derived classes of the abstract class must implement all abstract methods

 

Abstract class can be declared in C# using the keyword abstract as shown in the example below:

Tags: 

Batching Techniques for SQL Database Applications in Azure

Batching operations can be very helpful in improving your performance and scalability for your in house application as well as cloud applications.

Here are some of the batching techniques available for you to consider:

Transactions

Client side code based transactions can be simple and useful. Here is an example:

How to run Visual Studio as Administrator by default?

Everytime you open Visual Studio 2013 it does not run as a administrator by default, because of which you come across issues and errors which you don’t expect. 

So how to set Visual Studio to open as Administrator by default without having to do it manually every time. 

Here is how: 

  1. Right-click on the Short-cut icon for Visual Studio 

  1. Click on Properties 

  1. Goto the Shortcut Tab if you are not already there by default 

SQL Server 2008 Management Studio Error: Invalid prefix or suffix characters

Error:

Invalid prefix or suffix characters. (MS Visual Database Tools)

Solution:
When you try to right-click on a table and Select Edit Top 200 rows in SQL Server 2008 R2 Management Studio you might get the above error and not allow you to edit the rows.

Tags: 

How to Edit a Row in SQL Server 2008, 2012 using Management Studio?

I see that there is an option to Edit the Top 200 rows in a Table, but how can I edit a particular row that I need.

Solution:

This is a common requirement to be able to edit any particular row and not just the top 200 rows which is provided by default in SQL Server 2008, 2012 and forward.

What you need to do is.

Tags: 

How to Enable SQL Command Mode in SQL Server?

Error:

Incorrect syntax near ':'.

SQLCMD mode must be enabled to successfully execute this script.

 

Solution:

At times some of the SQL Scripts that you run might need the SQL Command Mode enabled to be able to execute successfully.

Its in such scenarios do you get the above Error which wants you to enable the SQLCMD mode.

Here is how you can enable the SQL CMD mode. In your SQL Server Management Studio

Tags: 

Pages