Adding a datasource to Codesmith

故事扮演 提交于 2019-12-14 03:23:22

问题


I am trying to add a DataSource to Codesmith 7.1.0 rev 15317 This is a new install on a Windows 10 box.

I keep getting the error

Test Failed. Arithmetic operation resulted in an overflow. 

I have done this many times on my old win8 box.

The provider I am using is SqlSchemaProvider (SQL Server) This is the connection string

Data Source=localhost;InIitial Catalog=gregsData;Persist Security Info=True;User ID=sa;Password=catdog;

I have tried using the string builder, copying from my app where I know it is working, adding and deleting various parts.

I have an issue open w/ CodeSmithTools, but not making a lot of progress.

Is anyone using CodeSmith w/ windows 10? It has to work right? This cant be a bug.

Has anyone had a similar issue?


回答1:


I have no idea what resolved this. maybe a reboot? maybe some odd update. I came in one monday and it started working.




回答2:


I can not find an answer anywhere. uninstalled and reinstalled...again. No luck.

I finally had the ODBC idea. I created an ODBC datasource, then used that using the ADOXSchemaProvider. This works.

Not great, but this beats coding by hand, and for now, it beats converting all my templates to something else.

here is a sample ODBC connection string if you need to go this route. DSN=myDsn;Uid=myUsername;Pwd=mypwd;



来源:https://stackoverflow.com/questions/34191825/adding-a-datasource-to-codesmith

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!