John Lokanis Posted September 28, 2009 Report Share Posted September 28, 2009 I recently discovered a bug in the .NET 2.0 framework that bit my database code in LabVIEW hard. Apparently, if you send a string to the sql.net APIs that is a certain length then you will get this bogus error. http://support.microsoft.com/kb/971990 My workaround is to capture this error where I call the .NET API and then pad the sql string with an extra space and try the command again. Still, kinda sad they would miss something as basic as memory block allocation in a core library. Hope this helps someone save some time... -John Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.