#2600 closed enhancement (fixed)
Allow the Sample Data for Report Designers to Handle All SQL Datatypes
| Reported by: | Pete Cyr | Owned by: | Pete Cyr |
|---|---|---|---|
| Priority: | medium | Milestone: | |
| Component: | Curator Tool | Version: | N/A |
| Severity: | Keywords: | ||
| Cc: | Database Engine: | N/A | |
| Operating System: | N/A |
Description
Enable the Curator Tool's 'Create Sample Data (for Report Designers)' menu item to create tables that support all SQL database datatypes so that the sample data table created will use the same datatypes used by the dataview in the Curator Tool.
Change History (3)
comment:1 by , 4 years ago
| Status: | new → addressed |
|---|
comment:2 by , 4 years ago
| Resolution: | → fixed |
|---|---|
| Status: | addressed → closed |
comment:3 by , 4 years ago
Additional details provided by the developer on 4/26/2023:
The Curator Tool can now detect and properly create all Middle Tier dataview datatypes (this includes: BYTE, SBYTE, UINT, UINT32, UINT64, SINGLE, DOUBLE, DECIMAL, and CHAR datatypes) when generating sample data for Crystal Report Designer. Now that the Curator Tool supports all datatypes used by the Middle Tier, the Crystal Report Designer software can precisely create supporting report fields that match the datatype used by the Middle Tier.
The Curator Tool also properly detects when a Middle Tier dataview field has been built using a concatenation of 2 or more CHAR strings from Middle Tier database fields - and when this is detected the Curator Tool will automatically ignore the Middle Tier hint for the length of the CHAR field and instead create the field as a NVARCHAR(MAX) in order to accommodate very long concatenation strings that exceed the length of the Middle Tier hint. (This is useful when building Crystal Reports files.)

Enhanced the BuildColumnSQL() method in the LocalDatabase class to process BYTE, SBYTE, UINT, UINT32, UINT64, SINGLE, DOUBLE, DECIMAL, and CHAR datatypes when creating Crystal Report sample database tables, and enabled the method to properly detect when a datatable field has data that is a concatenated string of other fields - and if so create the field in the Curator Tool as a NVARCHAR(MAX) to accommodate very long concatenation strings (addressed in Curator Tool v1.22.8.24).