squirrel-sql

Using keep-alive: ORA-00933: SQL command not properly ended

牧云@^-^@ 提交于 2019-12-12 05:37:24
问题 I'd like to use squirrel-sql s keep-alive feature since my Oracle database connections get cut if they idle for too long. It's a self-explanatory feature - or so one would expect - and also covered on SO. However, the obvious SELECT 1 FROM DUAL; does not cut it and results in this error: 2016-10-21 16:43:51,879 [Thread-4] INFO net.sourceforge.squirrel_sql.client.session.SessionConnectionKeepAlive - SessionConnectionKeepAlive (...) running SQL: SELECT 1 FROM DUAL; 2016-10-21 16:43:51,882

Where is the Syntax-Autocorrect data stored in Squirrel-SQL snapshot 20190612_2127?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 15:37:37
问题 In older versions of Squirrel-SQL, autocorrect data was stored in an XML file as documented in Where does Squirrel SQL store its auto correct entries?. After updating to a more recent version, this file no longer exists in the same "syntax" folder (C:\Program Files\SQuirreL SQL Client\plugins\syntax). Does anyone know where I might be able to locate this file? Since there wasn't much to work with in the old "syntax" folder, I dug into the syntax.jar file in the "plugins" parent folder and

PL/SQL on SquirreL SQL Client 3.7.1

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-10 17:37:32
问题 I was trying to execute PL/SQL scripts on SQuirrel but it doesn't seem to work. I configured Oracle Thin Driver by adding ojdbc7.jar on "Extra Class Path", was able to connect to the database but when tried to run a simple code it gives an error: -- code BEGIN dbms_output.put_line('Hello World'); END; / -- error Error: ORA-06550: line 2, column 37: PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following: := . ( % ; SQLState: 65000 ErrorCode: 6550 Error occurred in:

“Could not find the main class. Program will exit”

若如初见. 提交于 2019-12-06 17:07:27
问题 I'm trying to run SQuirreL SQL. I've downloaded it and installed it, but when I try to run it I get this error message: Java Virtual Machine Launcher. Could not find the main class. Program will exit. I get the gist of this, but I have not idea how to fix it. Any help? more info: I'm on Windows XP pro. I have java 1.6 installed, and other apps are running OK. The install ran OK. I believe I've followed the installation instructions correctly. To run it, I'm invoking the squirrel-sql.bat file.

“Could not find the main class. Program will exit”

会有一股神秘感。 提交于 2019-12-04 22:41:08
I'm trying to run SQuirreL SQL. I've downloaded it and installed it, but when I try to run it I get this error message: Java Virtual Machine Launcher. Could not find the main class. Program will exit. I get the gist of this, but I have not idea how to fix it. Any help? more info: I'm on Windows XP pro. I have java 1.6 installed, and other apps are running OK. The install ran OK. I believe I've followed the installation instructions correctly. To run it, I'm invoking the squirrel-sql.bat file. Update This question: "Could not find the main class: XX. Program will exit." gives some background on

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

好久不见. 提交于 2019-12-04 08:15:35
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, ?); It seems that SQuirrel currently is not capable of doing that on AS/400 DB2. Using the open source "SQL Workbench/J" ( http://www.sql-workbench.net/ ) I was able to call a procedure:

font size of Squirrel SQL too small

帅比萌擦擦* 提交于 2019-12-03 16:18:44
问题 The size of the font to enter the SQL is too small. What is the way to increase the size of the font to type the SQL ? In 'global options' there is a possibility to increase the size of the fonts. But this has no impact on the size of the text to enter the SQL. 回答1: In the SquirreL SQL Client Version 3.7.1 you can able to increase the font size in the SQL Entry area. Below is the procedure: Go to File --> New Session Properties Navigate to SQL Tab and then in the below you have the option

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

跟風遠走 提交于 2019-12-03 04:57:12
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. 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 names, types, and other meta data. Or are you looking for SQL commands? Sometimes I noticed that

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

笑着哭i 提交于 2019-12-02 22:27:44
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. Someone have an idea? Edit: I updated the JDBC Jaybird driver to 2.2.1 version (released Sept/30) and

Issues Creating SQL Server triggers using SQuirreL SQL Client

百般思念 提交于 2019-12-02 12:13:52
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 adhoc_meeting FOR INSERT AS DECLARE @myvar INT When I attempted to execute my exact same query in