Hi to all,

I have some problems to open a connection to sapdb with C# in .Net Beta2
(German Version).
My code looks like:

string strAccessConn = "Provider=MSDASQL.1;Password=dba;Persist Security
Info=True;User ID=dba;Data Source=TST;Extended
Properties=\"DSN=TST;UID=dba;PWD=dba;SERVERDB=TST;SERVERNODE=ginfizz;\"";

//or: string strAccessConn="Provider=MSDASQL.1;Password=dba;Persist Security
Info=True;User ID=dba;Data Source=TST";

OdbcConnection myAccessConn = new OdbcConnection(strAccessConn);

myAccessConn.Open();



The error occurs in the line "myAccessConn.Open()". The error-message is:
"Eine nicht behandelte Ausnahme des Typs 'System.Data.Odbc.OdbcException'
ist in system.data.odbc.dll aufgetreten
Zus�tzliche Informationen: Systemfehler."

The database is installed on my local computer, independant from the
connect-strings mentioned above.
I've also installed ODBC.Net which provides me with the OdbcConnection
functionality.

So, how to solve the problem, any ideas ? or, the much better way, can
someone provide me with a sample program which demonstrates working with
SapDB and C# ?


thanks in advance ..................... GERD ................








_______________________________________________
sapdb.general mailing list
[EMAIL PROTECTED]
http://listserv.sap.com/mailman/listinfo/sapdb.general

Reply via email to