FIX: Error message when you use the OdbcCommandBuilder class to update a Sybase database in the .NET Framework 2.0: "Dynamic SQL generation is not supported against a SelectCommand that does not return any base table information"
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.
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.
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:
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 name
File version
File size
Date
Time
Platform
Mscordacwks.dll
2.0.50727.816
801,792
09-Mar-2007
03:18
x86
Mscorjit.dll
2.0.50727.816
326,656
09-Mar-2007
03:18
x86
Mscorlib.dll
2.0.50727.816
4,308,992
09-Mar-2007
03:18
x86
Mscorpe.dll
2.0.50727.816
102,912
09-Mar-2007
03:18
x86
Mscorwks.dll
2.0.50727.816
5,625,856
09-Mar-2007
03:18
x86
Normalization.dll
2.0.50727.816
15,360
09-Mar-2007
03:18
x86
Normidna.nlp
Not applicable
59,342
09-Mar-2007
03:18
Not applicable
Normnfc.nlp
Not applicable
45,794
09-Mar-2007
03:18
Not applicable
Normnfd.nlp
Not applicable
39,284
09-Mar-2007
03:18
Not applicable
Normnfkc.nlp
Not applicable
66,384
09-Mar-2007
03:18
Not applicable
Normnfkd.nlp
Not applicable
60,294
09-Mar-2007
03:18
Not applicable
Peverify.dll
2.0.50727.816
136,192
09-Mar-2007
03:18
x86
Sos.dll
2.0.50727.816
382,464
09-Mar-2007
03:18
x86
System.data.dll
2.0.50727.816
2,902,016
09-Mar-2007
03:18
x86
The .NET Framework 2.0, x64-based version
Collapse this tableExpand this table
File name
File version
File size
Date
Time
Platform
Mscordacwks.dll
2.0.50727.816
1,597,440
08-Mar-2007
19:20
x64
Mscordacwks.dll
2.0.50727.816
801,792
09-Mar-2007
03:18
x86
Mscorjit.dll
2.0.50727.816
1,587,712
08-Mar-2007
19:18
x64
Mscorjit.dll
2.0.50727.816
326,656
09-Mar-2007
03:18
x86
Mscorlib.dll
2.0.50727.816
3,960,832
08-Mar-2007
22:41
x64
Mscorlib.dll
2.0.50727.816
4,308,992
09-Mar-2007
03:18
x86
Mscorpe.dll
2.0.50727.816
157,184
08-Mar-2007
19:13
x64
Mscorpe.dll
2.0.50727.816
102,912
09-Mar-2007
03:18
x86
Mscorpjt.dll
2.0.50727.816
2,004,992
08-Mar-2007
19:19
x64
Mscorwks.dll
2.0.50727.816
10,331,136
08-Mar-2007
19:16
x64
Mscorwks.dll
2.0.50727.816
5,625,856
09-Mar-2007
03:18
x86
Normalization.dll
2.0.50727.816
18,432
08-Mar-2007
19:17
x64
Normalization.dll
2.0.50727.816
15,360
09-Mar-2007
03:18
x86
Normidna.nlp
Not applicable
59,342
08-Mar-2007
19:19
Not applicable
Normidna.nlp
Not applicable
59,342
09-Mar-2007
03:18
Not applicable
Normnfc.nlp
Not applicable
45,794
08-Mar-2007
19:19
Not applicable
Normnfc.nlp
Not applicable
45,794
09-Mar-2007
03:18
Not applicable
Normnfd.nlp
Not applicable
39,284
08-Mar-2007
19:19
Not applicable
Normnfd.nlp
Not applicable
39,284
09-Mar-2007
03:18
Not applicable
Normnfkc.nlp
Not applicable
66,384
08-Mar-2007
19:19
Not applicable
Normnfkc.nlp
Not applicable
66,384
09-Mar-2007
03:18
Not applicable
Normnfkd.nlp
Not applicable
60,294
08-Mar-2007
19:19
Not applicable
Normnfkd.nlp
Not applicable
60,294
09-Mar-2007
03:18
Not applicable
Peverify.dll
2.0.50727.816
205,824
08-Mar-2007
19:18
x64
Peverify.dll
2.0.50727.816
136,192
09-Mar-2007
03:18
x86
Sos.dll
2.0.50727.816
480,768
08-Mar-2007
19:27
x64
Sos.dll
2.0.50727.816
382,464
09-Mar-2007
03:18
x86
System.data.dll
2.0.50727.816
2,967,040
08-Mar-2007
22:41
x64
System.data.dll
2.0.50727.816
2,902,016
09-Mar-2007
03:18
x86
The .NET Framework 2.0, Itanium architecture version
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: