Home
|
Forums
|
Contact
|
Search
|
Syndication
[login]
[create account]
Sunday, July 6, 2025
slxdeveloper.com
Home
Search
Contact us
About slxdeveloper
Syndication
Community
Forums
(NEW!)
Newsletter Archive
Members
Your Profile
Submit Article
General
Administration
(6)
OLE DB Provider
Miscellaneous
(2)
Architect
VBScript
(9)
ActiveX Controls
(6)
How To's
(14)
.NET Extensions
(3)
External
OLE DB Provider
(12)
SLAPI (SlgxApi.dll)
SalesLogix COM
(1)
Web
ASP/ASP.NET
(2)
Web Services
Web Client
Downloads
Samples
(17)
Documentation
(7)
Utilities
(18)
Resources
SalesLogix
(3)
Programming
(1)
7/6/2025 8:29:20 AM
slxdeveloper.com Community Forums
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
Architect Forums - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics
(for Windows client only)
. View the
code of conduct
for posting guidelines.
Forums RSS Feed
Back to Forum List
|
Back to SalesLogix Scripting & Customization
|
New Thread
View:
Dynamic
Flat
Tree
Search:
Author
Thread: SLX Recordsets with varchar(max)
Guy Barrett
Posts: 63
SLX Recordsets with varchar(max)
Posted: 27 Aug 10 7:05 AM
Hi All,
I've written a function recently that take the results of any SQL statement passed to it and exports it to a delimited text file.
However, if any of the fields in the results are nvarchar(max) then the statement "xyz = objRS.Fields(intCOLUMN_NO).Value" produces garbage.
I appreciate that the Database Manager does not let you create varchar(max) fields in the first place. They have been changed directly via SQL Server.
If I Cast(fieldname as varchar(8000)) within the SQL Statement, then it works perfectly. The problem is, a lot of the fields have data of more than 8000 characters in them which is why I was forced to make them "max".
Has anyone come across this before, and overcome it?
I can post the code up if you need it, if someone can let me know what the syntax is for posting formatted code.
Many thanks in advance!
[
Reply
][
Quote
]
Raul A. Chavez
Posts: 1300
Re: SLX Recordsets with varchar(max)
Posted: 27 Aug 10 3:09 PM
Quick observation (I haven't done any testing on this):
You mentioned nvarchar(max), does it work with varchar(max)?
Maybe the problem comes from using Unicode fields, rather than the MAX size definition.
[
Reply
][
Quote
]
Page 1 of 1
You can subscribe to receive a daily forum digest in your
user profile
. View the site
code of conduct
for posting guidelines.
Forum RSS Feed
-
Subscribe to the forum RSS feed to keep on top of the latest forum activity!
slxdeveloper.com is brought to you courtesy of
Ryan Farley
&
Customer FX Corporation
.
This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.
code of conduct
|
page cache (param): 7/6/2025 8:54:50 AM