MongoDb connection with VBScript - database

Want to establish mongodb connection with VBScript and perform database operations with the scripts. It's possible with MYSQL DB but don't really know if we can do the same with mongodb or not.

VBScript is based on (30 years old) COM. I don't think you can get it out of the box, see MongoDB Drivers and ODMs
I would see two possibilities.
Use the MongoDB C# Driver. However, you need to compile it by yourself with "Make COM visible".
See How to call C# DLL function from VBScript for more details.
Use an ODBC driver. Downside, the free MongoDB ODBC driver works only for MongoDB Atlas, e.i. the MongoDB Cloud service. You need to buy a 3rd pary ODBC driver, see Mongodb - connect through ODBC
Update:
Meanwhile it seems to work (or I was too stupid to make it running the first time).
You can download and install the MongoDB BI Connector. Once the mongosqld is running and schema is created, you can install the MongoDB BI Connector ODBC Driver. After you added the ODBC DNS, you can query the MongoDB the same way as you do it for MySQL.

Related

Connecting to database server in Perl?

I want to connect to database server using use DBI module in Perl.
I don't have any database server installed in my system. Is there a way I can try the database connectivity without actually installing SQL server. I checked SQL server and it is 2.5 GB download
Is it possible to use Perl's DBI module without really installing full database server?
You can use a different database driver. You could use SQLite for example. Or you could install xampp, which brings a mysql instance.
I recommend using SQLite and the DBD::SQLite driver.
Just use DBI DBD:SQLite and an SQLite Database the download is only 1.4MB
And here is a Tutorial to get you started

Derby Database ODBC Connection

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.

Sybase GUI Client

What are the available Sybase GUI clients for Windows.
I have tried DBVisualizer and RazorSQL any other recommendations. Free preferred
u can try "Interactive SQL" which shipped with Sybase 15 Client, it's better than Sql Advantage, and it's free to download via. Sybase website.
One other solution would be sqlDeveloper from oracle (if you are used to it). You can make it work with Sybase databases by downloading the jTDS driver. Then you can go to sqlDeveloper and choose Tools -> Preferences -> Database -> Third Party JDBC driver. It will work like a charm.
I find it very convinient as i was used to sqlDeveloper, so i can add any driver for any DB provider i want.
You can try a non commercial client TOAD for sybase
and a comercial client like dbArtisan that allows you debug of the stored procedures what for me its very usefull.
I like SQL Workbench/J, sort of like DBVisualiser but entirely free. It can connect to a lot of databases (that have JDBC drivers) and has a handy datapump/data replication tool, that can also be used in batch mode.
Aqua Data Studio seems popular with the clients I work with. But I generally use the tools from Sybase : Interactive SQL (SQL Editor) and Sybase Central (Data Schema, Debugger etc)
Other possible tools could be Squirrel and DBeaver. Both are open-source and free.
Here are some links : dbeaver.jkiss.org
squirrel-sql.sourceforge.net .
SQuirreL SQL Client is a graphical SQL client written in Java that will allow you to view the structure of a JDBC compliant database, browse the data in tables, issue SQL commands etc.
DBeaver will let you do all basic DDL and DML functions, DB object script extraction etc. Various plugins exist e.g DBDiff Plugin which lets you compare objects between two different sessions
Workbench/J is a good choice. It can work with Oracle/Sybase/Informix and other databases.
Setup SQL Workbench/J to connect to sybase in Ubuntu 14.0.4
Install SCN SDK "https://store.sap.com/sap/cpa/ui/resources/store/html/SolutionDetails.html?pid=0000013451&catID=&pcntry=US&sap-language=EN&_cp_id=id-1417018812660-0"
unzip the file.
create /opt/sap and chown sap:sap /opt/sap -- sap is the owner for software
run setup.bin after unzip the linux.tgz
In SQL Workbench Setup jdbc connection pointing to "/opt/sap/jConnect-16_0/classes/jconn4.jar"
Setup sybase connection URL to be jdbc:sybase:Tds::
e.g. jdbs:sybase:Tds:sybase1:5000

seam 2.2 with microsoft access

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.

Connecting to an Oracle database on the command-line without using the Oracle client software?

I have access to an Oracle server that has some databases that I would like to access. However, the machine that I have access from has none of the oracle client software. Is there any alternative to oracle's client software the provides the functionality of something like MySQL's mysql or Postgres' psql? I'd like to be able to poke around a bit in the database before writing software against it.
If you download the free Oracle Instant Client you'd be able to use any JDBC or ODBC Database tool such as DbVisualizer or SquirrelSQL. Those are GUI tools; I've not come across a JDBC command line tool but there may be one out there.
Alternatively, there is an Instant Client version of SQL*Plus which will give you an Oracle sqlplus command line without a full Oracle install.
Oracle's free PL/SQL IDE SQL Developer can use Type 4 JDBC drivers to connect to a number of different types of databases, obviously including Oracle. You can use that without doing any sort of Oracle client install if you so desired.
You could try the Oracle IDE SQL Developer which is a free download. It is written in Java and is available for both windows and linux. It is self contained and doesn't require the Oracle client be installed.
SQLPal (http://www.sqlpal.com/) is a lightweight SqlPlus like application for Windows that does not require the oracle client.

Resources