读书人

使用codesmith连接DB2的有关问题

发布时间: 2012-01-22 22:38:43 作者: rapoo

使用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/

读书人网 >.NET

热点推荐