Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Simple way to run SQL queries in IBM Data Studio

How can I run a simple query like:

select current timestamp from sysibm.sysdummy1

In the old "Command Center" if was simply able to run such a command without creating a script/project, using a query builder etc.. However the old command center was replaced with the new Data Studio during an update.

I'm trying to reproduce an error that doesn't pop up when using my usual Aqua Data studio. However running the procedure with JDBC and/or the Data Studio throws an exception.

like image 228
Udo Held Avatar asked Feb 11 '13 16:02

Udo Held


People also ask

How do I open SQL editor in IBM Data Studio?

On the toolbar of the Administration Explorer, click the downward-pointing arrow next to the New button. Select New SQL Script from the menu. In the blank space of the Script<x>. sql workspace that opens on the upper right, type or paste the SQL statement.


1 Answers

1) Open "Database Administration" perspective in data studio

2) To launch the SQL editor, go to Administration Explorer on the left panel and click New > New SQL Script (Refer screenshot below)

Screenshot To Open Sql editor

This way you can run your normal sql queries without creating a script/project, etc. Please refer to IBM official site here for more details.

like image 166
sunny_dev Avatar answered Oct 13 '22 00:10

sunny_dev