FIX: ??? System.InvalidCastException ????? ?? ???? ?? ?? .NET Framework 2.0 ??? OdbcConnection.GetSchema ?????? ?? ??? ???? ???

???? ?????? ???? ??????
???? ID: 922981 - ?? ???????? ?? ?????? ??? ?? ?? ???? ???? ???? ??.
??? ?? ??????? ???? | ??? ?? ??????? ????

?? ????? ??

?????

?? ?? ???OdbcConnection.GetSchema???? Microsoft .NET Framework 2.0, ?? System.InvalidCastException ????? ?? ???? ??? ?? ?????? ????? ????????? ?? ???? ???? ?? ?? ???? ??::
  • ???? ???OdbcConnection.GetSchema?????? ?? ?? ????? ?? ????DataTypes???????? ????
  • ?? ???? ?????-???? ODBC ??????? ?? ??????? ODBC 3.0 ?? ?????? ??????? ?? ??? ???? ?? ?? ????? ?????

????

??OdbcConnection.GetSchema???? ???SQLGetTypeInfoODBC API ??? ???????? ??SQLGetTypeInfo?????? ???? ?? ?????? ?? ??????? ?????? ??? ??? ??? ODBC ??????? ??? ????? ???? ??? SQL ???? ?????? ?? ????? ?? ??????????? ?? ???? ??? ?????? ?? ???, ??? ODBC ??????? ??????????? ????? ????? ??????????? ???? ??? ?? ????? ??:
  • CASE_SENSITIVE
  • FIXED_PREC_SCALE
  • UNSIGNED_ATTRIBUTE
?? ??????? ????? ???? ????? SQL_SMALLINT ??? ???? ????? ??? SQL_SMALLINT ??? ??? ??? ????????? ???? ??? ??? ???? ?? ??????? ??? ?? ?? ??????????? ???? ??? ?? ????? ???? ??, ??? ??? System.InvalidCastException ????? ?? ?? Microsoft ADO.NET System.Int32 ??? ?? ??? ??? cast ???? ?? ?????? ?????

????????

???????? ???????

?? Microsoft ?? ?? ??????? ???????? ?????? ??, ?? ?? ???? ??? ?????? ?? ?? ???? ?? ??? ?? ????? ????? ?? ???? ??? ??? ??.. ??? ???? ????? ???????? ?? ???? ???? ?? ?? ??????? ?????? ?? ????? ?? ??? ???.. ?? ???????? ?? ??? ???????? ??????? ??? ?? ???? ???.. ?????, ??? ?? ?? ?????? ?? ???? ??? ???????? ???? ???, ?? ?? ????? ????? ?? ?? ???? Microsoft .NET Framework 2.0 ?????? ??? ?? ????????? ?????? ?? ???????? ????? ???

?? ?????? ?? ????? ?? ???? ?? ???, ???????? ??????? ???? ?? ??? Microsoft ?????? ?????? ???? ?? ?????? ????.. Microsoft ?????? ?????? ?????? ?? ??? ?????? ?? ???? ?? ??? ?? ?????? ????? ?? ???? ??? ??????? ?? ???, ????? Microsoft ??? ???? ?? ????::
http://support.microsoft.com/contactus/?ws=support
???:????? ?????? ???, ?? ????? ?? ?????????? ?????? ???????? ?? ???? ???? ??? ???? ??? ?? ???? ???, ??? ??? Microsoft ?????? ????????? ????????? ???? ?? ?? ??? ??????? ?????? ???? ?????? ?? ?????? ?? ???? ??.. ???????? ?????? ???????? ?? ?? ???????? ?? ??? ??????? ?????? ????? ???? ????? ?? ?? ??????? ?????? ?? ??????? ???? ????..

??????????????

?? ???????? ?? ???? ???? ?? ??? ??????? .NET Framework 2.0 ???? ?????? ???

???? ??????? ????????

???? ?? ????????? ???? ???? ?? ??? ???????? ?? ???? ??????? ???? ???? ??????..

????????? ???????????? ???????

?? ???????? ???? ?? ???????? ?? ???????????? ???? ????..

????? ???????

