- varchar : Non-Unicode variable length character type
- nvarchar : Unicode variable length character type
Tuesday, June 17, 2014
Difference Between Sql Server VARCHAR and NVARCHAR Data Type
Monday, May 12, 2014
Relationships in SQL Server
- One DeviceClass can have many DeviceTypes
- Key symbol represent one, infinity symbol represent many
- Note: You don’t have to have many.
- Not as common as One-To-Many
- Many-To-Many relationship is expressed with help of junction tables
- A table name with a joint name of two tables
- Least commonly used relationship
- One row in one tables is related to, One row in other table
Wednesday, May 7, 2014
Is C# a 100% Object Oriented Programming Language?
- Encapsulation
- Polymorphism
- Inheritance
- All predefined type are objects
- All operations performed by sending messages to objects
- All user-defined types are objects
- http://www.jvoegele.com/software/langcomp.html
- http://stackoverflow.com/questions/3356464/is-c-sharp-a-100-object-oriented-programming-language
Wednesday, February 19, 2014
.NET Framework 4 Features
- Provides background garbage collection
- Provide better performance.
- It replaces concurrent garbage collection.
- This determines processor usage and memory usage estimates per app domain.
- Support with System.Dynamic namespace.
- DLR built on top of CLR
- DLR supports dynamic languages (IronPython, IronRuby)
- Parallel programming is introduced
- PLINQ
- AsParallel
- Data structure consists of multiple parts
- System.Tuple
- Maximum of 8 items supported
Reference: core new features and improvements
ASP.NET:
- Built-in support for routing.
- No need to specify physical file names.
- Introduced compression option for out-process session state (state server/ SQL Server)
- is included in script folder
Tuesday, October 8, 2013
WCF REST: Video blog from DotNetIQ
How to Expose WCF service with Multiple endpoints,How to Call WCF REST (JSON) & SOAP services from JQuery
Tuesday, March 12, 2013
Windows Service observations
Note:
- Debugging windows service is a real bottleneck.
- Use Microsoft event log for logging purpose. Event viewer helps to navigate through logs.
- Test the code in console application, then move it to windows service
- It is better to use SQL server authentication when connecting from windows service to SQL Server.
- If windows service runs under Local System, then it won't be able to create instance of SQL server connection. Service property > Log on > Select a network account.
- Polling has to be done in a different thread.
Thursday, December 6, 2012
Method overloading in ASMX service
· Method overloading (polymorphism) is not supported by default
· But can be achieved using MessageName property of WebMethod attribute.
· Reference: http://forums.asp.net/t/1162934.aspx/1
[WebService(Namespace = "http://tempuri.org/")]
//[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[WebServiceBinding(ConformsTo = WsiProfiles.None)]
// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
// [System.Web.Script.Services.ScriptService]
public class Service : System.Web.Services.WebService
{
public Service () {
//Uncomment the following line if using designed components
//InitializeComponent();
}
[WebMethod]
public string HelloWorld()
{
return "Hello World";
}
[WebMethod(MessageName = "HelloWorldwithParam")]
public string HelloWorld(string message)
{
return message;
}
}
DISCLAIMER:
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.
