Apple Developer Secrets

June 6th, 2013
I have been learning and earning a great deal of money by developing the apple iPhone apps. If you also want to do it then Please Click Here!

Errors and Fix: The multi-part identifier could not be bound.

May 29th, 2013
I was trying to execute an SQL Query and was constantly running into error. The error was Msg 4104, Level 16, State 1, Line 1: The multi-part identifier could not be bound.

The problem was that the function that I was trying to execute in my queries were not supplied the right number of parameters. The error message I thought was not explanatory to help fix the problem and hence I decided to write this article to help people who will ever run across the same problem. Now the problem with Microsoft is that this same error message is given at multiple situations for different reasons. However if yours is not one of the reason I have already listed then please feel free to write down yours in a comment below.

http://www.dbforums.com/microsoft-sql-server/1607916-sql-help-msg-4104-level-16-state-1-line-1-multi-part-identifier-error.html

C# Tutorial Series By Rahul Vats - Hello World application.

May 17th, 2013

As all the tutorial goes through the routine of writing a Hello World Application. Here I will do the same. I am doing both the things. I have written the code as well as provided the sample project to the same. Here are the various ways that you can use to write the program depending on your needs. In the sample code project attached with the article you will see a combination of all the examples.

Example 1

 // Hello1.cs
public class Hello1
{
  public static void Main()
  {
    System.Console.WriteLine("Hello, World!");
  }
}

Output 

Hello, World!

Code Discussion

  • Every Main method must be contained inside a class (Hello1 in this case).
  • The System.Console class contains a WriteLine method that can be used to display a string to the console.

Example 2

To avoid fully qualifying classes throughout a program, you can use the using directive as shown below:

 // Hello2.cs
using System;

public class Hello2
{
   public static void Main()
   {
      Console.WriteLine("Hello, World!");
   }
}

Output

 Hello, World!

Example 3

If you need access to the command line parameters passed in to your application, simply change the signature of the Main method to include them as shown below. This example counts and displays the command line arguments.

 // Hello3.cs
// arguments: A B C D
using System;

public class Hello3
{
   public static void Main(string[] args)
   {
      Console.WriteLine("Hello, World!");
      Console.WriteLine("You entered the following {0} command line arguments:",
         args.Length );
      for (int i=0; i < args.Length; i++)
      {
         Console.WriteLine("{0}", args[i]); 
      }
   }
}

Output

 Hello, World!
You entered the following 4 command line arguments:
A
B
C
D

Example 4

To return a return code, change the signature of the Main method as shown below:

 // Hello4.cs
using System;

public class Hello4
{
   public static int Main(string[] args)
   {
      Console.WriteLine("Hello, World!");
      return 0;
   }
}

Output

 Hello, World!
ozlu Sozler GereksizGercek Hava Durumu Firma Rehberi Tv de bugun E-okul Veli Firma Rehberi