首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > .NET >

使用codesmith连接DB2的有关问题

2012-01-22 
使用codesmith连接DB2的问题今天用codesmith连接db2的时候出现了如下错误提示System.Runtime.InteropServi

使用codesmith连接DB2的问题
今天用codesmith连接db2的时候出现了如下错误提示

System.Runtime.InteropServices.COMException (0x800A0CB3): Exception from HRESULT: 0x800A0CB3
  at ADOX.Keys.get_Count()
  at SchemaExplorer.ADOXSchemaProvider.GetTablePrimaryKey(String connectionString, TableSchema table)
  at SchemaExplorer.TableSchema.CheckPrimaryKey()
  at SchemaExplorer.TableSchema.get_HasPrimaryKey()
  at _CodeSmith.IBatisStatements_cst.__RenderMethod1(TextWriter writer, Control control) in c:\Documents and Settings\Administrator\Desktop\IBatisStatements.cst:line 46
  at CodeSmith.Engine.DelegateControl.Render(TextWriter writer)
  at CodeSmith.Engine.Control.RenderChildren(TextWriter writer)
  at CodeSmith.Engine.Control.Render(TextWriter writer)
  at CodeSmith.Engine.CodeTemplate.Render(TextWriter writer)
  at CodeSmith.Engine.CodeTemplate.RenderToString()
  at ej.s()

哪位大侠帮忙解决一下这个问题啊……


[解决办法]
看看选的连接类型和输入的连接字符串对不对
[解决办法]
選用其他方式吧
這裡有非常多的方式

http://www.devart.com/



my blog
http://ufo-crackerx.blog.163.com/

热点排行