> I don't understand the following MS SQL error. Both columns for
> the primary and foreign key are varchar(20). I don't know how to
> fix this error because
> I don't even know what it means as it is the first time for this one. Any
> help?
>
> - Unable to create relationship 'FK_TrainingTranslations_WWTunings'.
>
> [Microsoft][ODBC SQL Server Driver][SQL Server]The total row size
> (8132) for
> table 'TrainingTranslations' exceeds the maximum number of bytes per row
> (8060). Rows that exceed the maximum number of bytes will not be added.


As stated by Tony and Seva, SQL Server has a row limit of 8KB - but TEXT
fields don't add to this

If you've got VARCHAR fields which aren't indexed or used in a WHERE
(excuding IS NULL) then make them into TEXT - it's a minor inconvenience,
but it's an easy "get around"

If you really need to use TEXT fields in a WHERE, then you can always use
CONVERT to make them into "virtual" VARCHAR fields... slightly slower, but
it works

Philip Arnold
Director
Certified ColdFusion Developer
ASP Multimedia Limited
T: +44 (0)20 8680 1133

"Websites for the real world"

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to