DetailPage-MSS-KB

Microsoft small business knowledge base

Article ID: 934055 - Last Review: October 8, 2011 - Revision: 2.0

Bug #: 50000957 (SQL Hotfix)

On This Page

SYMPTOMS

Consider the following scenario. You develop a project by using Microsoft Visual Studio 2005. You try to use the OdbcCommandBuilder class to update a Sybase database in the Microsoft .NET Framework 2.0. In this scenario, you receive the following error message:
InvalidOperationException - Dynamic SQL generation is not supported against a SelectCommand that does not return any base table information.
Note This problem occurs when you use the Sybase ODBC driver to connect to the database.

CAUSE

This issue occurs if the following conditions are true:
  • The driver that you use to connect to the database does not support the SQLColAttribute(SQL_DESC_BASE_TABLE_NAME) function. The driver will return an empty string when it uses this function.
  • The driver returns a blank character (" ") when the driver uses the SQLGetInfo(SQL_IDENTIFIER_QUOTE_CHAR) function.

RESOLUTION

Hotfix information

A supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that is described in this article. Apply it only to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Microsoft .NET Framework 2.0 service pack that contains this hotfix.

To resolve this problem immediately, contact Microsoft Customer Support Services to obtain the hotfix. For a complete list of Microsoft Customer Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:
http://support.microsoft.com/contactus/?ws=support (http://support.microsoft.com/contactus/?ws=support)
Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Prerequisites

No prerequisites are required.

Restart information

You may have to restart the computer if the System.Data.Dll file is being used.

Registry information

You do not have to change the registry.

Hotfix file information

