Although the similar questions had been asked here many times, this question occurred in environment different from others.

虽然这里曾多次提出类似的问题,但这个问题出现在与其他问题不同的环境中。

From Visual studio 2012 professional, when I accessed database by NetezzaSQL driver (through C# code), i got error:" Data source name not found and no default driver specified".

从Visual Studio 2012专业版,当我通过NetezzaSQL驱动程序访问数据库(通过C#代码)时,我收到错误:“未找到数据源名称且未指定默认驱动程序”。

My desktop is 64bit win7 and the connection string is

我的桌面是64位win7,连接字符串是

  Driver={NetezzaSQL};Server=xxxxxxxxxx;Database=myTool;Uid=myUser;Pwd=myWord;ReadOnly=false;"

I found that we have NetezzaSQL driver for ODBC(64 bit) but we do not have ODBC (should be 32 bit) driver.

我发现我们有ODBC(64位)的NetezzaSQL驱动程序,但我们没有ODBC(应该是32位)驱动程序。

If I change the build property target platform as any CPU, I got the above error.

如果我将构建属性目标平台更改为任何CPU,我得到上述错误。

If I change the build property target platform as x64, I got error "remote endpoint was not reachable."

如果我将构建属性目标平台更改为x64,则出现“远程端点无法访问”的错误。

I can access the database from Aginity netezza workbench with the same above connection string without any problems from my desktop.

我可以使用相同的上述连接字符串从Aginity netezza workbench访问数据库,而我的桌面没有任何问题。

Any help would be appreciated.

任何帮助,将不胜感激。

1 个解决方案

#1


1

I use a connection that is slightly different, making sure to include the System.Data.Odbc namespace and I can connect fine. VS2012

我使用稍微不同的连接,确保包含System.Data.Odbc命名空间,我可以很好地连接。 VS2012

"Driver=NetezzaSQL; Server=xx.xxx.xx.xxxx; Port=5480; Database=dbname; Persist Security Info=true; UID=username; PWD=pword"

更多相关文章

  1. mysql 5.7 安装错误提示总结
  2. Code First for Mysql 错误:未为提供程序“MySql.Data.MySqlClien
  3. [新开一贴]php5.4 连接Sqlserver2008 的问题。详细错误以提供。
  4. 将下面语句插入到SQLSERVER数据库中出现“将字符串转换为 unique
  5. mysql登录错误Plugin '*F7BDD2C0FCF95E6591A14EBCE522D8B16C
  6. [sql2008错误问题] RegisteredServerException 异常
  7. Mysql:向信号量添加给定计数将导致其超出它的最大计数 错误
  8. MySQL输入错误后如何取消
  9. sqlserver2005 express 未指定的错误 MS Visual Database Tools

随机推荐

  1. android——Serializable & Parcelable
  2. 第二讲:Android系统构架分析和应用程序目
  3. Android Studio 网络调试
  4. Android(安卓)在oncreate() 方法中调用 f
  5. Android实现九宫格 主界面应用列表效果
  6. android的xml解析
  7. android之inputType属性
  8. Android SDK中 tools 目录下的工具介绍
  9. ubuntu下第一个Jni例子
  10. 在Android中如何使用全局变量--Applicati