Using Quantum Eclipse Plugin for SQL Server
I've installed and played around with Quantum and I have to say that while it works like a simple query analyzer it is missing quite a bit of functionality it could easily add.
The potential is there and some constructive feedback could help make this even better.
To install Quantum for Eclipse 3 to see for yourself, I've listed the steps to get you all the way to connect to a SQL Server.
- Download the latest build of Quantum from sourceforge (in my case quantum244_3.x.zip.
- Close Eclipse
- Extract the contents of the plugins directory into your Eclipse 3 plugins directory (in my case C:\Program Files\Eclipse\plugins
- Open Eclipse and select Window > Open Perspective > Other > Quantum DB and you see the default 3 panel setup.
- Download Microsoft SQL Server JDBC Drivers but remember that they can't be redistributed except within a single corporation by their terms and conditions.
- Run the setup.exe and choose custom setup if you want to place the drivers anywhere other than C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\
- Switch back to Eclipse and in the "Database Bookmarks" panel right click and select "New Bookmark"
- There is a default ODBC Driver installed but if you got this far you are trying to get to SQL Server so click "Add Driver"
- Click "Add External Jar" 3 times to add each of the three Drivers from the location you used above (C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\ by default on Windows). You should see
- msbase.jar
- mssqlserver.jar
- msutil.jar
- Click Browse and pick the entry labelled "com.microsoft.jdbc.sqlserver.SQLServerDriver"
- Select Type "Microsoft SQL Server" and then click Finish
- Click Next and then enter your userid and password for the datbase you are connecting to
- For the JDBC URL you will use the following template:
jdbc:microsoft:sqlserver://{server_name}:{port};databaseName={db_name} replacing server_name, port and db_name with your settings. By default SQL Server runs on port 1433 in case you are unsure. - Click Next and enter the friendly name you want to use for your bookmark
- Click Next if you want to select a schema to display or Finish if you want to show them all
- If all is well you should see the new bookmark in the left hand panel. Right click the bookmark and select connect to retrieve the database information.
The quick list is a nice feature if your schema has lots of tables and the recent SQL statements saves using a large undo buffer.
Even better is the Quantum SQL Log which records each SQL statement it attempts.
This is one of several posts you'll see this week as I join the Eclipse bandwagon.