.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal

Home >> Interview Question >> .NET Framework >> Post New Question Subscribe to Interview Questions

What is fixed-length & variable-length characters? Tell me their differences??

Posted By :nishithraj     Posted Date :March 15, 2010    Points :10   Category :.NET Framework 
In Sql Server there are two types of character data types. They are

1.fixed-length (i.e char)
2.variable-length (i.e varchar)

The main differences are maximum length and in whether trailing spaces are retained

You can also find related Interview Question to What is fixed-length & variable-length characters? Tell me their differences??  below: 

Which of the following is a fixed length DataType?

CHAR Data type is used when the column lenght is known (More...)

What is the minimum and maximum length of the header in the TCP segment and IP datagram?

The header should have a minimum length of 20 bytes and can have a maximum length of 60 bytes. (More...)

How to Find the Length() of string excluding blank spaces?

By using Len( ) method.

select Len ('inthiyaaz ') as length

9 (More...)

How to find the Length of a String Including Blank spaces?

By using DataLength( ) method

DataLength function return the number of Characters of the specified string expression,including blank spaces.

select datalength ('inthiyaaz ') as Datalength

11 (More...)

What is maximum column name length in SQL Server 2005?

Maximum allowed column name length in SQL Server 2005 is 128 characters (More...)

How to determine the length of the column using SQL Query?


How to Find The length of the String in JavaScript.

Use Build in function Length

like String.length. it will return int. (More...)

How to determine the length of a resume?

As I am fresher I don't know how to write a resume. Can you please help me to know about the importance of writing a resume and how to determine the resume length.
http://www.localresumewritingservice.us/resume-within-48-hours.html (More...)

What is the differences between delegates and interfaces?

Interfaces carry semantics, and when a programmer implements an interface, he is typically well aware of that semantics. When you try to invoke a particular method via an interface, you can be fairly certain that if you succeed, the semantics of that method is what you expect. For that reason, using interfaces is essentially doing a check for semantic correctness on some level.

Delegates, on the other hand, by only verifying the method signature, make the programmer responsible for ensuring that the semantics of the method is compatible. The semantics may cover not only the meaning of the arguments and return value (some times even the order of the arguments if they are of the same type), the ranges of the arguments, but also an invocation order when multiple methods are concerned. Hence, in a sufficiently large program there is plenty of margin to make an error when different programmers are not forced to comply with a uniform semantics (as they would be if interfaces were used). (More...)

Differences between application and session.

The session object maintains state on a per client basis whereas the application object is on a per application basis and is consistent across all client requests. (More...)

What are the differences among batches, stored procedures, and triggers?


A batch is a group of one or more SQL statements. SQL Server compiles the statements of a batch into a single executable unit, called an execution plan. The statements in the execution plan are then executed one at a time.

stored procedure :
A stored procedure is a group of SQL statements that is compiled one time and can then be executed many times.

A trigger is a special type of stored procedure that is not called directly. Trigger is fired each time row is affected by Insert, Update or Delete command.


What are the differences between web part page gallery, site gallery,Virtual server gallery and online gallery in SharePoint?

Web Part Page Gallery in SharePoint is the default gallery provided by Microsoft that comes installed with SharePoint. Site Gallery is specific to one sharepoint website site. Virtual Server gallery is specific to that virtual server and online gallery is available for download web parts from MSDN. (More...)

How to remove a Session variable?

using HttpSessionState.Remove(); (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend