David,
This is apparently a limit on the length of the view definition which must be stored in SYS_VIEWS. SYS_COLUMN_LIST in SYS_VIEWS is a NOTE data type, which is limited to 4096 characters. Emmitt Dove Manager, Converting Applications Development Evergreen Packaging, Inc. [email protected] (203) 214-5683 m (203) 643-8022 o (203) 643-8086 f [email protected] From: [email protected] [mailto:[email protected]] On Behalf Of David Blocker Sent: Monday, May 31, 2010 12:46 To: RBASE-L Mailing List Subject: [RBASE-L] - Re: Getting Error Message on View: ?Row length exceedsmaximum of 4,096 characters? Albert I understand the concept. But it seems unnecessary in the current situation. The original PAYROLL table columns used in the view are: The six columns used in the GROUP BY clause: ColleagueID: Text 8 PP: Text 4 LastName: Text 20 FirstName: Text 20 SEX: Text 1 SSNO: Text 11 The remaining columns that are SUMmed are ONE Numeric Column (Hours) 257 Currency columns So two questions arise: Where and why would R:Base be trying to change the data type? Why did R:Base NOT do this in the past with this view? The view used to have 242 columns in it. The ONLY changes I made were to add the 22 new columns added to the PAYROLL table, with SUM(columname). The new column names are not reserved words. And ANSI is SET OFF. David Blocker "David Blocker [email protected] Office: 781-344-1920 Cell: 339-206-0261" -----Original Message----- From: Albert Berry [mailto:[email protected]] Sent: Monday, May 31, 2010 12:13 PM To: 'RBASE-L Mailing List' Subject: [RBASE-L] - Re: Getting Error Message on View: ?Row length exceedsmaximum of 4,096 characters? David, if you create a temp table with the columns typed as you want, but leave it empty, you can use it as the first table in the view, and that will define the column types for you in your view. An example of this is when you combine text columns in a view they usually come out as NOTE. CREATE VIEW empFullName (EmpID, FullName) AS + SELECT EmpID, (fName & lName) from employees To resolve this issue, CREATE TEMP TABLE tmpFullName ( + EmpID INTEGER, + FullName TEXT (100) ) CREATE VIEW empFullName (EmpID, FullName) AS + SELECT EmpID, FullName FROM tmpFullName + UNION + SELECT EmpID, (fName & lName) from employees Albert David Blocker wrote: > > Alastair > > > > An interesting idea. To do that however, I?d have to handle this with > a temporary table, right? Then insert the SELECT into the temp > table? Or is there a way in a VIEW definition to set column types > that I?m not aware of? I thought R:Base would normally follow the > column type of the original column. > > > > David > > > --- RBASE-L ================================================ TO POST A MESSAGE TO ALL MEMBERS: Send a plain text email to [email protected] (Don't use any of these words as your Subject: INTRO, SUBSCRIBE, UNSUBSCRIBE, SEARCH, REMOVE, SUSPEND, RESUME, DIGEST, RESEND, HELP) ================================================ TO SEE MESSAGE POSTING GUIDELINES: Send a plain text email to [email protected] In the message SUBJECT, put just one word: INTRO ================================================ TO UNSUBSCRIBE: Send a plain text email to [email protected] In the message SUBJECT, put just one word: UNSUBSCRIBE ================================================ TO SEARCH ARCHIVES: Send a plain text email to [email protected] In the message SUBJECT, put just one word: SEARCH-n (where n is the number of days). In the message body, place any text to search for. ================================================

