Connecting to database server in Perl? - database

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

Related

How to connect to DB2 Database from a non-DB2 system using vba with out DB2 native driver

I would like to know how can I connect to DB2 database on a remote server from my machine which does not have db2.
I know that if I have db2 installed on my local system I can make use of the native DB2 OLEDB/ODBC drive to connect to the DB2 database on remote server.
Even with JDBC you would still need (as for any DMBS) the DB2 JDBC driver installed.
You will always need one of the clients installed:
http://www.ibm.com/support/knowledgecenter/SSEPGG_10.5.0/com.ibm.swg.im.dbclient.install.doc/doc/c0022612.html?cp=SSEPGG_10.5.0%2F2-0-2-0&lang=en
In particular you are probably looking for the "IBM Data Server Driver for ODBC and CLI" which is "... a lightweight solution that is designed for ISV deployments. This driver, also referred to as the CLI driver, provides runtime support for applications using the ODBC API or CLI API, without the need to install the Data Server Client or the Data Server Runtime Client. "

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

Microsoft SQL server hosting that supports DTS

Could someone suggest a shared SQL Server solution that supports DTS packages?
Update:
I was hoping to use the PostgreSQL ODBC driver and a DTS package to keep data synchronized between MSSQL server and Postgres. After getting my hands on SQL Server 2005 and attempting to do this I realized SSIS doesn't seem to play nicely with the PostgreSQL ODBC driver.
I gave up on the SSIS/DTS solution and have written a program using JDBC which runs happily on my Linux server.
I am not aware of any hosting services that provide DTS or SSIS as a feature. However, if what you are trying to achieve by using DTS/SSIS is a way to do your own backups/data transfers then I would suggest you look into the Microsoft SQL Server Database Publishing Services. Go Daddy supports it.
I have used Edgewebhosting before and used DTS packages for pushing data to sites. I have no affiliation with them, it worked well for the job.

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