It contains Asp.net,C#.net,Vb.net,Sql server FAQ's.
Difference between Session and Cookies
Session["userName"] = "Ganesh Ram";
if(Session["UserName"] != null)
lblUserName.Text = Session["UserName"].ToString();
//add a username Cookie
Response.Cookies["UserName"].Value = "
Ganesh Ram
";
Response.Cookies["UserName"].Expires = DateTime.Now.AddDays(10);
//request a username cookie
if(Request.Cookies["UserName"] != null)
lblUserName.Text = Server.HtmlEncode(Request.Cookies["UserName"].Value);
Difference between Clustered index and Non-Clustered index
Whereas in case of non-clustered index the leaf level is actually a pointer to the data in rows so we can have as many non-clustered indexes as we can on the db
Example
USE Sample
GO
CREATE TABLE Employee
(ID bigint PRIMARY KEY CLUSTERED,
Name nvarchar(150),
Address nvarchar(250),
Salary varchar(25) )
GO
CREATE NONCLUSTERED INDEX EmpName ON Employee(Name)
GO
Define Stored procedure ?
It is a collection of transact sql statements that can take or return user supplied parameters.
Maximum size of stored procedure is 128 MB.
Difference between Having and Group By clause ?
Having Clause : To filter the rows from the grouped results
Group By : is used for grouping the operation.
Group by : Ccause is used to group the output of the WHERE clause..
Define View ?
It is nothing but a virtual table that represent the data in one or more tables in a alternative way.
What is index ?
Index is a pointer in sql server to retrieve the data faster from database.
It’s a physical structure containing pointers to data.
Its created in existing tables to locate rows more quickly and efficiently.
Types of Index:
a) Clustered Index : It contains only one index ie: Creating a primary key for the table.
Physical sorting of data in the storage media.
b) Non-Clustered Index : A table can contains 249 non-clustered index, It can be created outside of the database tables , that contain a sorted list of references to the table itself.
Define Delegates ?
Delegate is a class that can hold reference to a method or a function .
Delegate class has a signature and it only reference those method whose signature is compliant with the class.
Delegates are type safe , secure , object oriented.
About Me
Working as a Senior Developer with 4+ years of experience in Dot Net.