SQL Server Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 2262 Page Views: 

What is the maximum length of a varchar field in SQL Server?



Posted By: Avi Date: 30 October 2009 07:51:03 AM
 Answer:

Variable-length data with a maximum of 8,000 characters.


Posted By: eTechPlanet


Date: 30 October 2009 07:51:03 AM

The maximum length of text in our SQL Server Text field is 8,000 characters.


Posted By: Johndecruse


Date: 17 February 2010 12:57:05 AM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image xXQtET
Related Questions
SQL Server : What is the use of CUBE operator in SQL Server?

What is the use of CUBE operator in SQL Server?

Cube operator is used with Group By clause to summarize the data. It helps in determining the sub to....
Category: SQL Server Date: 10/1/2010 12:14:08 PM
SQL Server : Is there any difference between STUFF and REPLACE function?Explain

Is there any difference between STUFF and REPLACE function?Explain

Yes, REPLACE and STUFF are different functions. STUFF:- STUFF overwrites the specific length of char....
Category: SQL Server Date: 10/1/2010 12:13:08 PM
SQL Server : What is meant by View?

What is meant by View?

In a datbase there are sevral tables and if you want to view some specific fields from multiple tabl....
Category: SQL Server Date: 10/1/2010 12:12:08 PM
SQL Server : What is the function of STUFF in SQL Server?

What is the function of STUFF in SQL Server?

STUFF function inserts one string into the other. Basically it deletes the specified length of the f....
Category: SQL Server Date: 10/1/2010 12:11:08 PM
SQL Server : Give the query to get the 4th highest salary from emp table.

Give the query to get the 4th highest salary from emp table.

SELECT TOP 1 salary FROM ( SELECT DISTINCT TOP 4 salary FROM emp ORDER BY salary DESC) a ORDER BY sa....
Category: SQL Server Date: 10/1/2010 12:10:08 PM