I down load the AtomsFramework.2.2.RC1.
I find a example named cssample.
I need test it based maxdb 7.6.
But i find it based access.
What can i do?
thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You'll need to change the provider setting in the XML mapping file to use AF_MaxDB.dll instead of AF_OLEDB.dll, and you'll have to set a connection string in the database mappings (there are details in the 2.2 .chm help file)
You will also need to make sure that the database is setup correctly in MaxDB based on the same schema in the access database.
The actual code itself shouldn't need any change at all - just run the program.
- Richard.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
this is my program:
"
private DataSet myDataSet;
private OdbcConnection myConnection;
private OdbcDataAdapter myDataAdapter;
private OdbcCommand myCommand; myConnection.ConnectionString="DSN=MAXDB;SERVERDB=test;UID=DBA;SERVERNODE=wangxu;PWD=DBA";
myConnection.Open();
string statement = "select * from ht_detail";
myCommand = new OdbcCommand(statement,myConnection);
myDataAdapter.Fill(myDataSet);"
This program can't connection to maxdb too.
I debug this program.
One error appear in "myConnection.ConnectionString="DSN=MAXDB;SERVERDB=test;UID=DBA;SERVERNODE=wangxu;PWD=DBA";"
The error named:"System.NullReferenceException:can not refers object setting to object instance".
why?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Try using something like that and see how you go. If you can't get anywhere, I'll see if I can free up some space to install MaxDB somewhere (no promises)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I down load the AtomsFramework.2.2.RC1.
I find a example named cssample.
I need test it based maxdb 7.6.
But i find it based access.
What can i do?
thanks!
You'll need to change the provider setting in the XML mapping file to use AF_MaxDB.dll instead of AF_OLEDB.dll, and you'll have to set a connection string in the database mappings (there are details in the 2.2 .chm help file)
You will also need to make sure that the database is setup correctly in MaxDB based on the same schema in the access database.
The actual code itself shouldn't need any change at all - just run the program.
- Richard.
i can't connect too.
i make a small test.
this is my program:
"
private DataSet myDataSet;
private OdbcConnection myConnection;
private OdbcDataAdapter myDataAdapter;
private OdbcCommand myCommand; myConnection.ConnectionString="DSN=MAXDB;SERVERDB=test;UID=DBA;SERVERNODE=wangxu;PWD=DBA";
myConnection.Open();
string statement = "select * from ht_detail";
myCommand = new OdbcCommand(statement,myConnection);
myDataAdapter.Fill(myDataSet);"
This program can't connection to maxdb too.
I debug this program.
One error appear in "myConnection.ConnectionString="DSN=MAXDB;SERVERDB=test;UID=DBA;SERVERNODE=wangxu;PWD=DBA";"
The error named:"System.NullReferenceException:can not refers object setting to object instance".
why?
I don't have any experience with MaxDB since I don't have a local copy.
My guess is that if you are having connection problems it could be the connection string or the DSN.
The conection strings I've seen so far look something like
DRIVER={SAP DB};SERVER=192.168.x.x;DATABASE=dbname;UID=user;PWD=password
Try using something like that and see how you go. If you can't get anywhere, I'll see if I can free up some space to install MaxDB somewhere (no promises)
I am using MaxDB, I dont have problems.
Your mistake is in the ODBC.