squirrel-sql

How can I call a DB2 stored procedure with OUT parameters from SQuirreL SQL?

拜拜、爱过 提交于 2020-01-22 21:29:10
问题 I really like SQuirreL SQL as a SQL query tool, but I've never been able to get it to call stored procedures in our AS/400 DB2 database. I always get the error "The number of parameter values set or registered does not match the number of parameters." I've double-checked the number of params and had no luck. This is the syntax I've tried for a procedure that takes one IN and one OUT: call SOMESPROC(12345, ?); 回答1: It seems that SQuirrel currently is not capable of doing that on AS/400 DB2.

Issues Creating SQL Server triggers using SQuirreL SQL Client

青春壹個敷衍的年華 提交于 2019-12-31 07:14:31
问题 Recently I have been working with a SQL Server database and I was trying to create some triggers for some tables using SQuirreL SQL Client and for some reason I was unable to get rid of the following pesky error message: "Error: 'CREATE TRIGGER' must be the first statement in a query batch. SQLState: S0001 ErrorCode: 111" The query I was attempting to execute was the following (I started out with a really simple trigger to make sure the syntax was correct): CREATE TRIGGER meeting_overlap on

Configure authenticate Mechanism in Squirrel SQL Client for DB2

喜你入骨 提交于 2019-12-25 03:51:25
问题 I want to configure a DB2 Connection in Squirrel SQL Client and my URL contains securityMechanism=13 at the end. When I am trying to connect with this URL and Test a connection in Squirrel , its throwing an error saying - com.ibm.db2.jcc.b.SqlException: Connection authorization failure occurred. Reason: security mechanism not supported Can anyone tell, how to handle/configure Squirrel SQL Client to make this URL working ? 回答1: I had the same problem. To solve it you need to add two properties

Configure authenticate Mechanism in Squirrel SQL Client for DB2

£可爱£侵袭症+ 提交于 2019-12-25 03:51:15
问题 I want to configure a DB2 Connection in Squirrel SQL Client and my URL contains securityMechanism=13 at the end. When I am trying to connect with this URL and Test a connection in Squirrel , its throwing an error saying - com.ibm.db2.jcc.b.SqlException: Connection authorization failure occurred. Reason: security mechanism not supported Can anyone tell, how to handle/configure Squirrel SQL Client to make this URL working ? 回答1: I had the same problem. To solve it you need to add two properties

Where does Squirrel SQL store its auto correct entries?

旧街凉风 提交于 2019-12-24 10:21:58
问题 I use Squirrel SQL as my goto SQL editor for DB2 for iSeries, and one feature I love is the autocorrect. I enter shortcuts into the editor like ssf and "select * from" pops up. I know it's possible to add entries to the library one row at a time, but how can I add multiple entries at once? I understand it could be an in-depth editing of resource files, and I'm comfortable enough with Java to make the edit but not find the actual resource. The bookmarks feature doesn't suit my needs for this,

How can I list all tables in a database with Squirrel SQL?

☆樱花仙子☆ 提交于 2019-12-20 17:34:26
问题 I use Squirrel SQL to connect to a JavaDB/Derby database on my desktop. I can run SQL queries. But how can I list all tables in the database? And preferably all column and column types. 回答1: You can do it easily from the GUI. After you open your session, click the Objects tab, then expand the tree. Expand the db, schema, and then table nodes, and you'll see all of your tables. If you click on a particular table node, a table will open to the right. By clicking the Columns tab, you can get the

Column aliasing in SELECT statements doesn't work with SQuirrel SQL + Firebird

二次信任 提交于 2019-12-20 09:53:04
问题 I tried add an column alias in SELECT statement using SQuirrel SQL 3.4 + Firebird 1.5 + Driver JDBC Jaybird 2.2.[0|1] (JVM 1.7.0_03), but doesn't work. The column aliased appears with the original name of column. In another tool (DBExpert) the same statement works fine. Statement : SELECT column1 AS alias1, column2 FROM table; Resultant columns name in SquirrelSQL : column1 - column2 Resultant columns name in DBExpert : alias1 - column2 Tried add ' and " around alias name, but also not work.

Column aliasing in SELECT statements doesn't work with SQuirrel SQL + Firebird

不羁岁月 提交于 2019-12-20 09:50:05
问题 I tried add an column alias in SELECT statement using SQuirrel SQL 3.4 + Firebird 1.5 + Driver JDBC Jaybird 2.2.[0|1] (JVM 1.7.0_03), but doesn't work. The column aliased appears with the original name of column. In another tool (DBExpert) the same statement works fine. Statement : SELECT column1 AS alias1, column2 FROM table; Resultant columns name in SquirrelSQL : column1 - column2 Resultant columns name in DBExpert : alias1 - column2 Tried add ' and " around alias name, but also not work.

On DB2 for i, Search for Column, return table names in list form

ⅰ亾dé卋堺 提交于 2019-12-14 01:22:20
问题 I'm still a bit of a noob, so pardon if this question is a bit obvious. I did search for an answer but either couldn't understand how the answers I found applied, or simply couldn't find an answer. I have a massive database housed on a DB2 for i server which I'm accessing using SQL through SQLExplorer (based on Squirrel SQL). The tables are very poorly documented and the first order of business is figuring out how to find my way around. I want to write a simple query that does this: 1) Allows

generate sql script from tables

倖福魔咒の 提交于 2019-12-13 12:53:47
问题 alt text http://www.freeimagehosting.net/uploads/64fac9c8c4.gif is it possible to generate sql scripts from for all tables ? i want to generate the sql script and import into another database server 回答1: Select the tables you want to export, right click, scripts>create table script. It works in mysql, not sure about oracle. 回答2: For anyone on the 3.4.0 version on OSX, I had to do it this way: Select the DB Session >> SQL Server >> Generate T-SQL Script Select the Objects/Tables wanted Saves