Google Answers Logo
View Question
 
Q: VB6 error message ( No Answer,   3 Comments )
Question  
Subject: VB6 error message
Category: Computers > Programming
Asked by: jstm-ga
List Price: $10.00
Posted: 16 Mar 2005 07:17 PST
Expires: 15 Apr 2005 08:17 PDT
Question ID: 495517
I have a text box on my VB6 application that I am using for long
notes. The data goes into SQL server database. The field is set up as
a "varchar" which only allows a length of 50 characters. However, I am
getting an error message...

"Multipe-step OLE DE generated errors. Check each OLE DB status value,
if available. No work was done."

I am not sure what this is? I think it may be due to typing in more
than 50 characters inside the texbox? Is there another type of field
that will accept more than 50 characters in SQL server?
Answer  
There is no answer at this time.

Comments  
Subject: Re: VB6 error message
From: vballguy-ga on 16 Mar 2005 08:12 PST
 
Are you sure it is "...OLE DE Generated ..." not OLE DB?  - Typically
that is a very general error that says that your database call failed.

Does the insert ever work?  ie: if you only enter a few words?

Assuming that you are correct and it is the field size (which could
throw that error) Can you tell us what version SQL Server you are
using (I assume that it is Microsoft not Sybase SQL Server).

Assuming it a SQL Server 2000 - a "VarChar" can be up to 8,000
characters- you just need to define it as such in the table.
From:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_da-db_7msw.asp
"varchar-Variable-length non-Unicode data with a maximum of 8,000 characters."
Subject: Re: VB6 error message
From: willcodeforfood-ga on 16 Mar 2005 10:45 PST
 
Open SQL Enterprise Manager and find the table.  Right click on the
table and choose the Design Table command.  Change the length of the
field and press the disk icon in the upper left to save your changes
to the table design.  If you think users will ever type/paste in text
that is very, very long, you can always use the Text data type.  A
Text field can hold megabytes of data if need be.
Subject: Re: VB6 error message
From: jstm-ga on 16 Mar 2005 11:00 PST
 
Thanks Will. I changed this as you said and it corrected the problem.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy