Missing ADO data

yankee428

Active Member
Joined
Apr 12, 2004
Messages
348
I'm using Excel XP with ADO 2.8 library connecting to SQL Server 2008.

sSQL = "select * from mydb.dbo.try3"
cnn = make_connection
rst.Open cnn.Execute(sSQL)

With Range("rngBigOne")
.Clear
.CopyFromRecordset rst
.HorizontalAlignment = xlLeft
End With

This works fine if the table try3 has a field with data type of nvarchar(50), but when I change to nvarchar(MAX) nothing is return. Does anyone know how I can retrieve data via ADO using nvarchar(MAX)?
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

Forum statistics

Threads
1,224,604
Messages
6,179,857
Members
452,948
Latest member
UsmanAli786

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top