"could not translate host name "postgres" to address:UnKnown Host"现在连接的提示就是的,我的连接语句是: aconn.ConnectionString = "Provider=PostgreSQL OLE DB Provider;Data Source=myconn;location=127.0.0.1;User ID=postgres;password=123;timeout=1000"aconn.open
我用你上面的代码后在aconn.open 是又有这样的提示了 "正试图在 OS 加载程序锁内执行托管代码。不要尝试在 DllMain 或映像初始化函数内运行托管代码,这样做会导致应用程序挂起。"
我现在的连接语句是: aconn.ConnectionString = "Provider=PostgreSQL OLE DB Provider;Data Source=myconn;location=127.0.0.1;User ID=postgres;password=123;timeout=1000"但在 aconn.open 时提示: "could not translate host name "postgres" to address:UnKnown Host" 请问该怎么解决啊,我是用OLD DB 的方式连接的
aconn.ConnectionString = "Provider=PostgreSQL OLE DB Provider;Data Source=myconn;location=127.0.0.1;User ID=postgres;password=123;timeout=1000"aconn.open
安装PG ODBC驱动
"正试图在 OS 加载程序锁内执行托管代码。不要尝试在 DllMain 或映像初始化函数内运行托管代码,这样做会导致应用程序挂起。"
我现在的连接语句是:
aconn.ConnectionString = "Provider=PostgreSQL OLE DB Provider;Data Source=myconn;location=127.0.0.1;User ID=postgres;password=123;timeout=1000"但在 aconn.open 时提示:
"could not translate host name "postgres" to address:UnKnown Host"
请问该怎么解决啊,我是用OLD DB 的方式连接的