Kuba Mahdal
1/19/2003 12:05:00 PM
Please help, i have the same problem as mr. Alan G.
Thomson:
I want to connect to a PostgreSQL database from the IDE of
the Visual C# .Net using ODBC. I have downladed the ODBC
driver of PostgreSQL, and ODBC for the .Net framework, and
I can connect between Visual studio and the database, but
I can't do that between a form, and the same database,
using any of the adaptors provided with C#.
my code is:
String MyConnString="Provider=MSDASQL.1;Persist Security
Info=False;Data Source=Postgres_moje;...............
System.Data.OleDb.OleDbConnection con = new
System.Data.OleDb.OleDbConnection(MyConnString);
and there is an error:
An unhandled exception of type 'System.ArgumentException'
occurred in system.data.dll
Additional information: The .Net Data OLE DB Provider
(System.Data.OleDb) does not support
the MSDASQL Provider, Microsoft OLE DB Provider for ODBC
Drivers.
I need help
with this problem as soon as possible please.