Microsoft SQL Server™ Assistant

A plugin for SQuirreL SQL Client (http://squirrel-sql.sourceforge.net)
Developed by Ryan Walberg <generalpf@yahoo.com>
With many thanks to Colin Bell

Table of Contents

  1. Introduction
  2. Features
  3. To Do

Introduction

Microsoft SQL Server™ Assistant is a plugin for the excellent SQuirreL SQL Client. It it designed for SQL Server 2000 and performs MSSQL-specific commands with a few clicks. It is ultimately designed to incorporate all functionality from both SQL Enterprise Manager and Query Analyzer.

The plugin does not interact with system tables, which are not guaranteed to stay the same between MSSQL versions. Instead, it uses the system stored procedures.

The plugin has only been tested with the jTDS driver (http://jtds.sourceforge.net). I assume it will work with Microsoft's JDBC driver, but given that Microsoft's JDBC driver isn't fully functional, I don't recommend it.

I'd like to stress that this is your plugin; unless you tell me what you want it to do, it may not ever get done. Feel more than free to email me with feature requests.


Features


To Do

  1. If your JDBC URL contains the DB name, you must have that same catalog active to use the Generate T-SQL Script feature. Most MSSQL system stored procedures will not work across catalogs, and for some reason, calling setCatalog() on the java.sql.Connection object will not alleviate this. If you don't specify the DB name in the URL, the feature will only work for that user's default database. You'll get errors like "table 'foo' does not exist in catalog 'quux'." If anyone knows how I might fix this, *please* let me know. I've tried everything.
  2. Generate T-SQL Script doesn't do column-level permissions (yet).
  3. Generate T-SQL Script doesn't generate the sp_dboption statements (yet).
  4. Generate T-SQL Script doesn't yet obey descending columns on primary keys. It does understand such columns on all other indexes, however.