is it possible to import a MS access database (.mdb) in a seam project using JBoss tools within Eclipse (Ganymede)?
Starting a new seam project, I cannot see any field which uses ms access as database type.
Any answer is appreciated.
Java programs generally talk to databases through JDBC drivers. To my knowledge there is no JDBC driver for Access MDB files. You can use the JDBC-ODBC bridge to create a connection to the Access database with a little help from the Access ODBC driver. How to set up this construction is explained here
You have to create a database connection in the JBoss application server that uses that connection, how this is done can be found here.
Related
I'm using https://www.npmjs.org/package/odbc in an application targeting Windows.
Therefore it requires users to install Microsoft ODBC driver for SQL Server located here, which is a problem if the user doesn't have admin rights.
Any workaround?
You can use another system for databases, mongoDB, sqlite, etc. if your application is simply, i recommend sqlite
What kind of support does LoadRunner have to loadtest a database. Is it possible to Connect directly to the jdbc "layer"?
Well, it depends upon the database.
LoadRunner supports connectivity with many native for SQL Server (Sybase and Microsoft variants), DB2, ORACLE and others.
IT supports ODBC.
Because of the JAva Virtual User type there is support for JDBC.
Because of the VB virtual user type there is support for OleDB type connectivity.
If you are looking at queues implemented in the database then you also have access to JMS via the web services virtual user or the Java Virtual User type.
Within Visual Studio you have the capability of building a DLL style virtual user for C/C++ or VB which leverages your application source code
Within Visual Studio and C# you can leverage the database connection options here for OleDB
For some types the interface can be recorded, for others it is hand coded or leveraging your source code. It might help to better understand the nature of the client you are trying to reproduce, what programmatic interfaces are leveraged by the client and what is the next upstream component in terms of vendor and version.
I have a Derby Database in Netbeans with connection string
jdbc:derby://localhost:1527/MyDatabase
Can this be used with ODBC? If so, how could I transform this or configure my Derby Database to be compliant with ODBC
The end goal is to get the Derby Database migrated to MySQL. Using the migrating wizard in MySQL Workbench appears to be the easiest way. However I do need ODBC connectivity.
Do you want to use ODBC because MySQL Workbench uses it to migrate database?
I migrated some databases between various engines and my favorite technology is to convert DDL schema (CREATE TABLE, CREATE VIEW etc) using specialized Python program. Then I use JDBC with getObject()/setObject() methods to copy data. You can see such copy database Jython program (Jython is a Python language that works using JVM and can use JDBC drivers) in my response to Blob's migration data from Informix to Postgres .
BTW Quick search shows that IBM have ODBC driver to Derby (they bought Informix that earlier bought Cloudscape): http://www.ibm.com/developerworks/data/library/techarticle/dm-0409cline2/
Use OpenDBCopy, which is an opensource database utility to migrate data from and to any database via JDBC connection.
You can copy table structures as well as data from any supported database.
Does using the ADO.NET Provider that a DB vendor wrote eliminate the need to have any database drivers installed on the machine?
I'm a bit confused on how ADO.NET actually works.
An ADO.Net provider is a database driver.
However, ADO.Net providers are (hopefully) purely managed, so they don't need any installation.
It depends on how they wrote the provider. The provider can be written to include any driver, but it could also be written to expect to talk to a driver that is installed on the machine separately.
For example, Microsoft's own Sql Server provider still expects you to have the "native client" installed on each machine. But system.data.sqlite includes all that as part of the provider for the sqlite database.
There are Ado.NET providers specific to database which are tailored versions of DB drivers.
Eg: SQLClient -tailored version for SQL server family
iAnywhere -tailored version for Sybase db.
And we have ODBC drivers in Ado.NET which is not specific rather generic driver available out of the box.
Do you know which module in VB.net will allow me to connect to a file (mdf/mdb) and SQL Server (not at the same time but to change in runtime).
Or do you know of two modules which have the same API?
I'm building software which I will wont work both locally and on a server. But I don't want to have to go changing all of my code just because I'm using a different modules. I know VB.net, but I've never used databases.
There's so many different database connectors its confusing!
Thank you, answers and comments are much appreciated!
The System.Data namespace provides base classes that can work against any supported data source via ADO. You could connect to both SQL and MDB with the OleDb provider, but it would be much faster if you used the native SqlClient provider when accessing SQL Server. You may find the DbProviderFactories class very helpful:
http://msdn.microsoft.com/en-us/library/dd0w4a2z.aspx