.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 >> Sql Server >> Post New Question Subscribe to Interview Questions

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

Posted By :Dhiraj Ranka     Posted Date :July 18, 2011    Points :40   Category :Sql Server 

You can also find related Interview Question to How to determine the length of the column using SQL Query?  below: 

What is maximum column name length in SQL Server 2005?

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

What is Managed metadata column of type in CAML Query?

Managed metadata column is of type "TaxonomyFieldType"




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 Query evaluation engine?

It executes low-level instruction generated by compiler. (More...)

How to Rename a COLUMN Name

To rename a column ,in a query window execute sp_rename using the following formula:

sp_rename 'TableName.ColumnName', 'NewColumnName', 'COLUMN'

The sp_rename factor and the 'COLUMN' string are required.
The TableName factor is the name of the table that the column belongs to. The ColumnName is the current name of the column. The NewColumnName is the desired name you want to give to the column.

sp_rename 'Emp.Employeename','Ename','COLUMN'

Which property on a Combo Box do you set with a column name, prior to setting the Data Source, to display data in the combo box?

ComboBox.DataValueField = "ColumnName"

When we use Databind method for the Combo box we set Display Member and Display Value property to column name. (More...)

How to get the column count of a report?

SY-LINSZ system variable gives the column count (line size) and SY-LINCT for line count. (More...)

What is Query binding ?

The binding of an object to a query (More...)

How to add auto increment column in the DataTable?

To add auto increment column in the DataTable, we can set the AutoIncrement property of the DataColumn object as true and specify the seed value after adding that field into the DataTable object.
// create columns for the DataTable

DataTable dTable = new DataTable();

DataColumn auto = new DataColumn("AutoID", typeof(System.Int32));


// specify it as auto increment field

auto.AutoIncrement = true;

auto.AutoIncrementSeed = 1;

auto.ReadOnly = true; (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