c# - Connecting to Lotus Notes from ODBC -


Can anyone help me with the following code:

  using the system ; Using System.Data; Using System.Data.Odbc; Public class test {public static zero main (string [] ARGS) {ODBC connection iConnection = null; Try {myConnection = new OdbcConnection (); MyConnection.ConnectionString = "driver = {Lotus Notes SQL 3.01 (32-bit) ODBC driver (* .nsf)} Database = MyDB;"; MyConnection.Open (); Console.WriteLine ("success"); } Hold (exception e) {Console.WriteLine (e); } Finally {if (myConnection.State == ConnectionState.Open} {myConnection.Close (); } Console. Readline (); }}}  

Every time I run this code, I get the following error:

System.Data.Odbc.OdbcException: ERROR [IM002] [Microsoft ] [ODBC] Driver Manager] The name of the data source is not found and no default driver is specified

I have lotus notes with Domino Designer 6.5.5 installed.

I have looked around but now I am not able to find any solutions to this problem, some help is really appreciated.

Thanks Gareth

Just to make sure, have you installed? The error message looks like the driver is missing ...


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -