Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Getting string from database table with VARCHAR(MAX) field

I'm working on a Excel 2003 VBA macro, trying and failing to retrieve a 5092
chars string from a SQL Server 2005 table with a Varchar(Max) field.

I can retrieve the string from a table with a Varchar(8000) field but not
from a Varchar(Max) field so there's something about such a field that Excel
doesn't like. But what? And is there a workaround?

I'm using an ADODB Recordset to get at the data and I can't reduce the
Varchar(Max) field to 8000 chars because some of the strings are over 34000
chars in length and I need to be able read those strings in my macro.

So, I guess the simple question is: how do I read a string from a
Varchar(Max) database field?

Thank you,

Dan
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula, one field complex or multiple table field simple DbMstr Excel Discussion (Misc queries) 1 February 12th 12 09:40 PM
How do I remove a Calculated Field from the Pivot Table field list TheTraveler Excel Discussion (Misc queries) 2 April 9th 10 06:55 PM
How to make a field created a part of the Pivot Table Field List? drhell Excel Discussion (Misc queries) 0 January 29th 07 11:13 PM
Changing a pivot table field items to current database Pete Straman Straman via OfficeKB.com Excel Programming 3 February 22nd 05 04:40 PM
Add field to jet database table in ADO Michael Malinsky[_3_] Excel Programming 3 May 13th 04 11:16 AM


All times are GMT +1. The time now is 10:04 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"