?? ????????? ?? ????????? ??????? ??? ?? ????? ????????? (?? ??? ?? ????? ?????????) ??? ?? ????? ?????? ??? ???????? ???.. ?? ??????? ?? ??? ?????? ?? ???, ??????? ????????? ??? (UTC) ??? ???????? ??.. ?? ?? ????? ??????? ????? ???, ?? ?? ??????? ??? ??? ?????? ???? ???? ??.. "UTC ?? ??????? ??? ??? ???? ????? ?? ???, ???????? ??? ??? ""?????? ?? ??? ???"" ??? """"??? ???????"" "??? ???????? ???? ??? ?????? ?? ??? ???? ??? ???
32-??? ???????? (x 86) ?? ??? .NET Framework 2.0
?? ?????? ?? ??????? ?????? ?????? ?? ??????? ????
????? ???????? ?? ???????????? ?????????????:??????????
Mscordacwks.dll2.0.50727.190801,28004-??-200604: 03x86
Mscorlib.dll2.0.50727.1904,317,18404-??-200604: 03x86
Mscorwks.dll2.0.50727.1905,624,32004-??-200604: 02x86
Normalization.dll2.0.50727.19015,36004-??-200604: 03x86
Normidna.nlp???? ????59,34204-??-200604: 03???? ????
Normnfc.nlp???? ????45,79404-??-200604: 03???? ????
Normnfd.nlp???? ????39,28404-??-200604: 03???? ????
Normnfkc.nlp???? ????66,38404-??-200604: 03???? ????
Normnfkd.nlp???? ????60,29404-??-200604: 03???? ????
Sos.dll2.0.50727.190382,46404-??-200604: 03x86
System.DATA.dll2.0.50727.1902,893,82404-??-200604: 03x86
64-??? ???????? (x 64) ?? ??? .NET Framework 2.0
?? ?????? ?? ??????? ?????? ?????? ?? ??????? ????
????? ???????? ?? ???????????? ?????????????:??????????
Mscordacwks.dll2.0.50727.1901,597,95203-??-200619: 04x64
Mscorlib.dll2.0.50727.1903,956,73604-??-200600: 11x64
Mscorwks.dll2.0.50727.19010,302,97603-??-200619: 00x64
Normalization.dll2.0.50727.19018,43203-??-200619: 01x64
Normidna.nlp???? ????59,34203-??-200619: 03???? ????
Normnfc.nlp???? ????45,79403-??-200619: 03???? ????
Normnfd.nlp???? ????39,28404-??-200604: 03???? ????
Normnfkc.nlp???? ????66,38403-??-200619: 03???? ????
Normnfkd.nlp???? ????60,29403-??-200619: 03???? ????
Sos.dll2.0.50727.190480,76803-??-200619: 10x64
System.DATA.dll2.0.50727.1902,959,87204-??-200600: 11x64
64-??? ???????? (IA-64) ?? ??? .NET Framework 2.0
?? ?????? ?? ??????? ?????? ?????? ?? ??????? ????
????? ???????? ?? ???????????? ?????????????:??????????
Mscordacwks.dll2.0.50727.1902,711,04003-??-200619: 09IA-64
Mscorlib.dll2.0.50727.1903,956,73604-??-200600: 58IA-64
Mscorwks.dll2.0.50727.19021,264,38403-??-200619: 05IA-64
Normalization.dll2.0.50727.19044,03203-??-200619: 06IA-64
Normidna.nlp???? ????59,34204-??-200604: 03???? ????
Normnfc.nlp???? ????45,79403-??-200619: 08???? ????
Normnfd.nlp???? ????39,28404-??-200604: 03???? ????
Normnfkc.nlp???? ????66,38404-??-200604: 03???? ????
Normnfkd.nlp???? ????60,29404-??-200604: 03???? ????
Sos.dll2.0.50727.190862,72003-??-200619: 16IA-64
System.DATA.dll2.0.50727.1903,102,72004-??-200600: 58IA-64

??????

Microsoft ?? ?????? ?? ?? ?? ?? ?? Microsoft ???????? ??? ?? ?????? ?? ?? "???? ???? ???? ???" ?????? ???????? ???..

???? ???????

???? ??????? ?? ???, Microsoft ?????? ??? ??? ???? ????? ?? ??? ????? ???? ?????? ????? ????::
824684Microsoft ?????????? ???????? ?? ????? ???? ?? ??? ????? ?? ???? ???? ???? ???????? ?? ?????

??????

?? ???? ??? ???? ??????? ?? ???OdbcConnection.GetSchema???? ?? ???, ????? Microsoft ?????? ??????? (MSDN) ??? ???? ?? ????:
HTTP://msdn2.Microsoft.com/en-us/library/ms135852.aspx
Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.

???

???? ID: 922981 - ????? ???????: 07 ?????? 2010 - ??????: 6.0
???? ???? ???? ??:
  • Microsoft .NET Framework 2.0
??????: 
kbfix kbbug kbqfe kbmt KB922981 KbMthi
???? ?????? ????????
??????????: ?? ???? ?? ???? ??????? ?? ????? ?? Microsoft ????-?????? ?????????? ?????? ?????? ???? ??? ??. Microsoft ???? ??? ????-???????? ?? ????-???????? ????? ?????? ?? ???? ???????? ???? ?? ???? ????? ????? ??? ?? ??? ?????? ?? ???? ???? ???? ??? ????? ??. ???????, ????-???????? ???? ????? ???? ???? ???? ???. ?????, ????????, ?????-???? ?? ??????? ?? ???????? ?? ???? ???, ???? ?? ??? ?????? ???? ???? ??? ????? ??? ?? ???? ??. Microsoft ??????? ??? ???? ?? ?????? ?? ??????????, ????????? ?? ??? ?????? ?? ???? ????? ?? ???? ???????? ?? ??? ???? ????? ?? ??? ????????? ???? ??. Microsoft ????-?????? ?????????? ?? ????? ?????? ?? ?? ??? ??.
?????????? ?? ??????? ????????? ??????? ??:922981

??????????? ???

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com