h1.post-title { color:orange; font-family:verdana,Arial; font-weight:bold; padding-bottom:5px; text-shadow:#64665b 0px 1px 1px; font-size:32px; } -->

Pages

Cluster vs NON-Cluster Index

Cluster vs NON-Cluster Index
S.NoParticularsClusterNON-Cluster
1data rows sort and store the data rows in the table or view based on their key values.have a structure separate from the data rows.
2ReadFaster to read than NON-Cluster
3StorePhysically, Store Index Order
4Faster Insert/UpdateQucikly Insert and Update Data than a Cluster Index.
5TableOnly One Per Tablecan be used many time per Table
6OrderData is in Physical OrderLogical Order

Function vs Methods


Function vs Methods
S.NoParticularsFuncitonMethods
1independent existence they can be defined outside of the classthey are always defined with in class
2languages Structure languages object oriented languages
3independentlycalled independently.called using instance or object.
4Functions are self describing unit of code.Methods are used to manipuate instance variable of a class

Web Services vs WCF


Web Services vs WCF
S.No Particulars Web services WCF
1Support SOAPYesYes
2SupportHTTPTCP, HTTP, HTTPS, Named Pipes, MSMQ.
3Return DataXMLXML
4Open SourceNo, can be consumed by any client that understands xml.No, can be consumed by any client that understands xml.
5Hostonly IISIIS or Windows Services

Create Directory Date Format in C#.Net

This is a Code for "Create Directory Date Format in C#.net"

using System;
 using System.Collections.Generic;
 using System.Linq;
 using System.Text;
 using System.IO;
 namespace GetOfficeVersion
 {
class ClsDirectory
 {
 public static void CreateDirectory(string DesignationPath)
 {
 if (!Directory.Exists(DesignationPath))
 {
 Directory.CreateDirectory(DesignationPath);
 }
 }
 public static string currentYear()
 {
 string Year = string.Empty;
DateTime dt = DateTime.Now;
string format = "yyyy";
 Year = dt.ToString(format);
 return Year;
 }
 public static string currentMonth()
{
 string Month = string.Empty;
 DateTime dt = DateTime.Now;
 string format = "MM";
 Month = dt.ToString(format);
 return Month;
 }
 public static string currentDate()
 {
string day = string.Empty;
 DateTime dt = DateTime.Now;
string format = "dd";
day = dt.ToString(format); return day;
}
}
}