Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > Pervasive.SQL > Error in assignment

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-07-08, 08:17
adam jackson adam jackson is offline
Registered User
 
Join Date: Aug 2008
Posts: 2
Red face Error in assignment

Hi,

I have two tables in my database that have large(ish) text fields in them. When I use Crystal Reports I can view them OK however when I use MS Query I get an "Error in Assignment" error message if I include any one or more of these large text fields. If they are not included all is OK. In the DDFs the fields are declared as Char.

Hope someone can help
Reply With Quote
  #2 (permalink)  
Old 08-07-08, 09:42
mirtheil mirtheil is offline
Registered User
 
Join Date: Dec 2001
Posts: 813
A few questions:
- What version of PSQL are you using?
- What is the size of the CHAR fields causing the errors?
- Does ODBC Test or Pervasive Control Center show the same error?
__________________
Mirtheil Software
Certified Pervasive Developer
Certified Pervasive Technician
Custom Btrieve/VB development
http://www.mirtheil.com
I do not answer questions by email. Please post on the forum.
Reply With Quote
  #3 (permalink)  
Old 08-07-08, 10:12
adam jackson adam jackson is offline
Registered User
 
Join Date: Aug 2008
Posts: 2
8.7
all more than 255 up to a max of 1200
PCC returns
ODBC Error: SQLSTATE = 01S01, Native error code = 0
Error in row.
Error in assignment.
Reply With Quote
  #4 (permalink)  
Old 08-07-08, 12:39
mirtheil mirtheil is offline
Registered User
 
Join Date: Dec 2001
Posts: 813
According to the PSQL v8 documentation (SQL Language Reference) the maximum size of a CHAR field is 255 bytes. PSQL v9 and later does support larger char fields though.
You'll either need to upgrade to at least v9.52 (latest of the v9.5 series) or split your Char fields to less than 255 bytes.
__________________
Mirtheil Software
Certified Pervasive Developer
Certified Pervasive Technician
Custom Btrieve/VB development
http://www.mirtheil.com
I do not answer questions by email. Please post on the forum.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On