SQLBase > Show Data - sqlbase

i tried to get access to a existing database to show the data. With the SQLBase Command Center i can connect to the database and got the tables. A right click to a tablename > "Show Data" brings only an error. "Encountered an improper argument."
How can I have a look to the data?
Should/Can I use a different software from "Gupta Team Developer 6.3"?
Thank you in advance

You can query the data easily using Gupta SQLTalk ( SQLTalk.exe ) which should be in the same folder as Command Centre . If not , it'll be there somewhere .
The syntax for your query is :
set server <servername>
/
connect <databasename> sysadm/sysadm
/
set isolation RC3
/
select * from <tableowner.tablename>
/
disconnect all
/

Related

Why does running a query return 'table_oid' under messages and nothing under Data Output

Running any sort of query on pgAdmin 4 just returns a 'table_oid' under messages.
I am able to get the necessary data when running the query from the command line, for example
SELECT ST_MakePolygon(ST_GeomFromText('LINESTRING(75.15 29.53,77 29,77.6 29.5, 75.15 29.53)'));
I understand that table_oid refers to the object id of the table, but I have no idea how to access it.
Pardon me please if it is a simple question, but I am unable to find any resources online
Expected:
010300000001000000040000009A99999999C9524048E17A14AE873D4000000000004053400000000000003D4066666666666653400000000000803D409A99999999C9524048E17A14AE873D40
Actual:
table_oid
From pgAdmin 4 project tracker:
Temporary solution until next release and tested in my ubuntu 18.04 machine:
Replace these two 2 files:
/usr/share/pgadmin4/web/pgadmin/tools/sqleditor/__init_*_py
/usr/share/pgadmin4/web/pgadmin/tools/sqleditor/command.py
Link to files:
__init_*_.py
command.py
Note:
The first file's name is __init_*_py, without the *.
Try Squirrel SQL - Universal SQL Client. It's an extremely useful SQL client. I use it to access SQL Server, PostgreSQL, MySQL, Access. It's not as good looking as pgAdmin4.
Install JAVA first, if not already installed.
Install Squirrel SQL.
Download the latest PostgreSQL JDBC driver, e.g. postgresql-42.2.6.jar, and put it into a convenient location.
Open/Start Squirrel.
Click the Drivers Tab and scroll down to PostgreSQL. Double click PostgreSQL. A "Change Driver: PostgreSQL" dialog box/window will open.
Click the Extra Class Path tab and click the Add button. Navigate to and choose the PostgreSQL JDBC Driver that was downloaded in step 3. above.
Click the List Drivers button, "org.postgresql.Driver" should appear in the Class Name drop down box.
Click OK.
Setup PostgreSQL JDBC Driver
The driver should now be setup.
Click the Aliases tab to setup a connection to your database. See my example screenshots.
Setup Database Connection

How to rename current database in pgadmin 4?

I'm trying to rename a DB in pgAdmin 4. But I this get error: ERROR: current database cannot be renamed.
What's the process for renaming a database in pgAdmin (the docs are USELESS)? And google can't provide a solution.
Using pgAdmin 4,
1) switch to the dashboard view
2) select the database to be renamed, right-click it and select Disconnect Database
3) Again select the database to be renamed, right-click it and select properties
4) change the name of the database in the Database field -click save
right click on db name and Properties, then change the name and click Save:
Or just click on other db (eg postgres), open query tool and run
alter database "old" rename to "new";
You are probably trying to rename the database you are connected to.
Switch to a different db and then execute the ALTER command.

pgadmin4 query tool always comes back not connected

Q: How can I diagnose and correct problems with the Query tool connection.
Using pgAdmin4 1.0-rc1 to connect to a local host "PostgreSQL 9.5.3, compiled by Visual C++ build 18..."
I can connect and drill down to my schema. I use the context menu to select 'Query tool'. The editor shows the correct database#host:port in the editor header bar.
When I execute a simple query, or any query
select 1 as first;
I get the message
"Not conencted to the server or the connection to the server has been closed.
instead of the expected results.
The editor alwa
This issue has been resolved now,
Upgrade pgAdmin4 to version 1.3. https://www.pgadmin.org/download/
All you have to do is wrap the schema, table, column names with double quotation marks in every sentence.

return null from select in oracle sql developer

I'm using oracle database 12c in windows x64.
I imported an oracle database(from a .dmp file). The detail information view from oracle sql developer shows:
NUM_ROWS:74524900; BLOCKS:1356877; AVG_ROW_LEN:126; SAMPLE_SIZE:2000
However, when I try to run sql commands:
select * from <table_name> where rownum<=10;
or select * from <table_name>;
I got nothing returned. And the status show the retrieved number of rows: 0 ("提取的所有行:0").
I also try to run these commands in cmd, and failed again. The returned information is "No row is selected" (未选定行).
Please help. Thx!
Thanks nop77svk. This is because I failed to import the table. A close look at the import log file show that the table failed to pass 8192 extension (oracle error 1653). A drawback of 42679603 lines occurred.
I guess I may need to import the table one by one. And turn on the autoextend option of the tablespaces.
Thanks anyway.

Rename SQL Azure database?

How can i rename the database in sql Azure?
I have tried Alter database old_name {MODIFY NAME = new_name} but not worked.
Is this feature available in SQL Azure or not?
Just so people don't have to search through the comments to find this... Use:
ALTER DATABASE [dbname] MODIFY NAME = [newdbname]
(Make sure you include the square brackets around both database names.)
Please check that you've connected to master database and you not trying to rename system database.
Please find more info here: https://msdn.microsoft.com/en-US/library/ms345378.aspx
You can also connect with SQL Server Management Studio and rename it in Object Explorer. I just did so and the Azure Portal reflected the change immediately.
Do this by clicking on the database name (as the rename option from the dropdown will be greyed out)
Connect with SQL Server Management Studio to your Azure database server, right-click on the master database and select 'New Query'. In the New Query window that will open type ALTER DATABASE [dbname] MODIFY NAME = [newdbname].
It's Very simple for now - Connect to DB via SQL Management Studio and Just rename as you generally doing for DB [Press F2 on DB name]. It will allow you to do this and it will immediately reflect the same.
I can confirm the
ALTER DATABASE [oldname] MODIFY NAME = [newname];
works without connecting to master first BUT if you are renaming a restored Azure database; don't miss the space before the final hyphen
ALTER DATABASE [oldname_2017-04-23T09 -17Z] MODIFY NAME = [newname];
And be prepared for a confusing error message in the Visual Studio 2017 Message window when executing the ALTER command
Msg 0, Level 20, State 0, Line 0
A severe error occurred on the current command. The results, if any, should be discarded.
You can easily do it from SQL Server Management Studio, Even from the community edition.