RE: Pass IN/OUT Parameters to executable proc in Editor
This works quite nicely.Thank you,Paul
View ArticleRE: Pass IN/OUT Parameters to executable proc in Editor
Thanks for the information.I have created TDB-3491 to track this request.
View ArticleQuery Builder to create Update Query using correlated subquery
I'm aware that DB2 does not allow joins in update queries; it requires correlated subqueries. That makes writing update queries a bit more complex.Is there any way to use Query Builder to write these...
View ArticleRE: Query Builder to create Update Query using correlated subquery
This might a tricky one for us to pull off.Can you send or post an example of your correlated UPDATE subquery?Thanks,Jeff
View ArticleRE: Query Builder to create Update Query using correlated subquery
Sure-- give me a couple of days.But if Toad Query Builder can't currently create update queries for DB2, you might want to remove it as an option in the "type of query" drop down.I spent a lot of time...
View ArticleRE: Constraint problem
Hi - Please create a unique constraint on the parent table's column something like this,ALTER TABLE <Schem>.<table1> ADD CONSTRAINT Schem_Table1_UK UNIQUE(Col);and then try that command...
View ArticleConstraint problem
HI.I'm doing a migration from mysql to db2, but i can't do a constraint in the table EVENTS:CONSTRAINT `fk_EVENTS_CLIENT_SCHEDULES1` FOREIGN KEY (`schedule_name`, `chg_time`) REFERENCES...
View ArticleRE: Default date format in Toad for DB2
You can specify a custom date format via the Custom tab as shown below.The above shows MM-dd-yyyy as my custom DATE format.At this time - you cannot specify a custom Time format.I opened issue TDB-3520...
View ArticleDefault date format in Toad for DB2
How can I change the default date format? There is Data Type Formatting in options under Environment/Grid but there is only an option for the DateTime data type. There is not one for the Date or Time...
View ArticleRE: SQL30081N A communication error has been detected SQLSTATE=08001 DB2 ---...
Are you able to connect to the database using DB2 CLI? E.g. with command "db2 connect to sample"?What is the database version and client version you are using? That is your Toad for DB2 version?
View ArticleSQL30081N A communication error has been detected SQLSTATE=08001 DB2 --- toad...
I am facing the below error while connecting to DB with Toad client.ERROR [08001] [IBM] SQL30081N A communication error has been detected. Communication protocol being used: "TCP/IP". Communication...
View ArticleRE: Toad for DB2 Freeware edition - 32 bits version
[quote user="Jeff Podlasek"]You can download the Toad DB2 32-bit installer at:http://community-downloads.quest.com/toadsoft/DB2/ToadforDB2_6.3.0.269.x86.msi[/quote]Hello, the download link above for...
View ArticleToad for DB2 Freeware 6.3.0.269 64-bit missing Excel export
Hi,I apologize if I am double posting regarding the issue, I tried to search for the same topic and never found one. Anyway, I just upgraded my Toad freeware from 6.2 to 6.3.0.269 64-bit and one thing...
View ArticleRE: DB2 - First And Last Day Of Previous Quarter
Hello riccarddo,Please use the following:WITH StarDate (firstday) as(SELECT d - DAYOFYEAR(d) DAYS + ((QUARTER(d) - 1) * 3) MONTHS - 3 MONTHS + 1 DAYFROM (VALUES DATE('2017-04-21')) as D(d))SELECT *...
View ArticleRE: DB2 - First And Last Day Of Previous Quarter
Does this work for you? It's kinda of sloppy and only returns 1 date, but you can tweak it I think. The key I think is you need to use sysibm.sysdummy1 in z/OS. It's sad that z/OS lacks behind alot...
View ArticleDB2 - First And Last Day Of Previous Quarter
Dear All,I'm a SQL Server guy but we do have a system that uses DB2. As per the subject above, I can easily do this in Transact-SQL.But in DB2 SQL, I am having some difficulty.So, looking ar the SQL...
View ArticleRE: DB2 - First And Last Day Of Previous Quarter
Thanks very much Ondrej! Much appreciated. [Y]After sending the post, I realised that I was missing the AS keyword in my CTE.After working with the ease and intuitiveness of SQL Server/T-SQL for about...
View ArticleRE: Toad for DB2 Freeware 6.3.0.269 64-bit missing Excel export
Hi Phillip,Actually in our freeware version, exporting to an excel file in the export wizard was never officially supported.That export wizard feature was not to have been exposed in our freeware....
View ArticleRE: SQL30081N A communication error has been detected SQLSTATE=08001 DB2 ---...
Also, If you are using Toad DB2 v6.3 or later, please try to create a 'connection string' connection profile (where you do not have to use a DB2 cataloged database).Try that and try connecting from the...
View ArticleRE: Toad for DB2 Freeware 6.3.0.269 64-bit missing Excel export
Thank you for your answer, Jeff. I will go to the CSV route instead for now.
View Article