Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Varchar in SQL to VFP data field

Status
Not open for further replies.

madhatter2002

Programmer
Nov 6, 2002
73
PH
Just a quick one tipsters.

What is the maximum length that a sql varchar data type can hold for a string??

Can a VFP data field match the length of sql varchar data type when the varchar is already at its max?? or do i need to cut it into multiple parts before I can save it VFP data fields?

 
It depends on the back end. In SQL Server, the max length of a Varchar is 8,000, but that's necessarily true for other servers.

In general, if a Varchar is more than 254 characters, VFP will map it to a memo field. You never need to cut the field into multiple parts.

Mike


Mike Lewis
Edinburgh, Scotland

My Visual Foxpro web site: My Crystal Reports web site:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top