This hotfix contains only those files that are required to correct the issues that this article lists. This hotfix may not contain of all the files that you must have to fully update a product to the latest build.
The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.The .NET Framework 2.0, 32-bit version
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Mscordacwks.dll2.0.50727.816801,79209-Mar-200703:18x86
Mscorjit.dll2.0.50727.816326,65609-Mar-200703:18x86
Mscorlib.dll2.0.50727.8164,308,99209-Mar-200703:18x86
Mscorpe.dll2.0.50727.816102,91209-Mar-200703:18x86
Mscorwks.dll2.0.50727.8165,625,85609-Mar-200703:18x86
Normalization.dll2.0.50727.81615,36009-Mar-200703:18x86
Normidna.nlpNot applicable59,34209-Mar-200703:18Not applicable
Normnfc.nlpNot applicable45,79409-Mar-200703:18Not applicable
Normnfd.nlpNot applicable39,28409-Mar-200703:18Not applicable
Normnfkc.nlpNot applicable66,38409-Mar-200703:18Not applicable
Normnfkd.nlpNot applicable60,29409-Mar-200703:18Not applicable
Peverify.dll2.0.50727.816136,19209-Mar-200703:18x86
Sos.dll2.0.50727.816382,46409-Mar-200703:18x86
System.data.dll2.0.50727.8162,902,01609-Mar-200703:18x86
The .NET Framework 2.0, x64-based version
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Mscordacwks.dll2.0.50727.8161,597,44008-Mar-200719:20x64
Mscordacwks.dll2.0.50727.816801,79209-Mar-200703:18x86
Mscorjit.dll2.0.50727.8161,587,71208-Mar-200719:18x64
Mscorjit.dll2.0.50727.816326,65609-Mar-200703:18x86
Mscorlib.dll2.0.50727.8163,960,83208-Mar-200722:41x64
Mscorlib.dll2.0.50727.8164,308,99209-Mar-200703:18x86
Mscorpe.dll2.0.50727.816157,18408-Mar-200719:13x64
Mscorpe.dll2.0.50727.816102,91209-Mar-200703:18x86
Mscorpjt.dll2.0.50727.8162,004,99208-Mar-200719:19x64
Mscorwks.dll2.0.50727.81610,331,13608-Mar-200719:16x64
Mscorwks.dll2.0.50727.8165,625,85609-Mar-200703:18x86
Normalization.dll2.0.50727.81618,43208-Mar-200719:17x64
Normalization.dll2.0.50727.81615,36009-Mar-200703:18x86
Normidna.nlpNot applicable59,34208-Mar-200719:19Not applicable
Normidna.nlpNot applicable59,34209-Mar-200703:18Not applicable
Normnfc.nlpNot applicable45,79408-Mar-200719:19Not applicable
Normnfc.nlpNot applicable45,79409-Mar-200703:18Not applicable
Normnfd.nlpNot applicable39,28408-Mar-200719:19Not applicable
Normnfd.nlpNot applicable39,28409-Mar-200703:18Not applicable
Normnfkc.nlpNot applicable66,38408-Mar-200719:19Not applicable
Normnfkc.nlpNot applicable66,38409-Mar-200703:18Not applicable
Normnfkd.nlpNot applicable60,29408-Mar-200719:19Not applicable
Normnfkd.nlpNot applicable60,29409-Mar-200703:18Not applicable
Peverify.dll2.0.50727.816205,82408-Mar-200719:18x64
Peverify.dll2.0.50727.816136,19209-Mar-200703:18x86
Sos.dll2.0.50727.816480,76808-Mar-200719:27x64
Sos.dll2.0.50727.816382,46409-Mar-200703:18x86
System.data.dll2.0.50727.8162,967,04008-Mar-200722:41x64
System.data.dll2.0.50727.8162,902,01609-Mar-200703:18x86
The .NET Framework 2.0, Itanium architecture version
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Mscordacwks.dll2.0.50727.8162,719,23208-Mar-200719:21IA-64
mscordacwks.dll2.0.50727.816801,79209-Mar-200703:18x86
Mscorjit.dll2.0.50727.8162,705,92008-Mar-200719:19IA-64
Mscorjit.dll2.0.50727.816326,65609-Mar-200703:18x86
Mscorlib.dll2.0.50727.8163,960,83208-Mar-200722:48IA-64
Mscorlib.dll2.0.50727.8164,308,99209-Mar-200703:18x86
Mscorpe.dll2.0.50727.816313,85608-Mar-200719:12IA-64
Mscorpe.dll2.0.50727.816102,91209-Mar-200703:18x86
Mscorpjt.dll2.0.50727.8163,501,05608-Mar-200719:19IA-64
Mscorwks.dll2.0.50727.81621,314,56008-Mar-200719:17IA-64
Mscorwks.dll2.0.50727.8165,625,85609-Mar-200703:18x86
Normalization.dll2.0.50727.81644,03208-Mar-200719:18IA-64
Normalization.dll2.0.50727.81615,36009-Mar-200703:18x86
Normidna.nlpNot applicable59,34208-Mar-200719:20Not applicable
Normidna.nlpNot applicable59,34209-Mar-200703:18Not applicable
Normnfc.nlpNot applicable45,79408-Mar-200719:20Not applicable
Normnfc.nlpNot applicable45,79409-Mar-200703:18Not applicable
Normnfd.nlpNot applicable39,28408-Mar-200719:20Not applicable
Normnfd.nlpNot applicable39,28409-Mar-200703:18Not applicable
Normnfkc.nlpNot applicable66,38408-Mar-200719:20Not applicable
Normnfkc.nlpNot applicable66,38409-Mar-200703:18Not applicable
Normnfkd.nlpNot applicable60,29408-Mar-200719:20Not applicable
Normnfkd.nlpNot applicable60,29409-Mar-200703:18Not applicable
Peverify.dll2.0.50727.816383,48808-Mar-200719:19IA-64
Peverify.dll2.0.50727.816136,19209-Mar-200703:18x86
Sos.dll2.0.50727.816862,72008-Mar-200719:29IA-64
Sos.dll2.0.50727.816382,46409-Mar-200703:18x86
System.data.dll2.0.50727.8163,109,88808-Mar-200722:48IA-64
System.data.dll2.0.50727.8162,902,01609-Mar-200703:18x86

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

Call stack information

System.InvalidOperationException was caught
  Message="Dynamic SQL generation is not supported against a SelectCommand that does not return any base table information."
  Source="System.Data"
  StackTrace:
       at System.Data.Common.DbDataAdapter.UpdatingRowStatusErrors(RowUpdatingEventArgs rowUpdatedEvent, DataRow dataRow)
       at System.Data.Common.DbDataAdapter.Update(DataRow[] dataRows, DataTableMapping tableMapping)
       at System.Data.Common.DbDataAdapter.UpdateFromDataTable(DataTable dataTable, DataTableMapping tableMapping)
       at System.Data.Common.DbDataAdapter.Update(DataSet dataSet, String srcTable)
       at vs2005Sybase.Form1.Button2_Click(Object sender, EventArgs e)
For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684  (http://support.microsoft.com/kb/824684/ ) Description of the standard terminology that is used to describe Microsoft software updates

APPLIES TO
  • Microsoft .NET Framework 2.0
Keywords: 
kbfix kbexpertiseadvanced kbqfe KB934055
Share
Additional support options
Ask The Microsoft Small Business Support Community
Contact Microsoft Small Business Support
Find Microsoft Small Business Support Certified Partner
Find a Microsoft Store For In-Person Small Business Support