Search the web
Sign In
New User? Sign Up
asp-FAQ · Active Server Pages - FAQ
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
ASP/EXCEL ODBC size limitation problem.   Message List  
Reply | Forward Message #6 of 19 |
Hi all,

if anyone can help with this it would be a appreciated..
i have built a generic system that uploads information
from excel spreadsheets using ODBC and ASP.

for the first excel sheet i used, everything worked fine,
uploaded the data, happy.

the next sheet i used had a lot more columns, (about 78)
and I get the following error when I try and read it:

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Excel Driver] The field is too small to accept the
amount of data you attempted to add. Try inserting or pasting less
data.
/metacalc/default.asp, line 364

HERE is the code:

Set ExcelRecordSet = Server.CreateObject("ADODB.Recordset")
ExcelRecordSet.ActiveConnection = ExcelConn
ExcelRecordSet.CursorType = 3 'Static
cursor.
ExcelRecordSet.LockType = 2 'Pessimistic
Lock.
ExcelRecordSet.Source = "Select * from calculator"
ExcelRecordSet.Open



364 ExcelRecordSet.MoveNext


so you can see that the error is on the MoveNext, so it has opened it
successfully, but can't move thru the rows..
If I delete rows from the spreadsheet it works ok..
I have tried to find out why there is this limitation in ODBC
or whether its my fault.
Is there some way to increase the size that it can handle?


any help would be most appreciated..

thanks,

steve






Tue May 27, 2003 1:04 am

stevedangerf...
Offline Offline
Send Email Send Email

Forward
Message #6 of 19 |
Expand Messages Author Sort by Date

Hi all, if anyone can help with this it would be a appreciated.. i have built a generic system that uploads information from excel spreadsheets using ODBC and...
Dangerfield
stevedangerf...
Offline Send Email
May 27, 2003
1:19 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help